atlas  0.6
Public Types | Public Member Functions | Private Types | Private Attributes | Static Private Attributes | List of all members
atlas::tally::TallyVec< Count > Class Template Reference

#include <tally.h>

Public Types

typedef unsigned long long int Index
 
typedef unsigned long long int ullong
 

Public Member Functions

 TallyVec (size_t limit)
 
 TallyVec (std::istream &file)
 
 TallyVec (std::istream &file, size_t w_key, size_t w_val)
 
bool tally (Index i)
 
bool tally (Index i, ullong multiplicity)
 
Index size () const
 
ullong multiplicity (Index i) const
 
ullong sum () const
 
template<typename MuCount >
TallyVec< MuCount > derived (size_t limit) const
 
void advance (Index &i) const
 
bool lower (Index &i) const
 
void write_to (std::ostream &out) const
 

Private Types

typedef std::map< Index, ullongmap_type
 

Private Attributes

std::vector< Count > count
 
map_type overflow
 
Index max
 
ullong total
 

Static Private Attributes

static const Count maxCount = std::numeric_limits<Count>::max()
 

Member Typedef Documentation

template<typename Count>
typedef unsigned long long int atlas::tally::TallyVec< Count >::Index
template<typename Count>
typedef std::map<Index,ullong> atlas::tally::TallyVec< Count >::map_type
private
template<typename Count>
typedef unsigned long long int atlas::tally::TallyVec< Count >::ullong

Constructor & Destructor Documentation

template<typename Count>
atlas::tally::TallyVec< Count >::TallyVec ( size_t  limit)
inline
template<typename Count >
atlas::tally::TallyVec< Count >::TallyVec ( std::istream &  file)
template<typename Count >
atlas::tally::TallyVec< Count >::TallyVec ( std::istream &  file,
size_t  w_key,
size_t  w_val 
)

Member Function Documentation

template<typename Count >
void atlas::tally::TallyVec< Count >::advance ( Index i) const
template<typename Count >
template<typename MuCount >
TallyVec< MuCount > atlas::tally::TallyVec< Count >::derived ( size_t  limit) const
template<typename Count >
bool atlas::tally::TallyVec< Count >::lower ( Index i) const
template<typename Count >
unsigned long long int atlas::tally::TallyVec< Count >::multiplicity ( Index  i) const
inline
template<typename Count>
Index atlas::tally::TallyVec< Count >::size ( ) const
inline
template<typename Count>
ullong atlas::tally::TallyVec< Count >::sum ( ) const
inline
template<typename Count >
bool atlas::tally::TallyVec< Count >::tally ( Index  i)
template<typename Count >
bool atlas::tally::TallyVec< Count >::tally ( Index  i,
ullong  multiplicity 
)
template<typename Count >
void atlas::tally::TallyVec< Count >::write_to ( std::ostream &  out) const

Member Data Documentation

template<typename Count>
std::vector<Count> atlas::tally::TallyVec< Count >::count
private
template<typename Count>
Index atlas::tally::TallyVec< Count >::max
private
template<typename Count>
const Count atlas::tally::TallyVec< Count >::maxCount = std::numeric_limits<Count>::max()
staticprivate
template<typename Count>
map_type atlas::tally::TallyVec< Count >::overflow
private
template<typename Count>
ullong atlas::tally::TallyVec< Count >::total
private

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