#include <idpool.h>
◆ IdPool() [1/2]
◆ IdPool() [2/2]
Ids::IdPool::IdPool |
( |
const uint | max, |
|
|
const uint | grow = 512 ) |
|
inline |
constructor with maximum size
◆ ~IdPool()
◆ Alloc()
uint Ids::IdPool::Alloc |
( |
| ) |
|
|
inline |
◆ Dealloc()
void Ids::IdPool::Dealloc |
( |
uint | id | ) |
|
|
inline |
◆ ForEachFree()
void Ids::IdPool::ForEachFree |
( |
const std::function< void(uint, uint)> | fun, |
|
|
SizeT | num ) |
|
inline |
◆ GetGrow()
const uint Ids::IdPool::GetGrow |
( |
| ) |
const |
|
inline |
◆ GetNumFree()
uint Ids::IdPool::GetNumFree |
( |
| ) |
const |
|
inline |
get number of free elements
◆ GetNumUsed()
uint Ids::IdPool::GetNumUsed |
( |
| ) |
const |
|
inline |
◆ Move()
void Ids::IdPool::Move |
( |
uint | lhs, |
|
|
uint | rhs ) |
|
inline |
frees up lhs and erases rhs
◆ Reserve()
void Ids::IdPool::Reserve |
( |
uint | numIds | ) |
|
|
inline |
◆ free
◆ grow
◆ maxId
The documentation for this class was generated from the following file:
- /github/workspace/code/foundation/ids/idpool.h