Data Access Library (DAL)
 All Classes Functions Variables Typedefs Friends
dal::Tuple< T, N > Class Template Reference

#include <h5tuple.h>

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

List of all members.


Detailed Description

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

Tuple<T,N> provides a generic tuple for N=1..4 providing fields with names `first`, `second`, `third`, and up to `fourth`.

Python example:

    # TupleUInt3() is a Tuple<unsigned int, 3>
    >>> t = TupleUInt3()

    # Values can be modified in various ways:
    >>> t.set([0,0,3])
    >>> t.first = 1
    >>> t[1] = 2

    # Values can be retrieved in various ways:
    >>> t.get()
    (1, 2, 3)
    >>> t[0]
    1
    >>> t.third
    3

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