|
Rumba C++ SDK
|
#include "BufferAllocator.h"Go to the source code of this file.
Namespaces | |
| maquina | |
| This version of the SDK is unstable, i-e, it may change with no warning. | |
Macros | |
| #define | STACK_VECTOR(name, T, size) |
Create a vector std::vector<T> name(size) on the stack initialized using stack memory. No heap allocation is performed. Regular allocations will be done if the vector capacity is increased. More... | |
| #define | STACK_VECTOR_VALUE(name, T, size, value) |
Create a vector std::vector<T> name(size, value) on the stack initialized using stack memory. No heap allocation is performed. Regular allocations will be done if the vector capacity is increased. More... | |
| #define | STACK_VECTOR_RESERVED(name, T, size) |
Create a vector std::vector<T> name() on the stack and reserve size objects into it. No heap allocation is performed. The vector is empty. Regular allocations will be done if the vector capacity is increased. More... | |
| #define | STACK_VECTOR_LIMIT(name, T, size, limit) |
Create a vector std::vector<T> name(size) on the stack initialized using stack memory, limited to 'limit' objects. No heap allocation is performed if size <= limit. Regular allocations will be done if the vector capacity is increased. More... | |
| #define | STACK_VECTOR_VALUE_LIMIT(name, T, size, value, limit) |
Create a vector std::vector<T> name(size, value) on the stack initialized using stack memory, limited to 'limit' objects. No heap allocation is performed if size <= limit. Regular allocations will be done if the vector capacity is increased. More... | |
| #define | STACK_VECTOR_RESERVED_LIMIT(name, T, size, limit) |
Create a vector std::vector<T> name() on the stack and reserve size objects into it. No heap allocation is performed if size <= limit. The vector is empty. Regular allocations will be done if the vector capacity is increased. More... | |
| #define | STACK_SPAN(type, size) gsl::span<type>((type*)alloca((size)*sizeof(type)), size) |
Create a gsl:::span<T> with size objects stored on the stack. No heap allocation is performed. More... | |
| #define STACK_SPAN | ( | type, | |
| size | |||
| ) | gsl::span<type>((type*)alloca((size)*sizeof(type)), size) |
Create a gsl:::span<T> with size objects stored on the stack. No heap allocation is performed.
| #define STACK_VECTOR | ( | name, | |
| T, | |||
| size | |||
| ) |
Create a vector std::vector<T> name(size) on the stack initialized using stack memory. No heap allocation is performed. Regular allocations will be done if the vector capacity is increased.
| #define STACK_VECTOR_LIMIT | ( | name, | |
| T, | |||
| size, | |||
| limit | |||
| ) |
Create a vector std::vector<T> name(size) on the stack initialized using stack memory, limited to 'limit' objects. No heap allocation is performed if size <= limit. Regular allocations will be done if the vector capacity is increased.
| #define STACK_VECTOR_RESERVED | ( | name, | |
| T, | |||
| size | |||
| ) |
Create a vector std::vector<T> name() on the stack and reserve size objects into it. No heap allocation is performed. The vector is empty. Regular allocations will be done if the vector capacity is increased.
| #define STACK_VECTOR_RESERVED_LIMIT | ( | name, | |
| T, | |||
| size, | |||
| limit | |||
| ) |
Create a vector std::vector<T> name() on the stack and reserve size objects into it. No heap allocation is performed if size <= limit. The vector is empty. Regular allocations will be done if the vector capacity is increased.
| #define STACK_VECTOR_VALUE | ( | name, | |
| T, | |||
| size, | |||
| value | |||
| ) |
Create a vector std::vector<T> name(size, value) on the stack initialized using stack memory. No heap allocation is performed. Regular allocations will be done if the vector capacity is increased.
| #define STACK_VECTOR_VALUE_LIMIT | ( | name, | |
| T, | |||
| size, | |||
| value, | |||
| limit | |||
| ) |
Create a vector std::vector<T> name(size, value) on the stack initialized using stack memory, limited to 'limit' objects. No heap allocation is performed if size <= limit. Regular allocations will be done if the vector capacity is increased.