![]() |
Eclipse SUMO - Simulation of Urban MObility
|
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 | |
| AttributeColors & | operator= (const AttributeColors &)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| std::map< std::string, std::pair< double, double > > | myMinMaxValue |
| map with the minimum and maximum value | |
attribute colors
Definition at line 42 of file GNEDataSet.h.
| GNEDataSet::AttributeColors::AttributeColors | ( | ) |
default constructor
Definition at line 38 of file GNEDataSet.cpp.
Referenced by operator=(), and updateAllValues().
| void GNEDataSet::AttributeColors::clear | ( | ) |
| bool GNEDataSet::AttributeColors::exist | ( | const std::string & | attribute | ) | const |
check if given attribute exist (needed for non-double attributes)
Definition at line 81 of file GNEDataSet.cpp.
References myMinMaxValue.
| double GNEDataSet::AttributeColors::getMaxValue | ( | const std::string & | attribute | ) | const |
| double GNEDataSet::AttributeColors::getMinValue | ( | const std::string & | attribute | ) | const |
|
privatedelete |
Invalidated assignment operator.
References AttributeColors().
| void GNEDataSet::AttributeColors::updateAllValues | ( | const AttributeColors & | attributeColors | ) |
update value for all attributes
Definition at line 61 of file GNEDataSet.cpp.
References AttributeColors(), and myMinMaxValue.
| void GNEDataSet::AttributeColors::updateValues | ( | const std::string & | attribute, |
| const double | value ) |
update value for an specific attribute
Definition at line 43 of file GNEDataSet.cpp.
References invalid_return< std::string >::value, and 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().