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 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[] (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 Site_set and any util::array.
template<typename V >
 lut_vec (const S &vset, const Function_v2v< fun::i2v::array< V > > &f)
 Constructor from a Site_set and any fun::i2v::array.
template<typename F >
 lut_vec (const S &vset, const Function_v2v< F > &f)
 Constructors

Constructor from a Site_set and any Function_v2v.


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

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.

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.

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

Value associated type.


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 Site_set and any Function_v2v.

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]

Constructor from a Site_set and any fun::i2v::array.

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]

Constructor from a Site_set and any util::array.

References mln::util::array< T >::size(), and mln::util::array< T >::std_vector().


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.

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.

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

Give the number of values.

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

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

Give the i-th value.

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


Generated on Tue Jul 14 16:33:22 2009 for Milena (Olena) by  doxygen 1.5.9