Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEDataSet::AttributeColors Class Reference

attribute colors More...

#include <GNEDataSet.h>

Public Member Functions

 AttributeColors ()
 default constructor
void clear ()
 clear AttributeColors
bool exist (const std::string &attribute) const
 check if given attribute exist (needed for non-double attributes)
double getMaxValue (const std::string &attribute) const
 get maximum value
double getMinValue (const std::string &attribute) const
 get minimum value
void updateAllValues (const AttributeColors &attributeColors)
 update value for all attributes
void updateValues (const std::string &attribute, const double value)
 update value for an specific attribute

Private Member Functions

AttributeColorsoperator= (const AttributeColors &)=delete
 Invalidated assignment operator.

Private Attributes

std::map< std::string, std::pair< double, double > > myMinMaxValue
 map with the minimum and maximum value

Detailed Description

attribute colors

Definition at line 42 of file GNEDataSet.h.

Constructor & Destructor Documentation

◆ AttributeColors()

GNEDataSet::AttributeColors::AttributeColors ( )

default constructor

Definition at line 39 of file GNEDataSet.cpp.

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

Here is the caller graph for this function:

Member Function Documentation

◆ clear()

void GNEDataSet::AttributeColors::clear ( )

clear AttributeColors

Definition at line 100 of file GNEDataSet.cpp.

References myMinMaxValue.

◆ exist()

bool GNEDataSet::AttributeColors::exist ( const std::string & attribute) const

check if given attribute exist (needed for non-double attributes)

Definition at line 82 of file GNEDataSet.cpp.

References myMinMaxValue.

◆ getMaxValue()

double GNEDataSet::AttributeColors::getMaxValue ( const std::string & attribute) const

get maximum value

Definition at line 94 of file GNEDataSet.cpp.

References myMinMaxValue.

◆ getMinValue()

double GNEDataSet::AttributeColors::getMinValue ( const std::string & attribute) const

get minimum value

Definition at line 88 of file GNEDataSet.cpp.

References myMinMaxValue.

◆ operator=()

AttributeColors & GNEDataSet::AttributeColors::operator= ( const AttributeColors & )
privatedelete

Invalidated assignment operator.

References AttributeColors().

◆ updateAllValues()

void GNEDataSet::AttributeColors::updateAllValues ( const AttributeColors & attributeColors)

update value for all attributes

Definition at line 62 of file GNEDataSet.cpp.

References AttributeColors(), and myMinMaxValue.

◆ updateValues()

void GNEDataSet::AttributeColors::updateValues ( const std::string & attribute,
const double value )

update value for an specific attribute

Definition at line 44 of file GNEDataSet.cpp.

References invalid_return< std::string >::value, and myMinMaxValue.

Field Documentation

◆ myMinMaxValue

std::map<std::string, std::pair<double, double> > GNEDataSet::AttributeColors::myMinMaxValue
private

map with the minimum and maximum value

Definition at line 68 of file GNEDataSet.h.

Referenced by clear(), exist(), getMaxValue(), getMinValue(), updateAllValues(), and updateValues().


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