AGXDynamics  2.31.1.0
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

◆ TraversalMode

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

Definition at line 76 of file PowerLineTraverser.h.

Member Function Documentation

◆ shouldQueueChildren() [1/3]

◆ shouldQueueChildren() [2/3]

◆ shouldQueueChildren() [3/3]

◆ traverse()

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

Definition at line 284 of file PowerLineTraverserImpl.h.

◆ traverseConnectors()

Start a traversal that only visits Connectors.

Definition at line 62 of file PowerLineTraverserImpl.h.

◆ traverseDimensions()

Start a traversal that only visits PhysicalDimensions.

Definition at line 52 of file PowerLineTraverserImpl.h.

◆ traverseUnits()

Start a traversal that only visits Units.

Definition at line 42 of file PowerLineTraverserImpl.h.

◆ visit() [1/3]

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

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

◆ visit() [2/3]

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

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

◆ visit() [3/3]

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: