#include <visitor.hpp>
Public Member Functions | |
dag_visitor () | |
void | visit (attribute_definition_node const &node) |
void | visit (list_node const &node) |
graph::node const * | get_DAG () const |
~dag_visitor () | |
Private Member Functions | |
void | check_dag () |
Private Attributes | |
map< string, component * > | nodes |
vector< pair< string, string > > | dependencies |
bool | start_record |
bool | start_node |
bool | is_dag_node |
bool | start_dependecies |
bool | dep_list |
bool | found_nodes |
bool | found_deps |
graph::node * | root |
Definition at line 187 of file visitor.hpp.
jdl::dag_visitor::dag_visitor | ( | ) | [inline] |
Definition at line 201 of file visitor.hpp.
jdl::dag_visitor::~dag_visitor | ( | ) | [inline] |
void dag_visitor::check_dag | ( | ) | [private] |
Definition at line 343 of file visitor.cpp.
References graph::node::accept(), graph::node::add_child(), dependencies, found_deps, found_nodes, nodes, root, and throw_node_not_exist().
Referenced by visit().
void dag_visitor::visit | ( | attribute_definition_node const & | node | ) | [virtual] |
Reimplemented from jdl::base_const_visitor.
Definition at line 213 of file visitor.cpp.
References check_dag(), found_deps, found_nodes, jdl::attribute_definition_node::get_name(), jdl::attribute_definition_node::get_value(), is_dag_node, nodes, start_dependecies, start_node, start_record, and jdl::base_const_visitor::visit().
void dag_visitor::visit | ( | list_node const & | node | ) | [virtual] |
Reimplemented from jdl::base_const_visitor.
Definition at line 388 of file visitor.cpp.
References build_dependencies(), dep_list, dependencies, start_dependecies, and jdl::base_const_visitor::visit().
graph::node const* jdl::dag_visitor::get_DAG | ( | ) | const [inline] |
map<string, component*> jdl::dag_visitor::nodes [private] |
vector<pair<string,string> > jdl::dag_visitor::dependencies [private] |
bool jdl::dag_visitor::start_record [private] |
bool jdl::dag_visitor::start_node [private] |
bool jdl::dag_visitor::is_dag_node [private] |
bool jdl::dag_visitor::start_dependecies [private] |
bool jdl::dag_visitor::dep_list [private] |
bool jdl::dag_visitor::found_nodes [private] |
bool jdl::dag_visitor::found_deps [private] |
graph::node* jdl::dag_visitor::root [private] |
Definition at line 197 of file visitor.hpp.
Referenced by check_dag(), get_DAG(), and ~dag_visitor().