$extrastylesheet
#include <mln/value/lut_vec.hh>
Public Member Functions | |
bool | has (const value &v) const |
unsigned | index_of (const value &v) const |
unsigned | nvalues () const |
T | operator() (const typename S::value &val) const |
T | operator[] (unsigned i) const |
Constructors | |
template<typename F > | |
lut_vec (const S &vset, const Function_v2v< F > &f) | |
template<typename V > | |
lut_vec (const S &vset, const Function_v2v< fun::i2v::array< V > > &f) | |
template<typename V > | |
lut_vec (const S &vset, const Function_v2v< util::array< V > > &f) |
Protected Attributes | |
unsigned | n_ |
std::vector< T > | vec_ |
const S & | vset_ |
Public Types | |
typedef bkd_viter_< lut_vec< S, T > > | bkd_viter |
typedef Value_Set< void > | category |
typedef lut_vec< S, T > | exact_t |
typedef fwd_viter_< lut_vec< S, T > > | fwd_viter |
typedef T | value |
Class that defines FIXME.
Definition at line 71 of file lut_vec.hh.
mln::value::lut_vec< S, T >::lut_vec | ( | const S & | vset, |
const Function_v2v< F > & | f | ||
) |
Constructor from a value set and any Function_v2v.
mln::value::lut_vec< S, T >::lut_vec | ( | const S & | vset, |
const Function_v2v< fun::i2v::array< V > > & | f | ||
) |
Constructor from a value set and any fun::i2v::array.
mln::value::lut_vec< S, T >::lut_vec | ( | const S & | vset, |
const Function_v2v< util::array< V > > & | f | ||
) |
Constructor from a value set and any util::array.
bool mln::value::lut_vec< S, T >::has | ( | const value & | v | ) | const |
Test if v
belongs to this set.
unsigned mln::value::lut_vec< S, T >::index_of | ( | const value & | v | ) | const |
Give the index of value v
in this set.
unsigned mln::value::lut_vec< S, T >::nvalues | ( | ) | const |
Give the number of values.
T mln::value::lut_vec< S, T >::operator() | ( | const typename S::value & | val | ) | const |
T mln::value::lut_vec< S, T >::operator[] | ( | unsigned | i | ) | const |
Give the i-th
value.
|
protected |
Definition at line 118 of file lut_vec.hh.
|
protected |
Definition at line 117 of file lut_vec.hh.
|
protected |
Definition at line 116 of file lut_vec.hh.
typedef bkd_viter_< lut_vec<S,T> > mln::value::lut_vec< S, T >::bkd_viter |
Backward Value_Iterator associated type.
Definition at line 80 of file lut_vec.hh.
|
inherited |
Definition at line 61 of file value_set.hh.
typedef fwd_viter_< lut_vec<S,T> > mln::value::lut_vec< S, T >::fwd_viter |
Forward Value_Iterator associated type.
Definition at line 77 of file lut_vec.hh.
typedef T mln::value::lut_vec< S, T >::value |
Value associated type.
Definition at line 74 of file lut_vec.hh.