ConfigDB::ArrayPool Class Reference

This pool stores array data. More...

#include <Pool.h>

Inheritance diagram for ConfigDB::ArrayPool:
Collaboration diagram for ConfigDB::ArrayPool:

Public Member Functions

 ArrayPool ()
 
 ArrayPool (const ArrayPool &other)
 
 ~ArrayPool ()
 
ArrayId add (const ObjectInfo &object)
 
ArrayId add (const PropertyInfo &prop)
 
ArrayDataoperator[] (ArrayId id)
 
const ArrayDataoperator[] (ArrayId id) const
 
void clear ()
 
size_t usage () const
 
- Public Member Functions inherited from ConfigDB::PoolData
 PoolData (size_t itemSize)
 
 PoolData (const PoolData &other)
 
 PoolData (PoolData &&other)
 
PoolDataoperator= (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
 

Additional Inherited Members

- Protected Member Functions inherited from ConfigDB::PoolData
void * allocate (size_t itemCount)
 
void deallocate (size_t itemCount)
 
void * getItemPtr (unsigned index)
 
const void * getItemPtr (unsigned index) const
 
- Protected Attributes inherited from ConfigDB::PoolData
void * buffer {}
 
uint16_t count {0}
 
uint8_t space {0}
 
uint8_t itemSize
 

Detailed Description

This pool stores array data.

An array has fixed-size items.

Constructor & Destructor Documentation

◆ ArrayPool() [1/2]

ConfigDB::ArrayPool::ArrayPool ( )
inline

◆ ArrayPool() [2/2]

ConfigDB::ArrayPool::ArrayPool ( const ArrayPool other)

◆ ~ArrayPool()

ConfigDB::ArrayPool::~ArrayPool ( )
inline

Member Function Documentation

◆ add() [1/2]

ArrayId ConfigDB::ArrayPool::add ( const ObjectInfo object)
inline

◆ add() [2/2]

ArrayId ConfigDB::ArrayPool::add ( const PropertyInfo prop)
inline

◆ clear()

void ConfigDB::ArrayPool::clear ( )

◆ operator[]() [1/2]

ArrayData& ConfigDB::ArrayPool::operator[] ( ArrayId  id)
inline

◆ operator[]() [2/2]

const ArrayData& ConfigDB::ArrayPool::operator[] ( ArrayId  id) const
inline

◆ usage()

size_t ConfigDB::ArrayPool::usage ( ) const
inline

The documentation for this class was generated from the following file: