Public Types | Public Member Functions | Protected Attributes

mln::histo::array< T > Struct Template Reference

Generic histogram class over a value set with type T. More...

#include <array.hh>

Inheritance diagram for mln::histo::array< T >:
Inheritance graph

List of all members.

Public Types

typedef T value

Public Member Functions

 array ()
 array (const array &other)
void clear ()
unsigned nvalues () const
unsigned operator() (const T &v) const
unsigned & operator() (const T &v)
arrayoperator= (const array &other)
unsigned & operator[] (unsigned i)
unsigned operator[] (unsigned i) const
const std::vector< unsigned > & vect () const
const mln::value::set< T > & vset () const

Protected Attributes

std::vector< unsigned > h_
const mln::value::set< T > & s_

Detailed Description

template<typename T>
struct mln::histo::array< T >

Generic histogram class over a value set with type T.

Definition at line 48 of file histo/array.hh.


Member Typedef Documentation

template<typename T>
typedef T mln::histo::array< T >::value

Definition at line 50 of file histo/array.hh.


Constructor & Destructor Documentation

template<typename T >
mln::histo::array< T >::array (  )  [inline]

Definition at line 86 of file histo/array.hh.

References mln::histo::array< T >::clear().

template<typename T >
mln::histo::array< T >::array ( const array< T > &  other  )  [inline]

Definition at line 95 of file histo/array.hh.


Member Function Documentation

template<typename T >
void mln::histo::array< T >::clear (  )  [inline]
template<typename T >
unsigned mln::histo::array< T >::nvalues (  )  const [inline]
template<typename T>
unsigned & mln::histo::array< T >::operator() ( const T &  v  )  [inline]

Definition at line 131 of file histo/array.hh.

References mln::histo::array< T >::h_, and mln::histo::array< T >::s_.

template<typename T>
unsigned mln::histo::array< T >::operator() ( const T &  v  )  const [inline]

Definition at line 123 of file histo/array.hh.

References mln::histo::array< T >::h_, and mln::histo::array< T >::s_.

template<typename T >
array< T > & mln::histo::array< T >::operator= ( const array< T > &  other  )  [inline]

Definition at line 104 of file histo/array.hh.

References mln::histo::array< T >::h_.

template<typename T >
unsigned & mln::histo::array< T >::operator[] ( unsigned  i  )  [inline]

Definition at line 156 of file histo/array.hh.

References mln::histo::array< T >::h_, and mln::histo::array< T >::s_.

template<typename T >
unsigned mln::histo::array< T >::operator[] ( unsigned  i  )  const [inline]

Definition at line 147 of file histo/array.hh.

References mln::histo::array< T >::h_, and mln::histo::array< T >::s_.

template<typename T >
const std::vector< unsigned > & mln::histo::array< T >::vect (  )  const [inline]

Definition at line 165 of file histo/array.hh.

References mln::histo::array< T >::h_.

Referenced by mln::accu::histo< V >::vect().

template<typename T >
const mln::value::set< T > & mln::histo::array< T >::vset (  )  const [inline]

Member Data Documentation

template<typename T>
std::vector<unsigned> mln::histo::array< T >::h_ [protected]
template<typename T>
const mln::value::set<T>& mln::histo::array< T >::s_ [protected]