#include <h5tuple.h>
Public Types | |
| typedef T | type |
| typedef T * | iterator |
| typedef const T * | const_iterator |
Public Member Functions | |
| const T & | operator[] (size_t index) const |
| T & | operator[] (size_t index) |
| const_iterator | begin () const |
| iterator | begin () |
| const_iterator | end () const |
| iterator | end () |
| std::vector< T > | get () const |
| void | set (const std::vector< T > &other) |
Static Public Member Functions | |
| static size_t | size () |
TupleBase<T,N> provides functionality common to all tuples.
T: The data type of the tuple (the tuple is homogeneous). N: The number of data elements in the tuple.
The subclasses of TupleBase are responsible for providing the storage for the elements as named data members. It is assumed that sizeof(TupleBase<T,N>) == N * sizeof(T), the tuple is stored as a packed set of its members.
Note that TupleBase cannot be directly instantiated, as it has no storage for its data members.
| typedef T dal::TupleBase< T, N >::type |
The type of elements in tuples of this type.
| std::vector<T> dal::TupleBase< T, N >::get | ( | ) | const [inline] |
Return this tuple as a vector.
| void dal::TupleBase< T, N >::set | ( | const std::vector< T > & | other | ) | [inline] |
Copy a vector into this tuple.
| static size_t dal::TupleBase< T, N >::size | ( | ) | [inline, static] |
The number of elements in tuples of this type.
1.7.6.1