#include <PstArray.h>
Public Types | |
| typedef T | value_type |
| typedef size_t | size_type |
| typedef T * | pointer |
| typedef const T * | const_pointer |
| typedef T & | reference |
| typedef const T & | const_reference |
| typedef T * | iterator |
| typedef const T * | const_iterator |
Public Member Functions | |
| constexpr size_type | size () const |
| constexpr bool | empty () const |
| const_pointer | data () const |
| pointer | data () |
| const_reference | at (size_type index) const |
| reference | at (size_type index) |
| const_reference | front () const |
| reference | front () |
| const_reference | back () const |
| reference | back () |
| const_iterator | cbegin () const |
| const_iterator | begin () const |
| iterator | begin () |
| const_iterator | cend () const |
| const_iterator | end () const |
| iterator | end () |
Public Attributes | |
| value_type | _array [Size] |
Private Member Functions | |
| void | check_bounds (size_type index) |
Basic array class, cloning std::array<T, Size>. This class can safely be passed across the DLL boundary.
| typedef const T* const_iterator |
| typedef const T* const_pointer |
| typedef const T& const_reference |
| typedef T* iterator |
| typedef T* pointer |
| typedef T& reference |
| typedef size_t size_type |
| typedef T value_type |
Get a reference to the item stored at position index' in the PstArray with bounds check. If index' is larger than the size of the PstArray, a PSTech::OutOfRangeException is thrown.
| PSTech::OutOfRangeException |
|
inline |
Get a const reference to the item stored at position index' in the PstArray with bounds check. If index' is larger than the size of the PstArray, a PSTech::OutOfRangeException is thrown.
| PSTech::OutOfRangeException |
|
inline |
Get a reference to the last element in the PstArray.
|
inline |
Get a const reference to the last element in the PstArray.
|
inline |
Get an iterator to the beginning of the PstArray.
|
inline |
Get a const iterator to the beginning of the PstArray.
|
inline |
Get a const iterator to the beginning of the PstArray.
|
inline |
Get a const iterator to the end of the PstArray.
|
inlineprivate |
|
inline |
Direct access to the underlying array.
|
inline |
Direct access to the underlying array.
|
inlineconstexpr |
Returns true if this PstArray is empty.
|
inline |
Get an iterator to the end of the PstArray.
|
inline |
Get a const iterator to the end of the PstArray.
|
inline |
Get a reference to the first element in the PstArray.
|
inline |
Get a const reference to the first element in the PstArray.
|
inlineconstexpr |
Get the number of elements in this PstArray.
| value_type _array[Size] |
Get a const reference to the item stored at position `index' in the PstArray. */ const_reference operator [] (size_type index) const { assert(index < Size); return _array[index]; }
/** Get a reference to the item stored at position `index' in the PstArray. */ reference operator [] (size_type index) { assert(index < Size); return _array[index]; }
/** Returns true if each element in this PstArray is equal to the element at the same index in `array'. */ bool operator==(const PstArray<T, Size>& array) const { for (size_t index = 0; index < Size; ++index) { if (_array[index] != array[index]) { return false; } } return true; }
/** Returns true if any element in this PstArray is not equal to the element at the same index in `array'. */ bool operator!=(const PstArray<T, Size>& array) const {
return !(*this == array); }
/** Public member to enable aggregate initialization. Should not be accessed directly.