$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::histo::array< T > Struct Template Reference

#include <mln/histo/array.hh>

Public Member Functions

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

Protected Attributes

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

Public Types

typedef T value

Detailed Description

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

Generic histogram class over a value set with type T.

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

template<typename T>
std::vector<unsigned> mln::histo::array< T >::h_
protected

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

template<typename T>
const mln::value::set<T>& mln::histo::array< T >::s_
protected

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

Member Typedef Documentation

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

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