$extrastylesheet
#include <mln/value/value_array.hh>
Public Member Functions | |
value_array () | |
value_array (const V &v) | |
value_array (const value_array< T, V > &other) | |
const V & | operator() (const T &v) const |
V & | operator() (const T &v) |
value_array & | operator= (const value_array< T, V > &other) |
const V & | operator[] (unsigned i) const |
V & | operator[] (unsigned i) |
const mln::value::set< T > & | vset () const |
Protected Attributes | |
const mln::value::set< T > & | s_ |
V | v_ [nvalues] |
Public Types | |
enum | { nvalues = mln_card(T) } |
Generic array class over indexed by a value set with type T
.
Definition at line 45 of file value_array.hh.
mln::value::value_array< T, V >::value_array | ( | ) |
Constructors.
{
mln::value::value_array< T, V >::value_array | ( | const V & | v | ) |
mln::value::value_array< T, V >::value_array | ( | const value_array< T, V > & | other | ) |
const V& mln::value::value_array< T, V >::operator() | ( | const T & | v | ) | const |
}
Access elements through a value of T
. {
V& mln::value::value_array< T, V >::operator() | ( | const T & | v | ) |
value_array& mln::value::value_array< T, V >::operator= | ( | const value_array< T, V > & | other | ) |
const V& mln::value::value_array< T, V >::operator[] | ( | unsigned | i | ) | const |
}
Access elements through array indexes. {
V& mln::value::value_array< T, V >::operator[] | ( | unsigned | i | ) |
const mln::value::set<T>& mln::value::value_array< T, V >::vset | ( | ) | const |
}
Reference to the set of T
.
|
protected |
Definition at line 76 of file value_array.hh.
|
protected |
Definition at line 77 of file value_array.hh.
anonymous enum |
Definition at line 47 of file value_array.hh.