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

template specialization to C=double More...

#include <fixed_array1d.h>

List of all members.

Public Types

typedef double value_type
 value type (cf. STL containers)
typedef value_typepointer
 pointer type (cf. STL containers)
typedef const value_typeconst_pointer
 const pointer type (cf. STL containers)
typedef value_typeiterator
 iterator type (cf. STL containers)
typedef const value_typeconst_iterator
 const iterator type (cf. STL containers)
typedef value_typereference
 reference type (cf. STL containers)
typedef const value_typeconst_reference
 const reference type (cf. STL containers)
typedef unsigned int size_type
 type of indexes and size of the array

Public Member Functions

 FixedArray1D ()
 default constructor, yields an empty array
 FixedArray1D (const FixedArray1D< double, SIZE > &a)
 copy constructor
 ~FixedArray1D ()
 release allocated memory
const size_type size () const
 size of the array
FixedArray1D< double, SIZE > & operator= (const FixedArray1D< double, SIZE > &a)
 assignment
const double & operator[] (const size_type i) const
 read-only access to the i-th array member
double & operator[] (const size_type i)
 read-write access to the i-th array member
const_iterator begin () const
 read-only iterator access to first element (cf. STL containers)
iterator begin ()
 read-write iterator access to first element (cf. STL containers)
const_iterator end () const
iterator end ()

Protected Attributes

double data_ [SIZE+1]

Detailed Description

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

template specialization to C=double


Member Function Documentation

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

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

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

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


Member Data Documentation

template<unsigned int SIZE>
double MathTL::FixedArray1D< double, SIZE >::data_[SIZE+1] [protected]

internal storage is just a pointer to a C array, the "+1" is a temporary hack to allow for 0-dim. arrays


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