PST SDK
5.2.0.0-0eac0f6
|
#include <PstArray.h>
Public Types | |
typedef T | value_type |
typedef size_t | size_type |
typedef T * | pointer |
typedef T & | reference |
typedef T * | 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 () |
const_reference | operator[] (size_type index) const |
reference | operator[] (size_type index) |
bool | operator== (const PstArray< T, Size > &array) const |
bool | operator!= (const PstArray< T, Size > &array) const |
Public Attributes | |
const typedef T * | const_pointer |
const typedef T & | const_reference |
const typedef T * | const_iterator |
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 T* PSTech::Utils::PstArray< T, Size >::iterator |
typedef T* PSTech::Utils::PstArray< T, Size >::pointer |
typedef T& PSTech::Utils::PstArray< T, Size >::reference |
typedef size_t PSTech::Utils::PstArray< T, Size >::size_type |
typedef T PSTech::Utils::PstArray< T, Size >::value_type |
|
inline |
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.
|
inline |
Returns true if any element in this PstArray is not equal to the element at the same index in ‘array’.
|
inline |
Returns true if each element in this PstArray is equal to the element at the same index in ‘array’.
|
inline |
Get a reference to the item stored at position ‘index’ in the PstArray.
|
inline |
Get a const reference to the item stored at position ‘index’ in the PstArray.
|
inlineconstexpr |
Get the number of elements in this PstArray.
value_type PSTech::Utils::PstArray< T, Size >::_array[Size] |
Public member to enable aggregate initialization. Should not be accessed directly.
const typedef T* PSTech::Utils::PstArray< T, Size >::const_iterator |
const typedef T* PSTech::Utils::PstArray< T, Size >::const_pointer |
const typedef T& PSTech::Utils::PstArray< T, Size >::const_reference |