Inheritance diagram for LocalRing:
This class template provides a wrapping local array. References off the end (or beginning) of the array are wrapped to fall inside of the range of the array.
Definition at line 210 of file LocalArray.H.
Public Types | |
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 |
Public Member Functions | |
LocalRing () | |
LocalRing (const T &value) | |
LocalRing (const LocalRing< T, Size > &ring) | |
~LocalRing () | |
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 |
Private Member Functions | |
int | wrap_index (const int index) const |
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 |
LocalRing | ( | ) | [inline] |
Definition at line 212 of file LocalArray.H.
LocalRing | ( | const T & | value | ) | [inline] |
Definition at line 213 of file LocalArray.H.
Definition at line 214 of file LocalArray.H.
~LocalRing | ( | ) | [inline] |
Definition at line 215 of file LocalArray.H.
Reimplemented from LocalArray.
Definition at line 240 of file LocalArray.H.
References Array::operator[](), and wrap_index().
const_reference operator[] | ( | const size_type | index | ) | const [inline] |
Reimplemented from LocalArray.
Definition at line 241 of file LocalArray.H.
References Array::operator[](), and wrap_index().
Reimplemented from LocalArray.
Definition at line 243 of file LocalArray.H.
References wrap_index().
const_reference operator() | ( | const size_type | index | ) | const [inline] |
Reimplemented from LocalArray.
Definition at line 244 of file LocalArray.H.
References wrap_index().
int wrap_index | ( | const int | index | ) | const [inline, private] |
Definition at line 250 of file LocalArray.H.
References LocalArray::size().
Referenced by operator()(), and operator[]().