graph::node Class Reference

#include <graph_node.hpp>

Collaboration diagram for graph::node:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 32 of file graph_node.hpp.


Constructor & Destructor Documentation

graph::node::node ( std::string  _name,
jdl::component const *  def 
) [inline]

Definition at line 41 of file graph_node.hpp.


Member Function Documentation

void graph::node::add_parent ( node node  )  [inline, private]

Definition at line 38 of file graph_node.hpp.

References parents.

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]

Definition at line 48 of file graph_node.hpp.

References definition.

std::vector<node*> const& graph::node::get_parents (  )  const [inline]

Definition at line 50 of file graph_node.hpp.

References parents.

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

Definition at line 46 of file graph.cpp.

References children, jdl::indent(), and name.

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  ) 

Definition at line 42 of file graph.cpp.

References graph::visitor::visit().


Member Data Documentation

std::string graph::node::name [private]

Definition at line 33 of file graph_node.hpp.

Referenced by get_name(), and print().

component const* graph::node::definition [private]

Definition at line 34 of file graph_node.hpp.

Referenced by get_definition().

std::vector<node*> graph::node::parents [private]

Definition at line 35 of file graph_node.hpp.

Referenced by add_parent(), and get_parents().

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().


The documentation for this class was generated from the following files:
Generated on Sun Feb 17 16:55:49 2008 for JDLParser by  doxygen 1.5.3