|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Dynamic array. More...
#include <array.h>
Public Member Functions | |
| Array (IAllocator &allocator) | |
| Initialize empty array. More... | |
| size_t | max_size () const |
| Get maximum number of elements. More... | |
| size_t | size () const |
| Get number of elements. More... | |
| T & | operator[] (size_t index) |
| Get element at given position. More... | |
| const T & | operator[] (size_t index) const |
| Get element at given position. More... | |
| T & | front () |
| Get first element. More... | |
| const T & | front () const |
| Get first element. More... | |
| T & | back () |
| Get last element. More... | |
| const T & | back () const |
| Get last element. More... | |
| void | push_back (const T &value) |
| Append element to array. More... | |
| bool | resize (size_t sz) |
| Set array size. More... | |
| bool | grow (size_t max_sz) |
| Increase array maximum size. More... | |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Append element to array.
|
inline |
|
inline |