ConfigDB::PoolData Class Reference
Base allocator, designed for good reallocation performance and low RAM footprint. More...
#include <Pool.h>
Inheritance diagram for ConfigDB::PoolData:
Collaboration diagram for ConfigDB::PoolData:
Public Member Functions | |
| PoolData (size_t itemSize) | |
| PoolData (const PoolData &other) | |
| PoolData (PoolData &&other) | |
| PoolData & | operator= (const PoolData &other) |
| size_t | getCount () const |
| size_t | getCapacity () const |
| size_t | getItemSize () const |
| size_t | getItemSize (size_t count) const |
| void * | operator[] (unsigned index) |
| const void * | operator[] (unsigned index) const |
| void | clear () |
| bool | ensureCapacity (size_t capacity) |
| size_t | usage () const |
Protected Member Functions | |
| void * | allocate (size_t itemCount) |
| void | deallocate (size_t itemCount) |
| void * | getItemPtr (unsigned index) |
| const void * | getItemPtr (unsigned index) const |
Protected Attributes | |
| void * | buffer {} |
| uint16_t | count {0} |
| uint8_t | space {0} |
| uint8_t | itemSize |
Detailed Description
Base allocator, designed for good reallocation performance and low RAM footprint.
Constructor & Destructor Documentation
◆ PoolData() [1/3]
|
inline |
◆ PoolData() [2/3]
|
inline |
◆ PoolData() [3/3]
| ConfigDB::PoolData::PoolData | ( | PoolData && | other | ) |
Member Function Documentation
◆ allocate()
|
protected |
◆ clear()
|
inline |
◆ deallocate()
|
protected |
◆ ensureCapacity()
| bool ConfigDB::PoolData::ensureCapacity | ( | size_t | capacity | ) |
◆ getCapacity()
|
inline |
◆ getCount()
|
inline |
◆ getItemPtr() [1/2]
|
inlineprotected |
◆ getItemPtr() [2/2]
|
inlineprotected |
◆ getItemSize() [1/2]
|
inline |
◆ getItemSize() [2/2]
|
inline |
◆ operator=()
◆ operator[]() [1/2]
|
inline |
◆ operator[]() [2/2]
|
inline |
◆ usage()
|
inline |
Member Data Documentation
◆ buffer
|
protected |
◆ count
|
protected |
◆ itemSize
|
protected |
◆ space
|
protected |
The documentation for this class was generated from the following file:
1.9.1