mCRL2
|
Provides (a subset of) the interface of std::array<T> for a portion of preallocated memory. Can be used to interface with a portion of memory allocated on the stack,. More...
#include <stack_array.h>
Public Types | |
using | iterator = T * |
using | const_iterator = const T * |
using | reverse_iterator = std::reverse_iterator< iterator > |
using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
Public Member Functions | |
stack_array (T *reserved_memory, std::size_t N) | |
The given pointer should be able to hold N element of sizeof(T) bytes. | |
~stack_array () | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
T * | data () |
const T * | data () const |
bool | empty () const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
std::size_t | size () const |
std::size_t | max_size () const |
T & | operator[] (std::size_t index) |
Public Member Functions inherited from mcrl2::utilities::noncopyable | |
noncopyable ()=default | |
noncopyable (const noncopyable &)=delete | |
noncopyable & | operator= (const noncopyable &)=delete |
Private Attributes | |
T * | m_reserved_memory |
std::size_t | m_size |
Provides (a subset of) the interface of std::array<T> for a portion of preallocated memory. Can be used to interface with a portion of memory allocated on the stack,.
Definition at line 29 of file stack_array.h.
using mcrl2::utilities::stack_array< T >::const_iterator = const T* |
Definition at line 33 of file stack_array.h.
using mcrl2::utilities::stack_array< T >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
Definition at line 35 of file stack_array.h.
using mcrl2::utilities::stack_array< T >::iterator = T* |
Definition at line 32 of file stack_array.h.
using mcrl2::utilities::stack_array< T >::reverse_iterator = std::reverse_iterator<iterator> |
Definition at line 34 of file stack_array.h.
|
inline |
The given pointer should be able to hold N element of sizeof(T) bytes.
Definition at line 38 of file stack_array.h.
|
inline |
Definition at line 48 of file stack_array.h.
|
inline |
Definition at line 58 of file stack_array.h.
|
inline |
Definition at line 59 of file stack_array.h.
|
inline |
Definition at line 64 of file stack_array.h.
|
inline |
Definition at line 65 of file stack_array.h.
|
inline |
Definition at line 67 of file stack_array.h.
|
inline |
Definition at line 61 of file stack_array.h.
|
inline |
Definition at line 62 of file stack_array.h.
|
inline |
Definition at line 77 of file stack_array.h.
|
inline |
Definition at line 79 of file stack_array.h.
|
inline |
Definition at line 69 of file stack_array.h.
|
inline |
Definition at line 70 of file stack_array.h.
|
inline |
Definition at line 72 of file stack_array.h.
|
inline |
Definition at line 73 of file stack_array.h.
|
inline |
Definition at line 75 of file stack_array.h.
|
private |
Definition at line 86 of file stack_array.h.
|
private |
Definition at line 87 of file stack_array.h.