Data Access Library (DAL)
 All Classes Functions Variables Typedefs Friends
Public Types | Public Member Functions | Static Public Member Functions
dal::TupleBase< T, N > Class Template Reference

#include <h5tuple.h>

Inheritance diagram for dal::TupleBase< T, N >:
dal::TupleUntemplated dal::Array< T, N > dal::Tuple< T, N >

List of all members.

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 ()

Detailed Description

template<typename T, size_t N>
class dal::TupleBase< T, N >

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.


Member Typedef Documentation

template<typename T, size_t N>
typedef T dal::TupleBase< T, N >::type

The type of elements in tuples of this type.


Member Function Documentation

template<typename T, size_t N>
std::vector<T> dal::TupleBase< T, N >::get ( ) const [inline]

Return this tuple as a vector.

template<typename T, size_t N>
void dal::TupleBase< T, N >::set ( const std::vector< T > &  other) [inline]

Copy a vector into this tuple.

template<typename T, size_t N>
static size_t dal::TupleBase< T, N >::size ( ) [inline, static]

The number of elements in tuples of this type.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Typedefs Friends