template specialization to C=double More...
#include <fixed_array1d.h>
Public Types | |
typedef double | value_type |
value type (cf. STL containers) | |
typedef value_type * | pointer |
pointer type (cf. STL containers) | |
typedef const value_type * | const_pointer |
const pointer type (cf. STL containers) | |
typedef value_type * | iterator |
iterator type (cf. STL containers) | |
typedef const value_type * | const_iterator |
const iterator type (cf. STL containers) | |
typedef value_type & | reference |
reference type (cf. STL containers) | |
typedef const value_type & | const_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] |
template specialization to C=double
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)
FixedArray1D< double, SIZE >::iterator MathTL::FixedArray1D< double, SIZE >::end | ( | ) | [inline] |
read-only iterator access to the element behind the last one (cf. STL containers)
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