Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEViewNetHelper::MarkFrontElements Class Reference

class used for group front elements More...

#include <GNEViewNetHelper.h>

Public Member Functions

const std::unordered_set< GNEAttributeCarrier * > & getACs () const
 get hash table with all fronted ACs
 MarkFrontElements ()
 constructor
void unmarkAll ()
 unmark all ACs

Protected Member Functions

void markAC (GNEAttributeCarrier *AC)
 mark AC as drawing front
void unmarkAC (GNEAttributeCarrier *AC)
 unmark AC for drawing front

Private Member Functions

 MarkFrontElements (const MarkFrontElements &)=delete
 Invalidated copy constructor.
MarkFrontElementsoperator= (const MarkFrontElements &)=delete
 Invalidated assignment operator.

Private Attributes

std::unordered_set< GNEAttributeCarrier * > myMarkedACs
 hash table with all marked ACs (we use a set to make deletion of massive elements more quickly)

Friends

class GNEAttributeCarrier
 only GNEAttributeCarrier have access to mark/unmarkAC

Detailed Description

class used for group front elements

Definition at line 305 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ MarkFrontElements() [1/2]

GNEViewNetHelper::MarkFrontElements::MarkFrontElements ( )

constructor

Definition at line 332 of file GNEViewNetHelper.cpp.

Referenced by MarkFrontElements(), and operator=().

Here is the caller graph for this function:

◆ MarkFrontElements() [2/2]

GNEViewNetHelper::MarkFrontElements::MarkFrontElements ( const MarkFrontElements & )
privatedelete

Invalidated copy constructor.

References MarkFrontElements().

Member Function Documentation

◆ getACs()

const std::unordered_set< GNEAttributeCarrier * > & GNEViewNetHelper::MarkFrontElements::getACs ( ) const

get hash table with all fronted ACs

Definition at line 336 of file GNEViewNetHelper.cpp.

References myMarkedACs.

◆ markAC()

void GNEViewNetHelper::MarkFrontElements::markAC ( GNEAttributeCarrier * AC)
protected

mark AC as drawing front

Definition at line 352 of file GNEViewNetHelper.cpp.

References GNEAttributeCarrier, and myMarkedACs.

◆ operator=()

MarkFrontElements & GNEViewNetHelper::MarkFrontElements::operator= ( const MarkFrontElements & )
privatedelete

Invalidated assignment operator.

References MarkFrontElements().

◆ unmarkAC()

void GNEViewNetHelper::MarkFrontElements::unmarkAC ( GNEAttributeCarrier * AC)
protected

unmark AC for drawing front

Definition at line 358 of file GNEViewNetHelper.cpp.

References GNEAttributeCarrier, and myMarkedACs.

◆ unmarkAll()

void GNEViewNetHelper::MarkFrontElements::unmarkAll ( )

unmark all ACs

Definition at line 342 of file GNEViewNetHelper.cpp.

References myMarkedACs.

◆ GNEAttributeCarrier

friend class GNEAttributeCarrier
friend

only GNEAttributeCarrier have access to mark/unmarkAC

Definition at line 308 of file GNEViewNetHelper.h.

References GNEAttributeCarrier.

Referenced by GNEAttributeCarrier, markAC(), and unmarkAC().

Field Documentation

◆ myMarkedACs

std::unordered_set<GNEAttributeCarrier*> GNEViewNetHelper::MarkFrontElements::myMarkedACs
private

hash table with all marked ACs (we use a set to make deletion of massive elements more quickly)

Definition at line 329 of file GNEViewNetHelper.h.

Referenced by getACs(), markAC(), unmarkAC(), and unmarkAll().


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