AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agxPowerLine::PowerLineTraverser Class Referenceabstract

Template specialization for non-const traversal. More...

#include <PowerLineTraverser.h>

+ Inheritance diagram for agxPowerLine::PowerLineTraverser:

Public Types

enum  TraversalMode
 Enumeration that controls how the traversal should behave when encountering compound GraphNodes. More...
 

Public Member Functions

bool traverse (GraphNodeTypes typesToVisit, agxPowerLine::Unit *source, TraversalMode mode)
 Start a traversal that visits the types specified by the given GraphNodeTypes. More...
 
bool traverseConnectors (agxPowerLine::Unit *source, TraversalMode mode)
 Start a traversal that only visits Connectors. More...
 
bool traverseDimensions (agxPowerLine::Unit *source, TraversalMode mode)
 Start a traversal that only visits PhysicalDimensions. More...
 
bool traverseUnits (agxPowerLine::Unit *source, TraversalMode mode)
 Start a traversal that only visits Units. More...
 

Protected Member Functions

virtual bool shouldQueueChildren (agxPowerLine::Unit *unit)
 
virtual bool shouldQueueChildren (agxPowerLine::PhysicalDimension *dimension)
 
virtual bool shouldQueueChildren (agxPowerLine::Connector *connector)
 
virtual bool visit (agxPowerLine::Unit *unit)=0
 Called when a Unit is encountered in the graph, if the GraphNodeTypes variable includes UNITS. More...
 
virtual bool visit (agxPowerLine::PhysicalDimension *dimension)=0
 Called when a PhysicalDimension is encountered in the graph, if the GraphNodeTypes variable includes DIMENSIONS. More...
 
virtual bool visit (agxPowerLine::Connector *connector)=0
 Called when a Connector is encountered in the graph, if the GraphNodeTypes variable includes CONNECTORS. More...
 

Detailed Description

Template specialization for non-const traversal.

Definition at line 153 of file PowerLineTraverser.h.

Member Enumeration Documentation

Enumeration that controls how the traversal should behave when encountering compound GraphNodes.

Definition at line 76 of file PowerLineTraverser.h.

Member Function Documentation

Start a traversal that visits the types specified by the given GraphNodeTypes.

Start a traversal that only visits Connectors.

Start a traversal that only visits PhysicalDimensions.

Start a traversal that only visits Units.

Called when a Unit is encountered in the graph, if the GraphNodeTypes variable includes UNITS.

Implemented in agxPowerLine::PowerLineCallbackTraverser, and agxPowerLine::PowerLineCollector.

Called when a PhysicalDimension is encountered in the graph, if the GraphNodeTypes variable includes DIMENSIONS.

Implemented in agxPowerLine::PowerLineCallbackTraverser, and agxPowerLine::PowerLineCollector.

Called when a Connector is encountered in the graph, if the GraphNodeTypes variable includes CONNECTORS.

Implemented in agxPowerLine::PowerLineCallbackTraverser, and agxPowerLine::PowerLineCollector.


The documentation for this class was generated from the following file: