Eclipse SUMO - Simulation of Urban MObility
FXSynchSet< T, Container > Class Template Reference

#include <FXSynchSet.h>

Public Member Functions

void clear ()
 
bool contains (const T &item) const
 
bool empty ()
 
 FXSynchSet (const bool condition=true)
 
Container & getContainer ()
 
void insert (T what)
 
bool isLocked () const
 
size_t size () const
 
void unlock ()
 
void unsetCondition ()
 

Private Attributes

bool myCondition
 
Container myItems
 

Detailed Description

template<class T, class Container = std::set<T>>
class FXSynchSet< T, Container >

Definition at line 39 of file FXSynchSet.h.

Constructor & Destructor Documentation

◆ FXSynchSet()

template<class T , class Container = std::set<T>>
FXSynchSet< T, Container >::FXSynchSet ( const bool  condition = true)
inline

Definition at line 41 of file FXSynchSet.h.

Member Function Documentation

◆ clear()

template<class T , class Container = std::set<T>>
void FXSynchSet< T, Container >::clear ( )
inline

Definition at line 112 of file FXSynchSet.h.

References FXSynchSet< T, Container >::myCondition, and FXSynchSet< T, Container >::myItems.

Referenced by MSEdgeControl::detectCollisions().

Here is the caller graph for this function:

◆ contains()

template<class T , class Container = std::set<T>>
bool FXSynchSet< T, Container >::contains ( const T &  item) const
inline

◆ empty()

template<class T , class Container = std::set<T>>
bool FXSynchSet< T, Container >::empty ( )
inline

◆ getContainer()

template<class T , class Container = std::set<T>>
Container& FXSynchSet< T, Container >::getContainer ( )
inline

Definition at line 54 of file FXSynchSet.h.

References FXSynchSet< T, Container >::myCondition, and FXSynchSet< T, Container >::myItems.

Referenced by MSEdgeControl::detectCollisions().

Here is the caller graph for this function:

◆ insert()

template<class T , class Container = std::set<T>>
void FXSynchSet< T, Container >::insert ( what)
inline

Definition at line 83 of file FXSynchSet.h.

References FXSynchSet< T, Container >::myCondition, and FXSynchSet< T, Container >::myItems.

Referenced by MSEdgeControl::checkCollisionForInactive().

Here is the caller graph for this function:

◆ isLocked()

template<class T , class Container = std::set<T>>
bool FXSynchSet< T, Container >::isLocked ( ) const
inline

Definition at line 156 of file FXSynchSet.h.

◆ size()

template<class T , class Container = std::set<T>>
size_t FXSynchSet< T, Container >::size ( ) const
inline

Definition at line 126 of file FXSynchSet.h.

References FXSynchSet< T, Container >::myCondition, and FXSynchSet< T, Container >::myItems.

Referenced by MSEdgeControl::detectCollisions().

Here is the caller graph for this function:

◆ unlock()

template<class T , class Container = std::set<T>>
void FXSynchSet< T, Container >::unlock ( )
inline

Definition at line 69 of file FXSynchSet.h.

References FXSynchSet< T, Container >::myCondition.

Referenced by MSEdgeControl::detectCollisions().

Here is the caller graph for this function:

◆ unsetCondition()

template<class T , class Container = std::set<T>>
void FXSynchSet< T, Container >::unsetCondition ( )
inline

Definition at line 49 of file FXSynchSet.h.

References FXSynchSet< T, Container >::myCondition.

Field Documentation

◆ myCondition

◆ myItems


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