![]() |
NDEVR
API Documentation
|
Allows for specific, custom logic for allocating an object. More...
Static Public Member Functions | |
| template<class t_buffer_type> | |
| static constexpr void | Allocate (t_buffer_type &buffer, t_index_type start, t_index_type size) noexcept |
| Allocates a range of elements in the buffer, delegating to the appropriate primitive or non-primitive allocator. | |
| template<class t_buffer_type> | |
| static constexpr void | AllocateElement (t_buffer_type &buffer, t_index_type index, const t_type &object) noexcept |
| Allocates a single element by copy-constructing from a given object. | |
| template<class t_buffer_type> | |
| static constexpr void | AllocateElement (t_buffer_type &buffer, t_index_type index, t_type &&object) noexcept |
| Allocates a single element by move-constructing from a given object. | |
| template<class t_buffer_type> | |
| static constexpr void | AllocateElement (t_buffer_type &buffer, t_index_type start, t_index_type size, const t_type &object) noexcept |
| Allocates a range of elements by copy-constructing from a given object. | |
| template<class t_buffer_type> | |
| static constexpr void | AllocateElement (t_buffer_type &buffer, t_index_type start, t_index_type size, t_type &object) noexcept |
| Allocates a range of elements by constructing from a given mutable object reference. | |
| template<class t_buffer_type> | |
| static constexpr void | Deallocate (t_buffer_type &buffer, t_index_type start, t_index_type size) noexcept |
| Deallocates a range of elements in the buffer, delegating to the appropriate primitive or non-primitive allocator. | |
| static constexpr bool | isPrimitive () noexcept |
| Checks whether this allocator handles primitive types. | |
Allows for specific, custom logic for allocating an object.
By default allocates based on whether a constructor needs to be called or not (t_is_primitive)
Definition at line 334 of file MemoryManager.h.
|
inlinestaticconstexprnoexcept |
Allocates a range of elements in the buffer, delegating to the appropriate primitive or non-primitive allocator.
| [in] | buffer | The buffer to allocate within. |
| [in] | start | The starting index for allocation. |
| [in] | size | The number of elements to allocate. |
Definition at line 344 of file MemoryManager.h.
Referenced by ObjectAllocator< bool, true, t_index_type >::Allocate().
|
inlinestaticconstexprnoexcept |
Allocates a single element by copy-constructing from a given object.
| [in] | buffer | The buffer to allocate within. |
| [in] | index | The index at which to place the element. |
| [in] | object | The value to copy. |
Definition at line 390 of file MemoryManager.h.
|
inlinestaticconstexprnoexcept |
Allocates a single element by move-constructing from a given object.
| [in] | buffer | The buffer to allocate within. |
| [in] | index | The index at which to place the element. |
| [in] | object | The value to move. |
Definition at line 401 of file MemoryManager.h.
|
inlinestaticconstexprnoexcept |
Allocates a range of elements by copy-constructing from a given object.
| [in] | buffer | The buffer to allocate within. |
| [in] | start | The starting index for allocation. |
| [in] | size | The number of elements to initialize. |
| [in] | object | The value to copy into each element. |
Definition at line 367 of file MemoryManager.h.
Referenced by ObjectAllocator< bool, true, t_index_type >::AllocateElement(), ObjectAllocator< bool, true, t_index_type >::AllocateElement(), ObjectAllocator< bool, true, t_index_type >::AllocateElement(), and ObjectAllocator< bool, true, t_index_type >::AllocateElement().
|
inlinestaticconstexprnoexcept |
Allocates a range of elements by constructing from a given mutable object reference.
| [in] | buffer | The buffer to allocate within. |
| [in] | start | The starting index for allocation. |
| [in] | size | The number of elements to initialize. |
| [in] | object | The value to copy into each element. |
Definition at line 379 of file MemoryManager.h.
|
inlinestaticconstexprnoexcept |
Deallocates a range of elements in the buffer, delegating to the appropriate primitive or non-primitive allocator.
| [in] | buffer | The buffer to deallocate within. |
| [in] | start | The starting index for deallocation. |
| [in] | size | The number of elements to deallocate. |
Definition at line 355 of file MemoryManager.h.
Referenced by ObjectAllocator< bool, true, t_index_type >::Deallocate().
|
inlinestaticconstexprnoexcept |
Checks whether this allocator handles primitive types.
Definition at line 409 of file MemoryManager.h.