Inheritance diagram for Ring:

References off the end (or beginning) of the array are wrapped to fall inside of the range of the array.
Definition at line 234 of file Array.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 | |
| Ring (const int size) | |
| Ring (const int size, const T &value) | |
| Ring (const Ring< T > &ring) | |
| ~Ring () | |
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 const_pointer const_iterator |
| typedef std::reverse_iterator<iterator> reverse_iterator |
| typedef std::reverse_iterator<const_iterator> const_reverse_iterator |
Reimplemented from Array.
Definition at line 264 of file Array.H.
References Array::operator[](), and wrap_index().
| const_reference operator[] | ( | const size_type | index | ) | const [inline] |
Reimplemented from Array.
Definition at line 265 of file Array.H.
References Array::operator[](), and wrap_index().
| const_reference operator() | ( | const size_type | index | ) | const [inline] |
| int wrap_index | ( | const int | index | ) | const [inline, private] |
Definition at line 274 of file Array.H.
References Array::size().
Referenced by operator()(), and operator[]().
1.5.1