mongo::Histogram Class Reference
#include <histogram.h>
List of all members.
Detailed Description
A histogram for a 32-bit integer range.
Definition at line 33 of file histogram.h.
Constructor & Destructor Documentation
mongo::Histogram::Histogram |
( |
const Options & |
opts |
) |
[explicit] |
mongo::Histogram::~Histogram |
( |
|
) |
|
mongo::Histogram::Histogram |
( |
const Histogram & |
|
) |
[private] |
Member Function Documentation
boost::uint32_t mongo::Histogram::_findBucket |
( |
boost::uint32_t |
element |
) |
const [private] |
Returns the bucket where 'element' should fall into. Currently assumes that 'element' is greater than the minimum 'inialValue'.
boost::uint32_t mongo::Histogram::getBoundary |
( |
boost::uint32_t |
bucket |
) |
const |
Return the maximum element that would fall in the 'bucket'-th bucket.
boost::uint32_t mongo::Histogram::getBucketsNum |
( |
|
) |
const |
Return the number of buckets in this histogram.
boost::uint64_t mongo::Histogram::getCount |
( |
boost::uint32_t |
bucket |
) |
const |
Return the count for the 'bucket'-th bucket.
void mongo::Histogram::insert |
( |
boost::uint32_t |
element |
) |
|
Find the bucket that 'element' falls into and increment its count.
string mongo::Histogram::toHTML |
( |
|
) |
const |
Render the histogram as string that can be used inside an HTML doc.
Member Data Documentation
The documentation for this class was generated from the following file: