AGXDynamics  2.31.1.0
agxPowerLine::PowerLineConstTraverser Class Referenceabstract

Template specialization for const traversal. More...

#include <PowerLineTraverser.h>

+ Inheritance diagram for agxPowerLine::PowerLineConstTraverser:

Public Types

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

Public Member Functions

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

Protected Member Functions

virtual bool shouldQueueChildren (const agxPowerLine::Unit * unit)
 
virtual bool shouldQueueChildren (const agxPowerLine::PhysicalDimension * dimension)
 
virtual bool shouldQueueChildren (const agxPowerLine::Connector * connector)
 
virtual bool visit (const agxPowerLine::Unit * unit)=0
 Called when a Unit is encountered in the graph, if the GraphNodeTypes variable includes UNITS. More...
 
virtual bool visit (const agxPowerLine::PhysicalDimension * dimension)=0
 Called when a PhysicalDimension is encountered in the graph, if the GraphNodeTypes variable includes DIMENSIONS. More...
 
virtual bool visit (const 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 const traversal.

Definition at line 163 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]

bool agxPowerLine::AbstractPowerLineTraverser< const agxPowerLine::Unit * , const agxPowerLine::PhysicalDimension * , const agxPowerLine::Connector * , const agxPowerLine::SubGraph * >::shouldQueueChildren ( const agxPowerLine::Unit *  unit)
protectedvirtualinherited

Definition at line 334 of file PowerLineTraverserImpl.h.

◆ shouldQueueChildren() [2/3]

bool agxPowerLine::AbstractPowerLineTraverser< const agxPowerLine::Unit * , const agxPowerLine::PhysicalDimension * , const agxPowerLine::Connector * , const agxPowerLine::SubGraph * >::shouldQueueChildren ( const agxPowerLine::PhysicalDimension *  dimension)
protectedvirtualinherited

Definition at line 340 of file PowerLineTraverserImpl.h.

◆ shouldQueueChildren() [3/3]

bool agxPowerLine::AbstractPowerLineTraverser< const agxPowerLine::Unit * , const agxPowerLine::PhysicalDimension * , const agxPowerLine::Connector * , const agxPowerLine::SubGraph * >::shouldQueueChildren ( const agxPowerLine::Connector *  connector)
protectedvirtualinherited

Definition at line 346 of file PowerLineTraverserImpl.h.

◆ traverse()

bool agxPowerLine::AbstractPowerLineTraverser< const agxPowerLine::Unit * , const agxPowerLine::PhysicalDimension * , const agxPowerLine::Connector * , const agxPowerLine::SubGraph * >::traverse ( GraphNodeTypes  typesToVisit,
const agxPowerLine::Unit *  source,
TraversalMode  mode 
)
inherited

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

Definition at line 284 of file PowerLineTraverserImpl.h.

References agxVerify.

◆ traverseConnectors()

◆ traverseDimensions()

bool agxPowerLine::AbstractPowerLineTraverser< const agxPowerLine::Unit * , const agxPowerLine::PhysicalDimension * , const agxPowerLine::Connector * , const agxPowerLine::SubGraph * >::traverseDimensions ( const agxPowerLine::Unit *  source,
TraversalMode  mode 
)
inherited

Start a traversal that only visits PhysicalDimensions.

Definition at line 52 of file PowerLineTraverserImpl.h.

References agxPowerLine::DIMENSIONS.

◆ traverseUnits()

bool agxPowerLine::AbstractPowerLineTraverser< const agxPowerLine::Unit * , const agxPowerLine::PhysicalDimension * , const agxPowerLine::Connector * , const agxPowerLine::SubGraph * >::traverseUnits ( const agxPowerLine::Unit *  source,
TraversalMode  mode 
)
inherited

Start a traversal that only visits Units.

Definition at line 42 of file PowerLineTraverserImpl.h.

References agxPowerLine::UNITS.

◆ visit() [1/3]

virtual bool agxPowerLine::AbstractPowerLineTraverser< const agxPowerLine::Unit * , const agxPowerLine::PhysicalDimension * , const agxPowerLine::Connector * , const agxPowerLine::SubGraph * >::visit ( const agxPowerLine::Unit *  unit)
protectedpure virtualinherited

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

◆ visit() [2/3]

virtual bool agxPowerLine::AbstractPowerLineTraverser< const agxPowerLine::Unit * , const agxPowerLine::PhysicalDimension * , const agxPowerLine::Connector * , const agxPowerLine::SubGraph * >::visit ( const agxPowerLine::PhysicalDimension *  dimension)
protectedpure virtualinherited

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

◆ visit() [3/3]

virtual bool agxPowerLine::AbstractPowerLineTraverser< const agxPowerLine::Unit * , const agxPowerLine::PhysicalDimension * , const agxPowerLine::Connector * , const agxPowerLine::SubGraph * >::visit ( const agxPowerLine::Connector *  connector)
protectedpure virtualinherited

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


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