Inheritance diagram for LocalArray:
Definition at line 44 of file LocalArray.H.
STL integration | |
typedef T | value_type |
typedef value_type * | pointer |
typedef const value_type * | const_pointer |
typedef value_type & | reference |
typedef const value_type & | const_reference |
typedef ptrdiff_t | difference_type |
typedef size_t | size_type |
typedef pointer | iterator |
typedef const_pointer | const_iterator |
typedef std::reverse_iterator< iterator > | reverse_iterator |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
reverse_iterator | rbegin () |
reverse_iterator | rend () |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
Public Member Functions | |
LocalArray () | |
LocalArray (const T &value) | |
LocalArray (const LocalArray< T, Size > &array) | |
~LocalArray () | |
Assignment | |
LocalArray< T, Size > & | operator= (const LocalArray< T, Size > &array) |
Assign one array to another. | |
LocalArray< T, Size > & | operator= (const T &value) |
Assign a value to all elements of the array. | |
Element access | |
reference | operator[] (const size_type index) |
const_reference | operator[] (const size_type index) const |
reference | operator() (const size_type index) |
const_reference | operator() (const size_type index) const |
Sizes | |
size_type | size () const |
Private Attributes | |
T | m_data [Size] |
typedef T value_type |
typedef value_type* pointer |
typedef const value_type* const_pointer |
typedef value_type& reference |
typedef const value_type& const_reference |
typedef ptrdiff_t difference_type |
typedef size_t size_type |
typedef const_pointer const_iterator |
typedef std::reverse_iterator<iterator> reverse_iterator |
typedef std::reverse_iterator<const_iterator> const_reverse_iterator |
LocalArray | ( | ) | [inline] |
Allocate an array.
Definition at line 47 of file LocalArray.H.
LocalArray | ( | const T & | value | ) | [inline] |
Allocate an array, and initialize each element to a particular value.
[in] | value | The initial value for each element. |
Definition at line 50 of file LocalArray.H.
LocalArray | ( | const LocalArray< T, Size > & | array | ) | [inline] |
Definition at line 52 of file LocalArray.H.
~LocalArray | ( | ) | [inline] |
Definition at line 54 of file LocalArray.H.
LocalArray<T, Size>& operator= | ( | const LocalArray< T, Size > & | array | ) | [inline] |
Assign one array to another.
If the array being assigned from is larger than the array being assigned to, data block holding the array will be deleted and reallocated.
[in] | array | The array to be assigned from. |
Definition at line 63 of file LocalArray.H.
LocalArray<T, Size>& operator= | ( | const T & | value | ) | [inline] |
Assign a value to all elements of the array.
[in] | value | The value to be assigned. |
Definition at line 68 of file LocalArray.H.
iterator begin | ( | ) | [inline] |
iterator end | ( | ) | [inline] |
const_iterator begin | ( | ) | const [inline] |
Definition at line 90 of file LocalArray.H.
const_iterator end | ( | ) | const [inline] |
Definition at line 91 of file LocalArray.H.
reverse_iterator rbegin | ( | ) | [inline] |
Definition at line 96 of file LocalArray.H.
reverse_iterator rend | ( | ) | [inline] |
Definition at line 97 of file LocalArray.H.
const_reverse_iterator rbegin | ( | ) | const [inline] |
Definition at line 99 of file LocalArray.H.
const_reverse_iterator rend | ( | ) | const [inline] |
Definition at line 100 of file LocalArray.H.
const_reference operator[] | ( | const size_type | index | ) | const [inline] |
Reimplemented in LocalRing.
Definition at line 108 of file LocalArray.H.
Referenced by Fixed1dPoint::Fixed1dPoint(), Fixed1dVector::Fixed1dVector(), Fixed2dPoint::Fixed2dPoint(), Fixed2dVector::Fixed2dVector(), Fixed3dPoint::Fixed3dPoint(), Fixed3dVector::Fixed3dVector(), Fixed4dPoint::Fixed4dPoint(), Fixed4dVector::Fixed4dVector(), Fixed4dVector::t(), Fixed4dPoint::t(), Fixed4dVector::x(), Fixed4dPoint::x(), Fixed3dVector::x(), Fixed3dPoint::x(), Fixed2dVector::x(), Fixed2dPoint::x(), Fixed1dVector::x(), Fixed1dPoint::x(), Fixed4dVector::y(), Fixed4dPoint::y(), Fixed3dVector::y(), Fixed3dPoint::y(), Fixed2dVector::y(), Fixed2dPoint::y(), Fixed4dVector::z(), Fixed4dPoint::z(), Fixed3dVector::z(), and Fixed3dPoint::z().
const_reference operator() | ( | const size_type | index | ) | const [inline] |
size_type size | ( | ) | const [inline] |
T m_data[Size] [private] |
Definition at line 118 of file LocalArray.H.
Referenced by LocalArray< double, Size >::begin(), LocalArray< double, Size >::end(), LocalArray< double, Size >::LocalArray(), LocalArray< double, Size >::operator()(), LocalArray< double, Size >::operator=(), and LocalArray< double, Size >::operator[]().