Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

atlas::tally::TallyVec< Count > Class Template Reference

#include <tally.h>

Collaboration diagram for atlas::tally::TallyVec< Count >:

Collaboration graph
[legend]
List of all members.

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

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

template<typename Count>
class atlas::tally::TallyVec< Count >


Member Typedef Documentation

template<typename Count>
typedef unsigned long long int atlas::tally::TallyVec< Count >::Index
 

Definition at line 44 of file tally.h.

Referenced by atlas::tally::TallyVec< Count >::derived(), and atlas::tally::TallyVec< Count >::TallyVec().

template<typename Count>
typedef std::map<Index,ullong> atlas::tally::TallyVec< Count >::map_type [private]
 

Definition at line 47 of file tally.h.

template<typename Count>
typedef unsigned long long int atlas::tally::TallyVec< Count >::ullong
 

Definition at line 45 of file tally.h.

Referenced by atlas::tally::TallyVec< Count >::TallyVec().


Constructor & Destructor Documentation

template<typename Count>
atlas::tally::TallyVec< Count >::TallyVec size_t  limit  )  [inline]
 

Definition at line 57 of file tally.h.

template<typename Count>
atlas::tally::TallyVec< Count >::TallyVec std::istream &  file  ) 
 

Definition at line 144 of file tally_def.h.

References atlas::tally::TallyVec< Count >::count, atlas::tally::TallyVec< Count >::Index, atlas::tally::TallyVec< Count >::max, atlas::tally::TallyVec< Count >::overflow, and atlas::tally::TallyVec< Count >::ullong.

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

Definition at line 163 of file tally_def.h.

References atlas::tally::TallyVec< Count >::count, atlas::tally::TallyVec< Count >::Index, atlas::tally::TallyVec< Count >::max, atlas::tally::TallyVec< Count >::overflow, read_var_bytes(), and atlas::tally::TallyVec< Count >::ullong.


Member Function Documentation

template<typename Count>
void atlas::tally::TallyVec< Count >::advance Index i  )  const
 

Definition at line 94 of file tally_def.h.

References atlas::tally::TallyVec< Count >::count, atlas::tally::TallyVec< Count >::overflow, and atlas::tally::TallyVec< Count >::size().

Referenced by atlas::tally::TallyVec< Count >::derived(), atlas::filekl::scan_matrix(), and atlas::filekl::scan_polynomials().

template<typename Count>
template<typename MuCount>
TallyVec< MuCount > atlas::tally::TallyVec< Count >::derived size_t  limit  )  const
 

Definition at line 183 of file tally_def.h.

References atlas::tally::TallyVec< Count >::advance(), atlas::tally::TallyVec< Count >::Index, atlas::tally::TallyVec< Count >::multiplicity(), atlas::tally::TallyVec< Count >::size(), and atlas::tally::TallyVec< Count >::tally().

Referenced by atlas::filekl::scan_matrix().

template<typename Count>
bool atlas::tally::TallyVec< Count >::lower Index i  )  const
 

Definition at line 110 of file tally_def.h.

References atlas::tally::TallyVec< Count >::count, and atlas::tally::TallyVec< Count >::overflow.

Referenced by atlas::filekl::scan_matrix().

template<typename Count>
unsigned long long int atlas::tally::TallyVec< Count >::multiplicity Index  i  )  const [inline]
 

Definition at line 16 of file tally_def.h.

References atlas::tally::TallyVec< Count >::count, atlas::tally::TallyVec< Count >::maxCount, and atlas::tally::TallyVec< Count >::overflow.

Referenced by atlas::tally::TallyVec< Count >::derived(), atlas::filekl::scan_matrix(), and atlas::filekl::scan_polynomials().

template<typename Count>
Index atlas::tally::TallyVec< Count >::size  )  const [inline]
 

Definition at line 66 of file tally.h.

Referenced by atlas::tally::TallyVec< Count >::advance(), atlas::tally::TallyVec< Count >::derived(), atlas::filekl::scan_matrix(), and atlas::filekl::scan_polynomials().

template<typename Count>
ullong atlas::tally::TallyVec< Count >::sum  )  const [inline]
 

Definition at line 68 of file tally.h.

References ullong.

template<typename Count>
bool atlas::tally::TallyVec< Count >::tally Index  i,
ullong  multiplicity
 

Definition at line 52 of file tally_def.h.

References atlas::tally::TallyVec< Count >::count, atlas::tally::TallyVec< Count >::max, atlas::tally::TallyVec< Count >::overflow, and atlas::tally::TallyVec< Count >::total.

template<typename Count>
bool atlas::tally::TallyVec< Count >::tally Index  i  ) 
 

Definition at line 25 of file tally_def.h.

References atlas::tally::TallyVec< Count >::count, atlas::tally::TallyVec< Count >::max, and atlas::tally::TallyVec< Count >::overflow.

Referenced by atlas::tally::TallyVec< Count >::derived(), atlas::filekl::scan_matrix(), and atlas::filekl::scan_polynomials().

template<typename Count>
void atlas::tally::TallyVec< Count >::write_to std::ostream &  out  )  const
 

Definition at line 129 of file tally_def.h.

References atlas::tally::TallyVec< Count >::count, atlas::tally::TallyVec< Count >::overflow, and atlas::basic_io::put_int().

Referenced by atlas::filekl::scan_matrix(), and atlas::filekl::scan_polynomials().


Member Data Documentation

template<typename Count>
std::vector<Count> atlas::tally::TallyVec< Count >::count [private]
 

Definition at line 51 of file tally.h.

Referenced by atlas::tally::TallyVec< Count >::advance(), atlas::tally::TallyVec< Count >::lower(), atlas::tally::TallyVec< Count >::multiplicity(), atlas::tally::TallyVec< Count >::tally(), atlas::tally::TallyVec< Count >::TallyVec(), and atlas::tally::TallyVec< Count >::write_to().

template<typename Count>
Index atlas::tally::TallyVec< Count >::max [private]
 

Definition at line 53 of file tally.h.

Referenced by atlas::tally::TallyVec< Count >::tally(), and atlas::tally::TallyVec< Count >::TallyVec().

template<typename Count>
const Count atlas::tally::TallyVec< Count >::maxCount = std::numeric_limits<Count>::max() [static, private]
 

Definition at line 13 of file tally_def.h.

Referenced by atlas::tally::TallyVec< Count >::multiplicity().

template<typename Count>
map_type atlas::tally::TallyVec< Count >::overflow [private]
 

Definition at line 52 of file tally.h.

Referenced by atlas::tally::TallyVec< Count >::advance(), atlas::tally::TallyVec< Count >::lower(), atlas::tally::TallyVec< Count >::multiplicity(), atlas::tally::TallyVec< Count >::tally(), atlas::tally::TallyVec< Count >::TallyVec(), and atlas::tally::TallyVec< Count >::write_to().

template<typename Count>
ullong atlas::tally::TallyVec< Count >::total [private]
 

Definition at line 54 of file tally.h.

Referenced by atlas::tally::TallyVec< Count >::tally().


The documentation for this class was generated from the following files:
Generated on Wed Mar 26 16:53:06 2008 for atlas by  doxygen 1.3.9.1