isce3 0.25.0
|
Small-size optimized (SSO) buffer. More...
#include <SSOBuffer.h>
Public Member Functions | |
SSOBuffer (size_t n) | |
Constructor. | |
size_t | size () const |
Number of elements that can be stored in the buffer. | |
const T * | data () const |
const pointer to the underlying array serving as element storage | |
T * | data () |
pointer to the underlying array serving as element storage | |
const T & | operator[] (size_t i) const |
Index (read). | |
T & | operator[] (size_t i) |
Index (write). | |
SSOBuffer (const SSOBuffer &)=delete | |
SSOBuffer & | operator= (const SSOBuffer &)=delete |
Small-size optimized (SSO) buffer.
T | data type of buffer |
NMAX | Largest number of elements to allocate on the stack. |
|
inline |
Constructor.
[in] | n | Size of buffer. If n > NMAX then memory will be allocated on the heap. |
|
inline |
Index (write).
No bounds check.
|
inline |
Index (read).
No bounds check.