Classes | |
| struct | CompareBuckets |
Public Types | |
| typedef Value | value_type |
| typedef Index | index_type |
|
typedef GenericHistogram < value_type, index_type > | my_type |
| typedef std::pair< Index, Value > | Bucket |
| typedef std::vector< Bucket > | Buckets |
| typedef Buckets::iterator | iterator |
| typedef Buckets::const_iterator | const_iterator |
Public Member Functions | |
| GenericHistogram (const Index &min, const Index &max, const Index &bucketSize) | |
| void | addRange (const Index &min, const Index &max, const Index &bucketSize) |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| iterator | last () |
| const_iterator | last () const |
| bool | hasBucket (index_type index) |
| void | addBucket (index_type index) |
| value_type & | operator[] (const index_type &index) |
| const value_type & | operator[] (const index_type &index) const |
| iterator | findBucket (Index index) |
| const_iterator | findBucket (Index index) const |
| void | merge (const my_type &src) |
| value_type | totalInBuckets (value_type initialValue) const |
| void | write (std::ostream &out, char separator= ',') const |
Protected Member Functions | |
| void | initBuckets () |
Protected Attributes | |
| Buckets | buckets_ |
| CompareBuckets | compare_ |
1.6.2