MathTL
 All Classes Functions Variables Typedefs Enumerations
Public Types | Public Member Functions | Protected Attributes
MathTL::FixedArray1D< C, SIZE > Class Template Reference

#include <fixed_array1d.h>

List of all members.

Public Types

typedef C value_type
typedef value_typepointer
typedef const value_typeconst_pointer
typedef value_typeiterator
typedef const value_typeconst_iterator
typedef value_typereference
typedef const value_typeconst_reference
typedef unsigned int size_type

Public Member Functions

 FixedArray1D ()
 FixedArray1D (const FixedArray1D< C, SIZE > &a)
 ~FixedArray1D ()
const size_type size () const
FixedArray1D< C, SIZE > & operator= (const FixedArray1D< C, SIZE > &a)
const C & operator[] (const size_type i) const
C & operator[] (const size_type i)
const_iterator begin () const
iterator begin ()
const_iterator end () const
iterator end ()

Protected Attributes

C * data_

Detailed Description

template<class C, unsigned int SIZE>
class MathTL::FixedArray1D< C, SIZE >

This class models one-dimensional arrays of objects from an arbitrary class C, where the array size is a priori known. The signature is identical to Array1D<C>.


Member Typedef Documentation

template<class C, unsigned int SIZE>
typedef const value_type* MathTL::FixedArray1D< C, SIZE >::const_iterator

const iterator type (cf. STL containers)

template<class C, unsigned int SIZE>
typedef const value_type* MathTL::FixedArray1D< C, SIZE >::const_pointer

const pointer type (cf. STL containers)

template<class C, unsigned int SIZE>
typedef const value_type& MathTL::FixedArray1D< C, SIZE >::const_reference

const reference type (cf. STL containers)

template<class C, unsigned int SIZE>
typedef value_type* MathTL::FixedArray1D< C, SIZE >::iterator

iterator type (cf. STL containers)

template<class C, unsigned int SIZE>
typedef value_type* MathTL::FixedArray1D< C, SIZE >::pointer

pointer type (cf. STL containers)

template<class C, unsigned int SIZE>
typedef value_type& MathTL::FixedArray1D< C, SIZE >::reference

reference type (cf. STL containers)

template<class C, unsigned int SIZE>
typedef unsigned int MathTL::FixedArray1D< C, SIZE >::size_type

type of indexes and size of the array

template<class C, unsigned int SIZE>
typedef C MathTL::FixedArray1D< C, SIZE >::value_type

value type (cf. STL containers)


Constructor & Destructor Documentation

template<class C , unsigned int SIZE>
MathTL::FixedArray1D< C, SIZE >::FixedArray1D ( ) [inline]

default constructor, yields an empty array

template<class C, unsigned int SIZE>
MathTL::FixedArray1D< C, SIZE >::FixedArray1D ( const FixedArray1D< C, SIZE > &  a) [inline]

copy constructor

template<class C , unsigned int SIZE>
MathTL::FixedArray1D< C, SIZE >::~FixedArray1D ( ) [inline]

release allocated memory


Member Function Documentation

template<class C , unsigned int SIZE>
FixedArray1D< C, SIZE >::const_iterator MathTL::FixedArray1D< C, SIZE >::begin ( ) const [inline]

read-only iterator access to first element (cf. STL containers)

template<class C , unsigned int SIZE>
FixedArray1D< C, SIZE >::iterator MathTL::FixedArray1D< C, SIZE >::begin ( ) [inline]

read-write iterator access to first element (cf. STL containers)

template<class C , unsigned int SIZE>
FixedArray1D< C, SIZE >::const_iterator MathTL::FixedArray1D< C, SIZE >::end ( ) const [inline]

read-only iterator access to the element behind the last one (cf. STL containers)

template<class C , unsigned int SIZE>
FixedArray1D< C, SIZE >::iterator MathTL::FixedArray1D< C, SIZE >::end ( ) [inline]

read-only iterator access to the element behind the last one (cf. STL containers)

template<class C, unsigned int SIZE>
FixedArray1D< C, SIZE > & MathTL::FixedArray1D< C, SIZE >::operator= ( const FixedArray1D< C, SIZE > &  a)

assignment

template<class C , unsigned int SIZE>
const C & MathTL::FixedArray1D< C, SIZE >::operator[] ( const size_type  i) const [inline]

read-only access to the i-th array member

template<class C , unsigned int SIZE>
C & MathTL::FixedArray1D< C, SIZE >::operator[] ( const size_type  i) [inline]

read-write access to the i-th array member

template<class C , unsigned int SIZE>
const FixedArray1D< C, SIZE >::size_type MathTL::FixedArray1D< C, SIZE >::size ( ) const [inline]

size of the array


Member Data Documentation

template<class C, unsigned int SIZE>
C* MathTL::FixedArray1D< C, SIZE >::data_ [protected]

internal storage is just a pointer to a C array


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