AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

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

Definition at line 76 of file PowerLineTraverser.h.

Member Function Documentation

virtual bool agxPowerLine::AbstractPowerLineTraverser< const agxPowerLine::Unit * , const agxPowerLine::PhysicalDimension * , const agxPowerLine::Connector * , const agxPowerLine::SubGraph * >::shouldQueueChildren ( const agxPowerLine::Unit *  unit)
protectedvirtualinherited
virtual bool agxPowerLine::AbstractPowerLineTraverser< const agxPowerLine::Unit * , const agxPowerLine::PhysicalDimension * , const agxPowerLine::Connector * , const agxPowerLine::SubGraph * >::shouldQueueChildren ( const agxPowerLine::PhysicalDimension *  dimension)
protectedvirtualinherited
virtual bool agxPowerLine::AbstractPowerLineTraverser< const agxPowerLine::Unit * , const agxPowerLine::PhysicalDimension * , const agxPowerLine::Connector * , const agxPowerLine::SubGraph * >::shouldQueueChildren ( const agxPowerLine::Connector *  connector)
protectedvirtualinherited
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.

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

Start a traversal that only visits Connectors.

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.

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.

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.

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.

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: