Eclipse SUMO - Simulation of Urban MObility
GNEDataSet::AttributeColors Class Reference

attribute colors More...

#include <GNEDataSet.h>

Public Member Functions

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

Private Member Functions

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

Private Attributes

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

Detailed Description

attribute colors

Definition at line 47 of file GNEDataSet.h.

Constructor & Destructor Documentation

◆ AttributeColors()

GNEDataSet::AttributeColors::AttributeColors ( )

default constructor

Definition at line 46 of file GNEDataSet.cpp.

Member Function Documentation

◆ clear()

void GNEDataSet::AttributeColors::clear ( )

clear AttributeColors

Definition at line 107 of file GNEDataSet.cpp.

Referenced by GNEDataInterval::updateAttributeColors(), and GNEDataSet::updateAttributeColors().

Here is the caller graph for this function:

◆ exist()

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.

◆ getMaxValue()

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

get maximum value

Definition at line 101 of file GNEDataSet.cpp.

◆ getMinValue()

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

get minimum value

Definition at line 95 of file GNEDataSet.cpp.

◆ operator=()

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

Invalidated assignment operator.

◆ updateAllValues()

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().

Here is the caller graph for this function:

◆ updateValues()

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().

Here is the caller graph for this function:

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 73 of file GNEDataSet.h.

Referenced by updateAllValues().


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