40 template <
typename Count>
44 typedef unsigned long long int Index;
45 typedef unsigned long long int ullong;
58 { count.reserve(limit); }
62 TallyVec (std::istream& file,
size_t w_key,
size_t w_val);
66 Index
size()
const {
return max+1; }
73 bool lower(Index& i)
const;
void write_to(std::ostream &out) const
Definition: tally_def.h:129
ullong total
Definition: tally.h:54
Index max
Definition: tally.h:53
char * limit
Definition: common.c:91
Index size() const
Definition: tally.h:66
ullong sum() const
Definition: tally.h:68
unsigned long long int Index
Definition: tally.h:44
std::map< Index, ullong > map_type
Definition: tally.h:47
static const Count maxCount
Definition: tally.h:49
bool tally(Index i)
Definition: tally_def.h:25
void advance(Index &i) const
Definition: tally_def.h:94
#define out(c)
Definition: cweave.c:205
bool lower(Index &i) const
Definition: tally_def.h:110
TallyVec(size_t limit)
Definition: tally.h:57
TallyVec< MuCount > derived(size_t limit) const
Definition: tally_def.h:183
map_type overflow
Definition: tally.h:52
struct f file[max_include_depth]
Definition: common.c:93
unsigned long long int ullong
Definition: tally.h:45
ullong multiplicity(Index i) const
Definition: tally_def.h:16
std::vector< Count > count
Definition: tally.h:51