A helper class which manages a list of system response identifiers (std::strings) and their corresponding weights. More...
#include "utl/ResponseMap.h"
Public Types | |
typedef std::map< std::string, double >::const_iterator | const_iterator |
Public Member Functions | |
void | AddResponseItem (const std::string &identifier, const double weight) |
Add the item denoted by the identifier with the specified weight to the ResponseMap. More... | |
const_iterator | Begin () const |
Get an iterator to the first element of the ResponseMap. More... | |
void | Clear () |
const_iterator | End () const |
Get an iterator to the end of the ResponseMap. More... | |
bool | operator== (const ResponseMap &m) const |
compares if two ResponseMaps are identical More... | |
ResponseMap (const std::map< std::string, double > &m) | |
Constructor to create a ResponseMap from an stl-map. More... | |
std::map< std::string, double > ::size_type | Size () const |
Private Member Functions | |
ResponseMap () | |
Private Attributes | |
std::map< std::string, double > | fResponseMap |
Friends | |
class | utl::Validated< ResponseMap > |
A helper class which manages a list of system response identifiers (std::strings) and their corresponding weights.
Definition at line 28 of file ResponseMap.h.
typedef std::map<std::string, double>::const_iterator utl::ResponseMap::const_iterator |
Definition at line 34 of file ResponseMap.h.
|
inline |
Constructor to create a ResponseMap from an stl-map.
Definition at line 31 of file ResponseMap.h.
References fResponseMap, and utl::m.
|
inlineprivate |
Definition at line 56 of file ResponseMap.h.
References fResponseMap.
|
inline |
Add the item denoted by the identifier with the specified weight to the ResponseMap.
Definition at line 41 of file ResponseMap.h.
References fResponseMap.
|
inline |
Get an iterator to the first element of the ResponseMap.
Definition at line 45 of file ResponseMap.h.
References fResponseMap.
Referenced by RdChannelResponseIncorporator::RdChannelResponseIncorporator::CalculateOverallResponse(), and RDetectorTest::testRModel().
|
inline |
Definition at line 36 of file ResponseMap.h.
References fResponseMap.
|
inline |
Get an iterator to the end of the ResponseMap.
Definition at line 48 of file ResponseMap.h.
References fResponseMap.
Referenced by RdChannelResponseIncorporator::RdChannelResponseIncorporator::CalculateOverallResponse(), and RDetectorTest::testRModel().
|
inline |
compares if two ResponseMaps are identical
Definition at line 51 of file ResponseMap.h.
References fResponseMap.
|
inline |
Definition at line 38 of file ResponseMap.h.
References fResponseMap.
|
friend |
Definition at line 55 of file ResponseMap.h.
|
private |
Definition at line 59 of file ResponseMap.h.
Referenced by AddResponseItem(), Begin(), Clear(), End(), operator==(), ResponseMap(), and Size().