
#include <rutz/arrays.h>
Collaboration diagram for rutz::static_block< T, N >:

static_block provides an STL-style container interface, including both checked and unchecked access, as well as access to the container's size with the size() member function.
Definition at line 87 of file arrays.h.
Public Types | |
| typedef T | value_type |
| STL value type. | |
| typedef T * | pointer |
| STL pointer type. | |
| typedef const T * | const_pointer |
| STL const pointer type. | |
| typedef T & | reference |
| STL reference type. | |
| typedef const T & | const_reference |
| STL const reference type. | |
| typedef pointer | iterator |
| STL iterator type. | |
| typedef const_pointer | const_iterator |
| STL const iterator type. | |
| typedef size_t | size_type |
| STL size type. | |
| typedef ptrdiff_t | difference_type |
| STL iterator difference type. | |
Public Member Functions | |
| iterator | begin () |
| Iterator to array start. | |
| iterator | end () |
| Iterator to array one-past-the-end. | |
| const_iterator | begin () const |
| Const iterator to array start. | |
| const_iterator | end () const |
| Const iterator to array one-past-the-end. | |
| reference | operator[] (size_type n) |
| Unchecked non-const array index. | |
| const_reference | operator[] (size_type n) const |
| Unchecked const array index. | |
| reference | at (size_type n) |
| Checked non-const array index (rutz::out_of_range on bounds error). | |
| const_reference | at (size_type n) const |
| Checked const array index (rutz::out_of_range on bounds error). | |
| size_type | size () const |
| Size of array. | |
| size_type | max_size () const |
| Maximum size of array type. | |
| bool | is_empty () const |
| Query whether size is zero. | |
| void | swap (static_block &other) |
| Swap data with another array. | |
Public Attributes | |
| T | data [N] |
|
|||||
|
STL const iterator type.
|
|
|||||
|
STL const pointer type.
|
|
|||||
|
STL const reference type.
|
|
|||||
|
STL iterator difference type.
|
|
|||||
|
STL iterator type.
|
|
|||||
|
STL pointer type.
|
|
|||||
|
STL reference type.
|
|
|||||
|
STL size type.
|
|
|||||
|
STL value type.
|
|
||||||||||
|
Checked const array index (rutz::out_of_range on bounds error).
Definition at line 123 of file arrays.h. References rutz::static_block< T, N >::data, and N. |
|
||||||||||
|
Checked non-const array index (rutz::out_of_range on bounds error).
Definition at line 115 of file arrays.h. References rutz::static_block< T, N >::data, and N. |
|
|||||||||
|
Const iterator to array start.
Definition at line 105 of file arrays.h. References rutz::static_block< T, N >::data. |
|
|||||||||
|
Iterator to array start.
Definition at line 102 of file arrays.h. References rutz::static_block< T, N >::data. |
|
|||||||||
|
Const iterator to array one-past-the-end.
Definition at line 106 of file arrays.h. References rutz::static_block< T, N >::data, and N. |
|
|||||||||
|
Iterator to array one-past-the-end.
Definition at line 103 of file arrays.h. References rutz::static_block< T, N >::data, and N. |
|
|||||||||
|
Query whether size is zero.
Definition at line 137 of file arrays.h. References N. |
|
|||||||||
|
Maximum size of array type.
|
|
||||||||||
|
Unchecked const array index.
Definition at line 112 of file arrays.h. References rutz::static_block< T, N >::data. |
|
||||||||||
|
Unchecked non-const array index.
Definition at line 109 of file arrays.h. References rutz::static_block< T, N >::data. |
|
|||||||||
|
Size of array.
Definition at line 131 of file arrays.h. References N. |
|
||||||||||
|
Swap data with another array. This requires an element-by-element swap. Definition at line 141 of file arrays.h. References rutz::swap2(). |
1.4.4