#include <MemoryManager.h>
|
template<class t_type , class t_buffer_type > |
static void | Allocate (t_buffer_type &buffer, t_index_type start, t_index_type size) |
|
template<class t_type , class t_buffer_type > |
static void | AllocateElement (t_buffer_type &buffer, t_index_type index, const t_type &object) |
|
template<class t_type , class t_buffer_type > |
static void | AllocateElement (t_buffer_type &buffer, t_index_type index, t_type &&object) |
|
template<class t_type , class t_buffer_type > |
static void | AllocateElement (t_buffer_type &buffer, t_index_type start, t_index_type size, const t_type &object) |
|
template<class t_type , class t_buffer_type > |
static void | AllocateElement (t_buffer_type &buffer, t_index_type start, t_index_type size, t_type &object) |
|
template<class t_type , class t_buffer_type > |
static void | Deallocate (t_buffer_type &buffer, t_index_type start, t_index_type size) |
|
static constexpr bool | isPrimitive () |
|
template<bool t_is_primitive, class t_index_type = uint04>
class NDEVR::ObjectAllocator< t_is_primitive, t_index_type >
Class: ObjectAllocator
An object allocator.
Author: Tyler Parke
Date: 2017-11-19
◆ Allocate()
template<bool t_is_primitive, class t_index_type = uint04>
template<class t_type , class t_buffer_type >
static void Allocate |
( |
t_buffer_type & | buffer, |
|
|
t_index_type | start, |
|
|
t_index_type | size ) |
|
inlinestatic |
Allocates.
Author: Tyler Parke
Date: 2017-11-19
Parameters: buffer - [in,out] The buffer. start - The start.
size - The size.
◆ AllocateElement() [1/4]
template<bool t_is_primitive, class t_index_type = uint04>
template<class t_type , class t_buffer_type >
static void AllocateElement |
( |
t_buffer_type & | buffer, |
|
|
t_index_type | index, |
|
|
const t_type & | object ) |
|
inlinestatic |
Allocate element.
Author: Tyler Parke
Date: 2017-11-19
Parameters: buffer - [in,out] The buffer. index - Zero-based index of the.
object - The object.
◆ AllocateElement() [2/4]
template<bool t_is_primitive, class t_index_type = uint04>
template<class t_type , class t_buffer_type >
static void AllocateElement |
( |
t_buffer_type & | buffer, |
|
|
t_index_type | index, |
|
|
t_type && | object ) |
|
inlinestatic |
◆ AllocateElement() [3/4]
template<bool t_is_primitive, class t_index_type = uint04>
template<class t_type , class t_buffer_type >
static void AllocateElement |
( |
t_buffer_type & | buffer, |
|
|
t_index_type | start, |
|
|
t_index_type | size, |
|
|
const t_type & | object ) |
|
inlinestatic |
Allocate element.
Author: Tyler Parke
Date: 2017-11-19
Parameters: buffer - [in,out] The buffer. start - The start. size - The size.
object - The object.
◆ AllocateElement() [4/4]
template<bool t_is_primitive, class t_index_type = uint04>
template<class t_type , class t_buffer_type >
static void AllocateElement |
( |
t_buffer_type & | buffer, |
|
|
t_index_type | start, |
|
|
t_index_type | size, |
|
|
t_type & | object ) |
|
inlinestatic |
◆ Deallocate()
template<bool t_is_primitive, class t_index_type = uint04>
template<class t_type , class t_buffer_type >
static void Deallocate |
( |
t_buffer_type & | buffer, |
|
|
t_index_type | start, |
|
|
t_index_type | size ) |
|
inlinestatic |
Deallocates.
Author: Tyler Parke
Date: 2017-11-19
Parameters: buffer - [in,out] The buffer. start - The start.
size - The size.
◆ isPrimitive()
template<bool t_is_primitive, class t_index_type = uint04>
static constexpr bool isPrimitive |
( |
| ) |
|
|
inlinestaticconstexpr |
Query if this object is primitive.
Author: Tyler Parke
Date: 2017-11-19
Returns: True if primitive, false if not.
The documentation for this class was generated from the following file: