cgatools::util::GenericHistogram< Value, Index > Class Template Reference

List of all members.

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_

template<class Value = size_t, class Index = size_t>
class cgatools::util::GenericHistogram< Value, Index >


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated by  doxygen 1.6.2