#include <graph_node.hpp>
Public Member Functions | |
node (std::string _name, jdl::component const *def) | |
void | add_child (boost::shared_ptr< node > node) |
std::string | get_name () const |
component const * | get_definition () const |
std::vector< node * > const & | get_parents () const |
std::vector < boost::shared_ptr < node > > const & | get_children () const |
void | print (int indentation, ostream &out=cout) const |
void | accept (graph::const_visitor &v) const |
void | accept (graph::visitor &v) |
Private Member Functions | |
void | add_parent (node *node) |
Private Attributes | |
std::string | name |
component const * | definition |
std::vector< node * > | parents |
std::vector < boost::shared_ptr < node > > | children |
Definition at line 32 of file graph_node.hpp.
graph::node::node | ( | std::string | _name, | |
jdl::component const * | def | |||
) | [inline] |
Definition at line 41 of file graph_node.hpp.
void graph::node::add_parent | ( | node * | node | ) | [inline, private] |
void graph::node::add_child | ( | boost::shared_ptr< node > | node | ) |
Definition at line 32 of file graph.cpp.
References children.
Referenced by jdl::dag_visitor::check_dag(), and jdl::collection_visitor::visit().
std::string graph::node::get_name | ( | ) | const [inline] |
Definition at line 46 of file graph_node.hpp.
References name.
Referenced by graph::dump_visitor::visit(), and graph::acyclic_visitor::visit().
component const* graph::node::get_definition | ( | ) | const [inline] |
std::vector<node*> const& graph::node::get_parents | ( | ) | const [inline] |
std::vector<boost::shared_ptr<node> > const& graph::node::get_children | ( | ) | const [inline] |
Definition at line 52 of file graph_node.hpp.
References children.
Referenced by graph::dump_visitor::visit(), and graph::acyclic_visitor::visit().
void graph::node::print | ( | int | indentation, | |
ostream & | out = cout | |||
) | const |
void graph::node::accept | ( | graph::const_visitor & | v | ) | const |
Definition at line 38 of file graph.cpp.
References graph::const_visitor::visit().
Referenced by jdl::dag_visitor::check_dag().
void graph::node::accept | ( | graph::visitor & | v | ) |
std::string graph::node::name [private] |
component const* graph::node::definition [private] |
std::vector<node*> graph::node::parents [private] |
std::vector<boost::shared_ptr<node> > graph::node::children [private] |
Definition at line 36 of file graph_node.hpp.
Referenced by add_child(), get_children(), and print().