Set of named statistical variables. More...
#include <SgStatistics.h>
Public Member Functions | |
void | Add (const SgStatisticsCollection< VALUE, COUNT > &collection) |
Add the statistics of another collection. | |
void | Clear () |
bool | Contains (const std::string &name) const |
void | Create (const std::string &name) |
Create a new variable. | |
const SgStatistics< VALUE, COUNT > & | Get (const std::string &name) const |
SgStatistics< VALUE, COUNT > & | Get (const std::string &name) |
void | Write (std::ostream &o) const |
Private Types | |
typedef std::map< std::string, SgStatistics< VALUE, COUNT > > | Map |
typedef Map::iterator | Iterator |
typedef Map::const_iterator | ConstIterator |
Private Attributes | |
Map | m_map |
Set of named statistical variables.
The template parameters are the floating point type and the counter type, depending on the precision-memory tradeoff.
Definition at line 490 of file SgStatistics.h.
typedef Map::const_iterator SgStatisticsCollection< VALUE, COUNT >::ConstIterator [private] |
Definition at line 515 of file SgStatistics.h.
typedef Map::iterator SgStatisticsCollection< VALUE, COUNT >::Iterator [private] |
Definition at line 513 of file SgStatistics.h.
typedef std::map<std::string,SgStatistics<VALUE,COUNT> > SgStatisticsCollection< VALUE, COUNT >::Map [private] |
Definition at line 511 of file SgStatistics.h.
void SgStatisticsCollection< VALUE, COUNT >::Add | ( | const SgStatisticsCollection< VALUE, COUNT > & | collection | ) |
Add the statistics of another collection.
The collections must contain the same entries.
Definition at line 523 of file SgStatistics.h.
References SgStatisticsCollection< VALUE, COUNT >::m_map.
void SgStatisticsCollection< VALUE, COUNT >::Clear | ( | ) |
Definition at line 537 of file SgStatistics.h.
References SgStatisticsCollection< VALUE, COUNT >::m_map.
bool SgStatisticsCollection< VALUE, COUNT >::Contains | ( | const std::string & | name | ) | const |
Definition at line 544 of file SgStatistics.h.
References SgStatisticsCollection< VALUE, COUNT >::m_map.
void SgStatisticsCollection< VALUE, COUNT >::Create | ( | const std::string & | name | ) |
Create a new variable.
Definition at line 551 of file SgStatistics.h.
References SgStatisticsCollection< VALUE, COUNT >::m_map.
const SgStatistics< VALUE, COUNT > & SgStatisticsCollection< VALUE, COUNT >::Get | ( | const std::string & | name | ) | const |
Definition at line 558 of file SgStatistics.h.
References SgStatisticsCollection< VALUE, COUNT >::m_map.
SgStatistics< VALUE, COUNT > & SgStatisticsCollection< VALUE, COUNT >::Get | ( | const std::string & | name | ) |
Definition at line 572 of file SgStatistics.h.
References SgStatisticsCollection< VALUE, COUNT >::m_map.
void SgStatisticsCollection< VALUE, COUNT >::Write | ( | std::ostream & | o | ) | const |
Definition at line 585 of file SgStatistics.h.
References SgStatisticsCollection< VALUE, COUNT >::m_map.
Map SgStatisticsCollection< VALUE, COUNT >::m_map [private] |
Definition at line 517 of file SgStatistics.h.
Referenced by SgStatisticsCollection< VALUE, COUNT >::Add(), SgStatisticsCollection< VALUE, COUNT >::Clear(), SgStatisticsCollection< VALUE, COUNT >::Contains(), SgStatisticsCollection< VALUE, COUNT >::Create(), SgStatisticsCollection< VALUE, COUNT >::Get(), and SgStatisticsCollection< VALUE, COUNT >::Write().