#include <depGraph.hpp>
Public Member Functions | |
DepNode (int ind) | |
fictitious constructor: only fill in index (such object is used in find() and then discarded) | |
~DepNode () | |
destructor | |
int | Index () const |
return index of this variable | |
int | Order () const |
return index of this variable | |
std::set< DepNode *, compNode > * | DepList () const |
return all variables it depends on | |
bool | depends (int xi, bool=false, std::set< DepNode *, compNode > *already_visited=NULL) const |
does this variable depend on variable with index xi? | |
void | createOrder (DepGraph *) |
assign numbering to all nodes of graph | |
void | print (int=0, bool descend=false) const |
debugging procedure | |
Protected Attributes | |
int | index_ |
index of variable associated with node | |
std::set< DepNode *, compNode > * | depList_ |
index nodes on which this one depends (forward star in dependence graph) | |
int | order_ |
order in which this variable should be updated, evaluated, etc. |
Contains variable and its forward star (all variables it depends on)
Definition at line 32 of file depGraph.hpp.
DepNode::DepNode | ( | int | ind | ) | [inline] |
fictitious constructor: only fill in index (such object is used in find() and then discarded)
Definition at line 50 of file depGraph.hpp.
DepNode::~DepNode | ( | ) | [inline] |
int DepNode::Index | ( | ) | const [inline] |
int DepNode::Order | ( | ) | const [inline] |
return index of this variable
Definition at line 64 of file depGraph.hpp.
References order_.
Referenced by createOrder().
bool DepNode::depends | ( | int | xi, | |
bool | = false , |
|||
std::set< DepNode *, compNode > * | already_visited = NULL | |||
) | const |
void DepNode::createOrder | ( | DepGraph * | ) |
void DepNode::print | ( | int | = 0 , |
|
bool | descend = false | |||
) | const |
int DepNode::index_ [protected] |
std::set<DepNode *, compNode>* DepNode::depList_ [protected] |
index nodes on which this one depends (forward star in dependence graph)
Definition at line 41 of file depGraph.hpp.
Referenced by createOrder(), depends(), DepList(), print(), and ~DepNode().
int DepNode::order_ [protected] |
order in which this variable should be updated, evaluated, etc.
Definition at line 44 of file depGraph.hpp.
Referenced by createOrder(), Order(), and print().