mln::value::lut_vec< S, T > Struct Template Reference

Class that defines FIXME. More...

#include <lut_vec.hh>

Inheritance diagram for mln::value::lut_vec< S, T >:

Inheritance graph

List of all members.

Public Types

typedef bkd_viter_< lut_vec< S,
T > > 
bkd_viter
 Backward Value_Iterator associated type.
typedef Value_Set< void > category
typedef E exact_t
typedef fwd_viter_< lut_vec< S,
T > > 
fwd_viter
 Forward Value_Iterator associated type.
typedef T value
 Value associated type.

Public Member Functions

bool has (const value &v) const
 Test if v belongs to this set.
unsigned index_of (const value &v) const
 Give the index of value v in this set.
unsigned nvalues () const
 Give the number of values.
operator() (const typename S::value &val) const
operator[] (unsigned i) const
 Give the i-th value.
template<typename V>
 lut_vec (const S &vset, const Function_v2v< util::array< V > > &f)
 Constructor from a value set and any util::array.
template<typename V>
 lut_vec (const S &vset, const Function_v2v< fun::i2v::array< V > > &f)
 Constructor from a value set and any fun::i2v::array.
template<typename F>
 lut_vec (const S &vset, const Function_v2v< F > &f)
 Constructors

Constructor from a value set and any Function_v2v.


Protected Attributes

unsigned n_
std::vector< T > vec_
const S & vset_


Detailed Description

template<typename S, typename T>
struct mln::value::lut_vec< S, T >

Class that defines FIXME.

Warning:
This is a multi-set!!! FIXME

Definition at line 70 of file lut_vec.hh.


Member Typedef Documentation

template<typename S, typename T>
typedef bkd_viter_< lut_vec<S,T> > mln::value::lut_vec< S, T >::bkd_viter

Backward Value_Iterator associated type.

Definition at line 79 of file lut_vec.hh.

template<typename E>
typedef Value_Set<void> mln::Value_Set< E >::category [inherited]

Reimplemented from mln::Object< E >.

Definition at line 58 of file value_set.hh.

template<typename E>
typedef E mln::Object< E >::exact_t [inherited]

Definition at line 172 of file object.hh.

template<typename S, typename T>
typedef fwd_viter_< lut_vec<S,T> > mln::value::lut_vec< S, T >::fwd_viter

Forward Value_Iterator associated type.

Definition at line 76 of file lut_vec.hh.

template<typename S, typename T>
typedef T mln::value::lut_vec< S, T >::value

Value associated type.

Definition at line 73 of file lut_vec.hh.


Constructor & Destructor Documentation

template<typename S, typename T>
template<typename F>
mln::value::lut_vec< S, T >::lut_vec ( const S &  vset,
const Function_v2v< F > &  f 
) [inline]

Constructors

Constructor from a value set and any Function_v2v.

Definition at line 147 of file lut_vec.hh.

References mln::exact(), mln::value::lut_vec< S, T >::n_, and mln::value::lut_vec< S, T >::vec_.

template<typename S, typename T>
template<typename V>
mln::value::lut_vec< S, T >::lut_vec ( const S &  vset,
const Function_v2v< fun::i2v::array< V > > &  f 
) [inline]

template<typename S, typename T>
template<typename V>
mln::value::lut_vec< S, T >::lut_vec ( const S &  vset,
const Function_v2v< util::array< V > > &  f 
) [inline]


Member Function Documentation

template<typename S, typename T>
bool mln::value::lut_vec< S, T >::has ( const value v  )  const [inline]

Test if v belongs to this set.

Definition at line 129 of file lut_vec.hh.

template<typename S, typename T>
unsigned mln::value::lut_vec< S, T >::index_of ( const value v  )  const [inline]

Give the index of value v in this set.

Definition at line 138 of file lut_vec.hh.

template<typename S, typename T>
unsigned mln::value::lut_vec< S, T >::nvalues (  )  const [inline]

Give the number of values.

Definition at line 201 of file lut_vec.hh.

References mln::value::lut_vec< S, T >::vec_.

Referenced by mln::value::lut_vec< S, T >::operator[]().

template<typename S, typename T>
T mln::value::lut_vec< S, T >::operator() ( const typename S::value &  val  )  const [inline]

template<typename S, typename T>
T mln::value::lut_vec< S, T >::operator[] ( unsigned  i  )  const [inline]

Give the i-th value.

Definition at line 192 of file lut_vec.hh.

References mln::value::lut_vec< S, T >::nvalues(), and mln::value::lut_vec< S, T >::vec_.


Member Data Documentation

template<typename S, typename T>
unsigned mln::value::lut_vec< S, T >::n_ [protected]

template<typename S, typename T>
std::vector<T> mln::value::lut_vec< S, T >::vec_ [protected]

template<typename S, typename T>
const S& mln::value::lut_vec< S, T >::vset_ [protected]

Definition at line 113 of file lut_vec.hh.

Referenced by mln::value::lut_vec< S, T >::operator()().


Generated on Sun Apr 25 02:07:42 2010 for Milena (Olena) by  doxygen 1.5.6