MeshKit
1.0
|
A parent class for anything that will be a graph node. More...
#include <meshkit/GraphNode.hpp>
Public Member Functions | |
GraphNode (const GraphNode &graph_node) | |
Copy constructor. | |
GraphNode (MKGraph *graph) | |
Bare constructor. | |
virtual | ~GraphNode () |
Destructor. | |
MKGraph * | get_graph () const |
Get the associated MKGraph object. | |
lemon::ListDigraph::Node | get_node () const |
Get the graph node corresponding to this GraphNode. | |
lemon::ListDigraph::InArcIt | in_arcs () const |
Return an iterator over incoming graph edges. | |
lemon::ListDigraph::OutArcIt | out_arcs () const |
Return an iterator over outgoing graph edges. | |
GraphNode * | other_node (lemon::ListDigraph::Arc arc) |
Return the GraphNode at the other end of a connected graph edge. | |
virtual std::string | get_name () const |
Get node name. | |
virtual void | set_name (std::string new_name) |
Set node name. | |
virtual void | setup_this ()=0 |
Pure virtual, derived class must define. | |
virtual void | execute_this ()=0 |
Pure virtual, derived class must define. | |
bool | setup_called () const |
Get flag denoting whether setup_this has been called for this node. | |
void | setup_called (bool flag) |
Set flag denoting whether setup_this has been called for this node. | |
bool | execute_called () const |
Get flag denoting whether execute_this has been called for this node. | |
void | execute_called (bool flag) |
Set flag denoting whether execute_this has been called for this node. | |
Protected Attributes | |
MKGraph * | mkGraph |
MKGraph associated with this GraphNode. | |
lemon::ListDigraph::Node | graphNode |
The graph node associated with this GraphNode. | |
std::string | nodeName |
Local name for this node. | |
bool | setupCalled |
Flag denoting whether setup_this has been called for this node. | |
bool | executeCalled |
Flag denoting whether execute_this has been called for this node. | |
Friends | |
class | MKGraph |
Friend class, to allow more direct access. |
A parent class for anything that will be a graph node.
This class encapsulates operations on graph nodes, like inserting/removing in graph, inserting new parents, etc. This class HasA Lemon node object (which is really just an index into the graph node vector). Instances of this class keep a pointer to a MKGraph object, which is really usually just the MKCore instance, where the graph itself is stored.
Definition at line 20 of file GraphNode.hpp.
Copy constructor.
Definition at line 106 of file GraphNode.hpp.
Bare constructor.
Definition at line 122 of file GraphNode.hpp.
~GraphNode | ( | ) | [inline, virtual] |
Destructor.
Definition at line 138 of file GraphNode.hpp.
bool execute_called | ( | ) | const [inline] |
Get flag denoting whether execute_this has been called for this node.
Definition at line 192 of file GraphNode.hpp.
void execute_called | ( | bool | flag | ) | [inline] |
Set flag denoting whether execute_this has been called for this node.
flag | New value for setupCalled |
Definition at line 198 of file GraphNode.hpp.
virtual void execute_this | ( | ) | [pure virtual] |
Pure virtual, derived class must define.
Implemented in EBMesher, IAInterface, IAInterface, IAInterface, AF2DfltTriangleMeshOp, SCDMesh, CoreGen, PostBL, AssyGen, MergeMesh, AssyMesher, ExtrudeMesh, CopyMesh, ParallelMesher, CopyGeom, MeshOpTemplate, CurveFacetMeshReader, ParExchangeMesh, SubMapping, ParRecvSurfMesh, ParSendPostSurfMesh, EdgeMesher, OneToOneSwept, QslimMesher, TFIMapping, VertexMesher, SurfaceFacetMeshReader, ProjectShell, MyScheme, CAMALTetMesher, NGTetMesher, CAMALPaver, CAMALTriAdvance, QuadMesher, MyScheme, MBSplitOp, MBVolOp, TriangleMesher, MBGeomOp, and NoOp.
Get the associated MKGraph object.
Definition at line 164 of file GraphNode.hpp.
std::string get_name | ( | ) | const [inline, virtual] |
Get node name.
Definition at line 144 of file GraphNode.hpp.
lemon::ListDigraph::Node get_node | ( | ) | const [inline] |
Get the graph node corresponding to this GraphNode.
Definition at line 170 of file GraphNode.hpp.
lemon::ListDigraph::InArcIt in_arcs | ( | ) | const [inline] |
Return an iterator over incoming graph edges.
Definition at line 154 of file GraphNode.hpp.
GraphNode * other_node | ( | lemon::ListDigraph::Arc | arc | ) | [inline] |
Return the GraphNode at the other end of a connected graph edge.
arc | Edge being queried |
Definition at line 175 of file GraphNode.hpp.
lemon::ListDigraph::OutArcIt out_arcs | ( | ) | const [inline] |
Return an iterator over outgoing graph edges.
Definition at line 159 of file GraphNode.hpp.
void set_name | ( | std::string | new_name | ) | [inline, virtual] |
Set node name.
Definition at line 149 of file GraphNode.hpp.
bool setup_called | ( | ) | const [inline] |
Get flag denoting whether setup_this has been called for this node.
Definition at line 181 of file GraphNode.hpp.
void setup_called | ( | bool | flag | ) | [inline] |
Set flag denoting whether setup_this has been called for this node.
flag | New value for setupCalled |
Definition at line 187 of file GraphNode.hpp.
virtual void setup_this | ( | ) | [pure virtual] |
Pure virtual, derived class must define.
Implemented in EBMesher, AF2DfltTriangleMeshOp, IAInterface, IAInterface, IAInterface, SCDMesh, CoreGen, PostBL, AssyGen, MergeMesh, AssyMesher, ExtrudeMesh, CopyMesh, ParallelMesher, CopyGeom, MeshOpTemplate, CurveFacetMeshReader, SubMapping, ParExchangeMesh, OneToOneSwept, EdgeMesher, ParRecvSurfMesh, ParSendPostSurfMesh, QslimMesher, TFIMapping, VertexMesher, SurfaceFacetMeshReader, ProjectShell, MyScheme, CAMALTetMesher, NGTetMesher, CAMALPaver, CAMALTriAdvance, QuadMesher, MyScheme, MBSplitOp, MBVolOp, TriangleMesher, MBGeomOp, and NoOp.
friend class MKGraph [friend] |
Friend class, to allow more direct access.
Definition at line 26 of file GraphNode.hpp.
bool executeCalled [protected] |
Flag denoting whether execute_this has been called for this node.
Definition at line 101 of file GraphNode.hpp.
lemon::ListDigraph::Node graphNode [protected] |
The graph node associated with this GraphNode.
Definition at line 92 of file GraphNode.hpp.
MKGraph associated with this GraphNode.
Definition at line 89 of file GraphNode.hpp.
std::string nodeName [protected] |
Local name for this node.
Definition at line 95 of file GraphNode.hpp.
bool setupCalled [protected] |
Flag denoting whether setup_this has been called for this node.
Definition at line 98 of file GraphNode.hpp.