API Documentation
|
Specific logic for reserving memory for a Buffer. When managed, and more memory is needed memory is reserved using the ([Current Capacity] * 3) / 2) + 1. More...
#include <MemoryManager.h>
Public Member Functions | |
void | addIndex () |
void | addIndex (t_index_type location) |
void | addLast () |
template<bool t_managed> | |
void | allocationSizeCheck () |
t_type * | begin () |
const t_type * | begin () const |
t_type * | begin (t_index_type index) const |
constexpr | BufferAllocator () |
constexpr | BufferAllocator (BufferAllocator &&allocator) noexcept |
t_index_type | capacity () const |
void | clear () |
sint04 | compare (const BufferAllocator &allocator) const |
sint04 | compare (const BufferAllocator &allocator, t_index_type start, t_index_type end) const |
t_index_type | count (const t_type &value) const |
template<bool t_managed> | |
void | createSpace (t_index_type location, t_index_type size) |
template<bool t_managed> | |
void | createSpace (t_index_type size) |
template<bool t_is_null> | |
t_type * | emptyPtr () const |
t_type * | end () |
const t_type * | end () const |
t_type * | end (t_index_type index) |
constexpr t_index_type | filledSize () const |
t_type & | get (t_index_type index) |
const t_type & | get (t_index_type index) const |
t_index_type | memSize () const |
template<bool t_is_null> | |
void | nullTerminatorCheck () |
BufferAllocator & | operator= (BufferAllocator &&value) noexcept |
t_type * | ptr () |
const t_type * | ptr () const |
void | removeAllIndex (t_index_type start, t_index_type end) |
template<class t_range_buffer > | |
void | removeAllIndices (const t_range_buffer &ranges) |
void | removeIndex (t_index_type location) |
void | removeLast () |
void | resizeSpace (t_index_type new_size) |
template<bool is_primitive, class t_other_index_type , bool t_other_null_term> | |
void | setAll (const BufferAllocator< t_type, t_other_index_type, t_other_null_term > &allocator, t_index_type offset, t_index_type other_offset, t_index_type size) |
void | setAll (const t_type &object, t_index_type offset, t_index_type size) |
template<bool is_primitive> | |
void | setAll (const t_type *src, t_index_type offset, t_index_type size) |
template<class t_other_allocator > | |
void | setAllFromSource (const t_other_allocator &allocator, t_index_type offset, t_index_type other_offset, t_index_type size) |
void | setSize (t_index_type size) |
void | swap (t_index_type index_a, t_index_type index_b) |
~BufferAllocator () | |
Static Public Member Functions | |
static constexpr bool | IsNullTerm () |
Public Attributes | |
t_index_type | m_allocated_size |
t_type * | m_buffer |
t_index_type | m_filled_size |
Specific logic for reserving memory for a Buffer. When managed, and more memory is needed memory is reserved using the ([Current Capacity] * 3) / 2) + 1.
|
inlineexplicitconstexpr |
|
inlineconstexprnoexcept |
|
inline |
|
inline |
Adds index.
Author: Tyler Parke
Date: 2017-11-19
|
inline |
Adds an index.
Author: Tyler Parke
Date: 2017-11-19
Parameters: location - The location.
|
inline |
|
inline |
Allocation size check.
Author: Tyler Parke
Date: 2017-11-19
|
inlinenodiscard |
Gets the begin.
Author: Tyler Parke
Date: 2017-11-19
|
inlinenodiscard |
Gets the begin.
Author: Tyler Parke
Date: 2017-11-19
|
inlinenodiscard |
Begins the given index.
Author: Tyler Parke
Date: 2017-11-19
Parameters: index - Zero-based index of the.
|
inlinenodiscard |
Gets the capacity of the buffer or total space allocated to it.
Author: Tyler Parke
Date: 2017-04-15
|
inline |
Clears this object to its blank/initial state.
Author: Tyler Parke
Date: 2017-11-19
|
inlinenodiscard |
Compares this const BufferAllocator& object to another to determine their relative ordering.
Author: Tyler Parke
Date: 2017-11-19
Parameters: allocator - The constant buffer allocator& to compare to this object.
|
inlinenodiscard |
Compares objects.
Author: Tyler Parke
Date: 2017-11-19
Parameters: allocator - Constant buffer allocator& to be compared. start - Uint 04 to be compared. end - Uint 04 to be compared.
|
inlinenodiscard |
|
inline |
|
inline |
|
inlinenodiscard |
Null terminator check.
Author: Tyler Parke
Date: 2017-11-19
Typeparams: t_is_null - Type of the is null.
|
inlinenodiscard |
Gets the end.
Author: Tyler Parke
Date: 2017-11-19
|
inlinenodiscard |
Gets the end.
Author: Tyler Parke
Date: 2017-11-19
|
inline |
Ends the given index.
Author: Tyler Parke
Date: 2017-11-19
Parameters: index - Zero-based index of the.
|
inlinenodiscardconstexpr |
Filled size.
Author: Tyler Parke
Date: 2017-11-19
|
inline |
Gets a t type& using the given index.
Author: Tyler Parke
Date: 2017-11-19
Parameters: index - The index to get.
|
inlinenodiscard |
Gets a constant type& using the given index.
Author: Tyler Parke
Date: 2017-11-19
Parameters: index - The index to get.
|
inlinestaticnodiscardconstexpr |
|
inlinenodiscard |
|
inline |
Null terminator check.
Author: Tyler Parke
Date: 2017-11-19
Typeparams: t_is_null - Type of the is null.
|
inlinenoexcept |
Move assignment operator.
Author: Tyler Parke
Date: 2017-11-19
Parameters: value - [in,out] The value.
|
inline |
|
inlinenodiscard |
|
inline |
Removes all index.
Author: Tyler Parke
Date: 2017-11-19
Parameters: start - The start. end - The end.
|
inline |
|
inline |
Removes the index described by location.
Author: Tyler Parke
Date: 2017-11-19
Parameters: location - The location.
|
inline |
|
inline |
Resize space.
Author: Tyler Parke
Date: 2017-11-19
Parameters: new_size - Size of the new.
|
inline |
Sets all.
Author: Tyler Parke
Date: 2017-11-19
Typeparams: true - Type of the true. Parameters: src - Source for the. offset - The offset. size - The size.
Sets all.
Author: Tyler Parke
Date: 2017-11-19
Typeparams: false - Type of the false. Parameters: src - Source for the. offset - The offset. size - The size.
Sets all.
Author: Tyler Parke
Date: 2017-11-19
Typeparams: is_primitive - Type of the is primitive. Parameters: allocator - The allocator. offset - The offset. other_offset - The other offset. size - The size.
|
inline |
Sets all.
Author: Tyler Parke
Date: 2017-11-19
Parameters: object - The object. offset - The offset. size - The size.
|
inline |
Sets all.
Author: Tyler Parke
Date: 2017-11-19
Typeparams: is_primitive - Type of the is primitive. Parameters: src - Source for the. offset - The offset. size - The size.
|
inline |
Sets all from source.
Author: Tyler Parke
Date: 2017-11-19
Parameters: allocator - The allocator. offset - The offset. other_offset - The other offset. size - The size.
|
inline |
Sets a size.
Author: Tyler Parke
Date: 2017-11-19
Parameters: size - The size.
|
inline |
Swaps.
Author: Tyler Parke
Date: 2017-11-19
Parameters: index_a - The index a. index_b - The index b.
t_index_type m_allocated_size |
t_type* m_buffer |
The buffer that stores the actual data.
t_index_type m_filled_size |