#include <fixed_array1d.h>
Public Types | |
typedef C | value_type |
typedef value_type * | pointer |
typedef const value_type * | const_pointer |
typedef value_type * | iterator |
typedef const value_type * | const_iterator |
typedef value_type & | reference |
typedef const value_type & | const_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_ |
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>.
typedef const value_type* MathTL::FixedArray1D< C, SIZE >::const_iterator |
const iterator type (cf. STL containers)
typedef const value_type* MathTL::FixedArray1D< C, SIZE >::const_pointer |
const pointer type (cf. STL containers)
typedef const value_type& MathTL::FixedArray1D< C, SIZE >::const_reference |
const reference type (cf. STL containers)
typedef value_type* MathTL::FixedArray1D< C, SIZE >::iterator |
iterator type (cf. STL containers)
typedef value_type* MathTL::FixedArray1D< C, SIZE >::pointer |
pointer type (cf. STL containers)
typedef value_type& MathTL::FixedArray1D< C, SIZE >::reference |
reference type (cf. STL containers)
typedef unsigned int MathTL::FixedArray1D< C, SIZE >::size_type |
type of indexes and size of the array
typedef C MathTL::FixedArray1D< C, SIZE >::value_type |
value type (cf. STL containers)
MathTL::FixedArray1D< C, SIZE >::FixedArray1D | ( | ) | [inline] |
default constructor, yields an empty array
MathTL::FixedArray1D< C, SIZE >::FixedArray1D | ( | const FixedArray1D< C, SIZE > & | a | ) | [inline] |
copy constructor
MathTL::FixedArray1D< C, SIZE >::~FixedArray1D | ( | ) | [inline] |
release allocated memory
FixedArray1D< C, SIZE >::const_iterator MathTL::FixedArray1D< C, SIZE >::begin | ( | ) | const [inline] |
read-only iterator access to first element (cf. STL containers)
FixedArray1D< C, SIZE >::iterator MathTL::FixedArray1D< C, SIZE >::begin | ( | ) | [inline] |
read-write iterator access to first element (cf. STL containers)
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)
FixedArray1D< C, SIZE >::iterator MathTL::FixedArray1D< C, SIZE >::end | ( | ) | [inline] |
read-only iterator access to the element behind the last one (cf. STL containers)
FixedArray1D< C, SIZE > & MathTL::FixedArray1D< C, SIZE >::operator= | ( | const FixedArray1D< C, SIZE > & | a | ) |
assignment
const C & MathTL::FixedArray1D< C, SIZE >::operator[] | ( | const size_type | i | ) | const [inline] |
read-only access to the i-th array member
C & MathTL::FixedArray1D< C, SIZE >::operator[] | ( | const size_type | i | ) | [inline] |
read-write access to the i-th array member
const FixedArray1D< C, SIZE >::size_type MathTL::FixedArray1D< C, SIZE >::size | ( | ) | const [inline] |
size of the array
C* MathTL::FixedArray1D< C, SIZE >::data_ [protected] |
internal storage is just a pointer to a C array