Medial Code Documentation
|
same as summary, but use STL to backup the space More...
#include <quantile.h>
Public Member Functions | |
SummaryContainer (const SummaryContainer &src) | |
void | Reserve (size_t size) |
reserve space for summary | |
void | Reduce (const Summary &src, size_t max_nbyte) |
do elementwise combination of summary array this[i] = combine(this[i], src[i]) for each i | |
template<typename TStream > | |
void | Save (TStream &fo) const |
save the data structure into stream | |
template<typename TStream > | |
void | Load (TStream &fi) |
load data structure from input stream | |
Static Public Member Functions | |
static size_t | CalcMemCost (size_t nentry) |
return the number of bytes this data structure cost in serialization | |
Data Fields | |
std::vector< Entry > | space |
same as summary, but use STL to backup the space
|
inline |
do elementwise combination of summary array this[i] = combine(this[i], src[i]) for each i
src | the source summary |
max_nbyte | maximum number of byte allowed in here |