Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
AFInfo< E >::ArcInfoBase Class Reference

#include <AFInfo.h>

Inheritance diagram for AFInfo< E >::ArcInfoBase:
[legend]
Collaboration diagram for AFInfo< E >::ArcInfoBase:
[legend]

Public Member Functions

 ArcInfoBase (const E *const e)
 Constructor param[in] e The edge.
 
ArcInfoBaseoperator= (const ArcInfoBase &other)
 Copy constructor.
 
void reset ()
 Reset the flag information.
 
 ~ArcInfoBase ()
 

Data Fields

std::vector< bool > arcFlags
 The arc flags.
 
const E *const edge
 The current edge.
 
double key
 The key for sorting the heap.
 
bool touched
 The flag indicating whether the edge has already been touched or not.
 

Detailed Description

template<class E>
class AFInfo< E >::ArcInfoBase

Derived from FlagInfo. Therefore holds a pointer to the associated edge, and flag information for arc flag routing. Additionally, it holds a key for sorting the heap, and a flag indicating whether the edge has already been touched

Definition at line 78 of file AFInfo.h.

Constructor & Destructor Documentation

◆ ArcInfoBase()

template<class E >
AFInfo< E >::ArcInfoBase::ArcInfoBase ( const E *const  e)
inline

Constructor param[in] e The edge.

Definition at line 83 of file AFInfo.h.

◆ ~ArcInfoBase()

template<class E >
AFInfo< E >::ArcInfoBase::~ArcInfoBase ( )
inline

Definition at line 102 of file AFInfo.h.

Member Function Documentation

◆ operator=()

template<class E >
ArcInfoBase & AFInfo< E >::ArcInfoBase::operator= ( const ArcInfoBase other)
inline

Copy constructor.

Parameters
[in]otherThe other ArcInfoBase instance to copy
Returns
This instance (i.e., the result of the copy)

Definition at line 92 of file AFInfo.h.

References AFInfo< E >::ArcInfoBase::key, and AFInfo< E >::ArcInfoBase::touched.

◆ reset()

template<class E >
void AFInfo< E >::ArcInfoBase::reset ( )
inlinevirtual

Reset the flag information.

Reimplemented from AFInfo< E >::FlagInfo.

Definition at line 103 of file AFInfo.h.

Field Documentation

◆ arcFlags

template<class E >
std::vector<bool> AFInfo< E >::ArcInfoBase::arcFlags

◆ edge

template<class E >
const E* const AFInfo< E >::FlagInfo::edge
inherited

The current edge.

Definition at line 65 of file AFInfo.h.

Referenced by AFBuild< E, N, V, M >::computeArcFlagsAux(), and AFInfo< E >::FlagInfo::operator=().

◆ key

◆ touched

template<class E >
bool AFInfo< E >::ArcInfoBase::touched

The flag indicating whether the edge has already been touched or not.

Definition at line 111 of file AFInfo.h.

Referenced by AFCentralizedSPTree< E, N, V >::computeCentralizedSPTree(), and AFInfo< E >::ArcInfoBase::operator=().


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