Go to Overview over all GrAL packages.
Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

tuple_base Class Template Reference
[Components for Containers]

simple fixed-size container with STL-style begin() / end(). More...

#include <tuple.h>

Inheritance diagram for tuple_base:

Inheritance graph
[legend]
Collaboration diagram for tuple_base:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T * iterator
typedef const T * const_iterator
typedef T value_type
typedef T c_array [N]

Public Methods

T & operator[] (unsigned i)
operator[] (unsigned i) const
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
unsigned size () const
bool empty () const

Protected Attributes

X [N]

Detailed Description

template<class T, unsigned N>
class tuple_base< T, N >

simple fixed-size container with STL-style begin() / end().

Tuple<T,N> is a model of STL Random Access Container (except reverse iterators).

Todo:
Add reverse iterators.

Definition at line 19 of file tuple.h.


Member Typedef Documentation

template<class T, unsigned N>
typedef T* tuple_base::iterator
 

Reimplemented in tuple.

Definition at line 21 of file tuple.h.

Referenced by tuple_base< T, 3 >::begin, and tuple_base< T, 3 >::end.

template<class T, unsigned N>
typedef const T* tuple_base::const_iterator
 

Reimplemented in tuple.

Definition at line 22 of file tuple.h.

Referenced by tuple_base< T, 3 >::begin, and tuple_base< T, 3 >::end.

template<class T, unsigned N>
typedef T tuple_base::value_type
 

Definition at line 23 of file tuple.h.

template<class T, unsigned N>
typedef T tuple_base::c_array[N]
 

Definition at line 24 of file tuple.h.

Referenced by tuple< T, 3 >::tuple, and tuple::tuple.


Member Function Documentation

template<class T, unsigned N>
T& tuple_base< T, N >::operator[] unsigned    i [inline]
 

Definition at line 28 of file tuple.h.

template<class T, unsigned N>
T tuple_base< T, N >::operator[] unsigned    i const [inline]
 

Definition at line 32 of file tuple.h.

template<class T, unsigned N>
iterator tuple_base< T, N >::begin   [inline]
 

Definition at line 34 of file tuple.h.

Referenced by tuple_base< T, 3 >::end, tuple< T, 3 >::tuple, and tuple::tuple.

template<class T, unsigned N>
iterator tuple_base< T, N >::end   [inline]
 

Definition at line 35 of file tuple.h.

Referenced by tuple< T, 3 >::tuple, and tuple::tuple.

template<class T, unsigned N>
const_iterator tuple_base< T, N >::begin   const [inline]
 

Definition at line 36 of file tuple.h.

template<class T, unsigned N>
const_iterator tuple_base< T, N >::end   const [inline]
 

Definition at line 37 of file tuple.h.

template<class T, unsigned N>
unsigned tuple_base< T, N >::size   const [inline]
 

Definition at line 39 of file tuple.h.

template<class T, unsigned N>
bool tuple_base< T, N >::empty   const [inline]
 

Definition at line 40 of file tuple.h.


Member Data Documentation

template<class T, unsigned N>
T tuple_base::X[N] [protected]
 

Definition at line 42 of file tuple.h.

Referenced by tuple_base< T, 3 >::begin, tuple_base< T, 3 >::operator[], and tuple< T, 3 >::tuple.


The documentation for this class was generated from the following file:
Copyright (c) Guntram Berti 1997-2002. See the GrAL Homepage for up-to-date information.

Generated at Tue Feb 26 15:57:17 2002 for Sequence by doxygen 1.2.11-20011104 written by Dimitri van Heesch, © 1997-2000