Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
libsumo::Helper::SubscriptionWrapper Class Referencefinal

#include <Helper.h>

Inheritance diagram for libsumo::Helper::SubscriptionWrapper:
[legend]
Collaboration diagram for libsumo::Helper::SubscriptionWrapper:
[legend]

Public Types

typedef bool(* SubscriptionHandler) (const std::string &objID, const int variable, VariableWrapper *wrapper, tcpip::Storage *paramData)
 Definition of a method to be called for serving an associated commandID.

Public Member Functions

void clear ()
void empty (const std::string &objID)
void setContext (const std::string *const refID)
 SubscriptionWrapper (VariableWrapper::SubscriptionHandler handler, SubscriptionResults &into, ContextSubscriptionResults &context)
bool wrapBestLanesDataVector (const std::string &objID, const int variable, const std::vector< TraCIBestLanesData > &value)
bool wrapColor (const std::string &objID, const int variable, const TraCIColor &value)
bool wrapConnectionVector (const std::string &objID, const int variable, const std::vector< TraCIConnection > &value)
bool wrapDouble (const std::string &objID, const int variable, const double value)
bool wrapDoubleList (const std::string &objID, const int variable, const std::vector< double > &value)
bool wrapInt (const std::string &objID, const int variable, const int value)
bool wrapIntPair (const std::string &objID, const int variable, const std::pair< int, int > &value)
bool wrapJunctionFoeVector (const std::string &objID, const int variable, const std::vector< TraCIJunctionFoe > &value)
bool wrapLinkVectorVector (const std::string &objID, const int variable, const std::vector< std::vector< TraCILink > > &value)
bool wrapLogicVector (const std::string &objID, const int variable, const std::vector< TraCILogic > &value)
bool wrapNextStopDataVector (const std::string &objID, const int variable, const std::vector< TraCINextStopData > &value)
bool wrapNextTLSDataVector (const std::string &objID, const int variable, const std::vector< TraCINextTLSData > &value)
bool wrapPosition (const std::string &objID, const int variable, const TraCIPosition &value)
bool wrapPositionVector (const std::string &objID, const int variable, const TraCIPositionVector &value)
bool wrapReservationVector (const std::string &objID, const int variable, const std::vector< TraCIReservation > &value)
bool wrapSignalConstraintVector (const std::string &objID, const int variable, const std::vector< TraCISignalConstraint > &value)
bool wrapStage (const std::string &objID, const int variable, const TraCIStage &value)
bool wrapString (const std::string &objID, const int variable, const std::string &value)
bool wrapStringDoublePair (const std::string &objID, const int variable, const std::pair< std::string, double > &value)
bool wrapStringDoublePairList (const std::string &objID, const int variable, const std::vector< std::pair< std::string, double > > &value)
bool wrapStringList (const std::string &objID, const int variable, const std::vector< std::string > &value)
bool wrapStringPair (const std::string &objID, const int variable, const std::pair< std::string, std::string > &value)
bool wrapVehicleDataVector (const std::string &objID, const int variable, const std::vector< TraCIVehicleData > &value)

Data Fields

SubscriptionHandler handle

Private Member Functions

SubscriptionWrapperoperator= (const SubscriptionWrapper &s)=delete
 Invalidated assignment operator.

Private Attributes

SubscriptionResultsmyActiveResults
ContextSubscriptionResultsmyContextResults
SubscriptionResultsmyResults

Detailed Description

Definition at line 214 of file Helper.h.

Member Typedef Documentation

◆ SubscriptionHandler

typedef bool(* libsumo::VariableWrapper::SubscriptionHandler) (const std::string &objID, const int variable, VariableWrapper *wrapper, tcpip::Storage *paramData)
inherited

Definition of a method to be called for serving an associated commandID.

Definition at line 153 of file Subscription.h.

Constructor & Destructor Documentation

◆ SubscriptionWrapper()

libsumo::Helper::SubscriptionWrapper::SubscriptionWrapper ( VariableWrapper::SubscriptionHandler handler,
SubscriptionResults & into,
ContextSubscriptionResults & context )

Definition at line 1913 of file Helper.cpp.

References myActiveResults, myContextResults, myResults, and libsumo::VariableWrapper::VariableWrapper().

Referenced by operator=().

Here is the caller graph for this function:

Member Function Documentation

◆ clear()

void libsumo::Helper::SubscriptionWrapper::clear ( )
virtual

Reimplemented from libsumo::VariableWrapper.

Definition at line 1926 of file Helper.cpp.

References myActiveResults, myContextResults, and myResults.

◆ empty()

void libsumo::Helper::SubscriptionWrapper::empty ( const std::string & objID)
virtual

Reimplemented from libsumo::VariableWrapper.

Definition at line 2127 of file Helper.cpp.

◆ operator=()

SubscriptionWrapper & libsumo::Helper::SubscriptionWrapper::operator= ( const SubscriptionWrapper & s)
privatedelete

Invalidated assignment operator.

References SubscriptionWrapper().

◆ setContext()

void libsumo::Helper::SubscriptionWrapper::setContext ( const std::string *const refID)
virtual

Reimplemented from libsumo::VariableWrapper.

Definition at line 1920 of file Helper.cpp.

References myActiveResults, myContextResults, and myResults.

◆ wrapBestLanesDataVector()

bool libsumo::Helper::SubscriptionWrapper::wrapBestLanesDataVector ( const std::string & objID,
const int variable,
const std::vector< TraCIBestLanesData > & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 2109 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapColor()

bool libsumo::Helper::SubscriptionWrapper::wrapColor ( const std::string & objID,
const int variable,
const TraCIColor & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 1996 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapConnectionVector()

bool libsumo::Helper::SubscriptionWrapper::wrapConnectionVector ( const std::string & objID,
const int variable,
const std::vector< TraCIConnection > & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 1934 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapDouble()

bool libsumo::Helper::SubscriptionWrapper::wrapDouble ( const std::string & objID,
const int variable,
const double value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 1943 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapDoubleList()

bool libsumo::Helper::SubscriptionWrapper::wrapDoubleList ( const std::string & objID,
const int variable,
const std::vector< double > & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 1973 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapInt()

bool libsumo::Helper::SubscriptionWrapper::wrapInt ( const std::string & objID,
const int variable,
const int value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 1950 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapIntPair()

bool libsumo::Helper::SubscriptionWrapper::wrapIntPair ( const std::string & objID,
const int variable,
const std::pair< int, int > & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 2029 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapJunctionFoeVector()

bool libsumo::Helper::SubscriptionWrapper::wrapJunctionFoeVector ( const std::string & objID,
const int variable,
const std::vector< TraCIJunctionFoe > & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 2082 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapLinkVectorVector()

bool libsumo::Helper::SubscriptionWrapper::wrapLinkVectorVector ( const std::string & objID,
const int variable,
const std::vector< std::vector< TraCILink > > & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 2064 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapLogicVector()

bool libsumo::Helper::SubscriptionWrapper::wrapLogicVector ( const std::string & objID,
const int variable,
const std::vector< TraCILogic > & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 2055 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapNextStopDataVector()

bool libsumo::Helper::SubscriptionWrapper::wrapNextStopDataVector ( const std::string & objID,
const int variable,
const std::vector< TraCINextStopData > & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 2091 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapNextTLSDataVector()

bool libsumo::Helper::SubscriptionWrapper::wrapNextTLSDataVector ( const std::string & objID,
const int variable,
const std::vector< TraCINextTLSData > & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 2118 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapPosition()

bool libsumo::Helper::SubscriptionWrapper::wrapPosition ( const std::string & objID,
const int variable,
const TraCIPosition & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 1982 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapPositionVector()

bool libsumo::Helper::SubscriptionWrapper::wrapPositionVector ( const std::string & objID,
const int variable,
const TraCIPositionVector & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 1989 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapReservationVector()

bool libsumo::Helper::SubscriptionWrapper::wrapReservationVector ( const std::string & objID,
const int variable,
const std::vector< TraCIReservation > & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 2046 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapSignalConstraintVector()

bool libsumo::Helper::SubscriptionWrapper::wrapSignalConstraintVector ( const std::string & objID,
const int variable,
const std::vector< TraCISignalConstraint > & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 2073 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapStage()

bool libsumo::Helper::SubscriptionWrapper::wrapStage ( const std::string & objID,
const int variable,
const TraCIStage & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 2039 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapString()

bool libsumo::Helper::SubscriptionWrapper::wrapString ( const std::string & objID,
const int variable,
const std::string & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 1957 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapStringDoublePair()

bool libsumo::Helper::SubscriptionWrapper::wrapStringDoublePair ( const std::string & objID,
const int variable,
const std::pair< std::string, double > & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 2003 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapStringDoublePairList()

bool libsumo::Helper::SubscriptionWrapper::wrapStringDoublePairList ( const std::string & objID,
const int variable,
const std::vector< std::pair< std::string, double > > & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 2010 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapStringList()

bool libsumo::Helper::SubscriptionWrapper::wrapStringList ( const std::string & objID,
const int variable,
const std::vector< std::string > & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 1964 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapStringPair()

bool libsumo::Helper::SubscriptionWrapper::wrapStringPair ( const std::string & objID,
const int variable,
const std::pair< std::string, std::string > & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 2019 of file Helper.cpp.

References invalid_return< std::string >::value.

◆ wrapVehicleDataVector()

bool libsumo::Helper::SubscriptionWrapper::wrapVehicleDataVector ( const std::string & objID,
const int variable,
const std::vector< TraCIVehicleData > & value )
virtual

Implements libsumo::VariableWrapper.

Definition at line 2100 of file Helper.cpp.

References invalid_return< std::string >::value.

Field Documentation

◆ handle

SubscriptionHandler libsumo::VariableWrapper::handle
inherited

Definition at line 156 of file Subscription.h.

Referenced by VariableWrapper().

◆ myActiveResults

SubscriptionResults* libsumo::Helper::SubscriptionWrapper::myActiveResults
private

Definition at line 246 of file Helper.h.

Referenced by clear(), setContext(), and SubscriptionWrapper().

◆ myContextResults

ContextSubscriptionResults& libsumo::Helper::SubscriptionWrapper::myContextResults
private

Definition at line 245 of file Helper.h.

Referenced by clear(), setContext(), and SubscriptionWrapper().

◆ myResults

SubscriptionResults& libsumo::Helper::SubscriptionWrapper::myResults
private

Definition at line 244 of file Helper.h.

Referenced by clear(), setContext(), and SubscriptionWrapper().


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