![]() |
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 47 of file GNEDataSet.h.
GNEDataSet::AttributeColors::AttributeColors | ( | ) |
default constructor
Definition at line 46 of file GNEDataSet.cpp.
void GNEDataSet::AttributeColors::clear | ( | ) |
clear AttributeColors
Definition at line 107 of file GNEDataSet.cpp.
Referenced by GNEDataInterval::updateAttributeColors(), and GNEDataSet::updateAttributeColors().
bool GNEDataSet::AttributeColors::exist | ( | const std::string & | attribute | ) | const |
check if given attribute exist (needed for non-double attributes)
Definition at line 89 of file GNEDataSet.cpp.
double GNEDataSet::AttributeColors::getMaxValue | ( | const std::string & | attribute | ) | const |
get maximum value
Definition at line 101 of file GNEDataSet.cpp.
double GNEDataSet::AttributeColors::getMinValue | ( | const std::string & | attribute | ) | const |
get minimum value
Definition at line 95 of file GNEDataSet.cpp.
|
privatedelete |
Invalidated assignment operator.
void GNEDataSet::AttributeColors::updateAllValues | ( | const AttributeColors & | attributeColors | ) |
update value for all attributes
Definition at line 69 of file GNEDataSet.cpp.
References myMinMaxValue.
Referenced by GNEDataSet::updateAttributeColors().
void GNEDataSet::AttributeColors::updateValues | ( | const std::string & | attribute, |
const double | value | ||
) |
update value for an specific attribute
Definition at line 51 of file GNEDataSet.cpp.
Referenced by GNEDataInterval::updateAttributeColors().
|
private |
map with the minimum and maximum value
Definition at line 73 of file GNEDataSet.h.
Referenced by updateAllValues().