Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Public Member Functions | Private Types | Private Attributes

SgStatisticsCollection< VALUE, COUNT > Class Template Reference

Set of named statistical variables. More...

#include <SgStatistics.h>

List of all members.

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

Detailed Description

template<typename VALUE, typename COUNT>
class SgStatisticsCollection< VALUE, COUNT >

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.


Member Typedef Documentation

template<typename VALUE, typename COUNT>
typedef Map::const_iterator SgStatisticsCollection< VALUE, COUNT >::ConstIterator [private]

Definition at line 515 of file SgStatistics.h.

template<typename VALUE, typename COUNT>
typedef Map::iterator SgStatisticsCollection< VALUE, COUNT >::Iterator [private]

Definition at line 513 of file SgStatistics.h.

template<typename VALUE, typename COUNT>
typedef std::map<std::string,SgStatistics<VALUE,COUNT> > SgStatisticsCollection< VALUE, COUNT >::Map [private]

Definition at line 511 of file SgStatistics.h.


Member Function Documentation

template<typename VALUE , typename COUNT >
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.

template<typename VALUE , typename COUNT >
void SgStatisticsCollection< VALUE, COUNT >::Clear (  ) 

Definition at line 537 of file SgStatistics.h.

References SgStatisticsCollection< VALUE, COUNT >::m_map.

template<typename VALUE , typename COUNT >
bool SgStatisticsCollection< VALUE, COUNT >::Contains ( const std::string &  name  )  const

Definition at line 544 of file SgStatistics.h.

References SgStatisticsCollection< VALUE, COUNT >::m_map.

template<typename VALUE , typename COUNT >
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.

template<typename VALUE , typename COUNT >
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.

template<typename VALUE , typename COUNT >
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.

template<typename VALUE , typename COUNT >
void SgStatisticsCollection< VALUE, COUNT >::Write ( std::ostream &  o  )  const

Definition at line 585 of file SgStatistics.h.

References SgStatisticsCollection< VALUE, COUNT >::m_map.


Member Data Documentation

template<typename VALUE, typename COUNT>
Map SgStatisticsCollection< VALUE, COUNT >::m_map [private]

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


Sun Mar 13 2011 Doxygen 1.7.1