Memory-aligned resizable buffer. More...
#include <frz_misc.hpp>

Public Member Functions | |
| alignvec (int _align=128, int _capacity=0) | |
| Constructor. | |
| virtual | ~alignvec () |
| Destructor. | |
| void | setFixedCapacity (int cap) |
Sets the buffer capacity to cap, and makes it non-resizable. | |
| int | growup (int count=1) |
Increase the buffer size of count elements. | |
| void | clear () |
| Sets the buffer size to zero. | |
| int | getSize () const |
| Returns the number of elements in the buffer. | |
| int | getCapacity () const |
| Returns the allocated capacity of the buffer. | |
| type & | operator[] (int i) |
Returns element i in the buffer array. | |
| const type & | operator[] (int i) const |
Returns element i in the buffer array. | |
Memory-aligned resizable buffer.
Implements a typed buffer with parametrizable alignment in memory, and optional resizable feature.
| Frz::alignvec< type >::alignvec | ( | int | _align = 128, |
|
| int | _capacity = 0 | |||
| ) | [inline] |
Constructor.
Allocates a buffer with specified alignment, and with the choice for fixed size or not.
| _align | Memory alignment in bytes. | |
| _capacity |
|
| int Frz::alignvec< type >::growup | ( | int | count = 1 |
) | [inline] |
Increase the buffer size of count elements.
| count | Buffer size increment. |
1.6.3