CbmRoot
|
#include <iomanip>
#include <map>
#include <sstream>
#include <string>
#include <unordered_map>
Go to the source code of this file.
Functions | |
template<class Key , class T , class Hash = std::hash<Key>> | |
void | SetSingleValueToMap (Key key, T value, std::unordered_map< Key, T, Hash > &aMap) |
template<class Key , class T , class Hash = std::hash<Key>> | |
void | SetSameValueToMap (T value, std::unordered_map< Key, T, Hash > &aMap) |
template<class Key , class T , class Hash = std::hash<Key>> | |
void | SetMappedValuesToMap (const std::unordered_map< Key, T, Hash > &inMap, std::unordered_map< Key, T, Hash > &aMap) |
template<class Key , class T , class Hash = std::hash<Key>> | |
std::string | RepresentMapWithString (const std::unordered_map< Key, T, Hash > &aMap, int entryWidth=15) |
std::string RepresentMapWithString | ( | const std::unordered_map< Key, T, Hash > & | aMap, |
int | entryWidth = 15 ) |
Template function to represent mapped contents into std::string NOTE: operator<< must be defined for value of the map
Definition at line 54 of file L1AlgoFunctions.h.
void SetMappedValuesToMap | ( | const std::unordered_map< Key, T, Hash > & | inMap, |
std::unordered_map< Key, T, Hash > & | aMap ) |
Template function, which resets the elements of one map with the values defined in another map
inMap | A constant reference to the map containing new parameters |
aMap | A reference to the map, which is going to be modified |
Definition at line 42 of file L1AlgoFunctions.h.
void SetSameValueToMap | ( | T | value, |
std::unordered_map< Key, T, Hash > & | aMap ) |
Template function, which sets a value to ALL elements of the map
value | New value of the element under the selected key |
aMap | A reference to the map, which element is to be modified |
Definition at line 31 of file L1AlgoFunctions.h.
void SetSingleValueToMap | ( | Key | key, |
T | value, | ||
std::unordered_map< Key, T, Hash > & | aMap ) |
Template function, which sets a value to an element of the map with a particular key
key | Key of the element to be modified |
value | New value of the element under the selected key |
aMap | A reference to the map, which element is to be modified |
Definition at line 22 of file L1AlgoFunctions.h.