Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgStatisticsCollection< VALUE, COUNT > Class Template Reference

#include <SgStatistics.h>

List of all members.


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 503 of file 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


Member Typedef Documentation

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

Definition at line 529 of file SgStatistics.h.

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

Definition at line 527 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 525 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 537 of file SgStatistics.h.

References SgStatisticsCollection< VALUE, COUNT >::m_map.

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

Definition at line 551 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 558 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 565 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 586 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 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 599 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]

Definition at line 531 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().


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


17 Jun 2010 Doxygen 1.4.7