carl
24.04
Computer ARithmetic Library
|
#include <Pool.h>
Data Structures | |
struct | content_equal |
struct | content_hash |
Public Member Functions | |
~Pool () | |
template<typename Key > | |
std::shared_ptr< PoolElementWrapper< Content > > | add (Key &&c) |
Static Public Member Functions | |
static Pool< Content > & | getInstance () |
Returns the single instance of this class by reference. More... | |
Protected Member Functions | |
Pool (std::size_t _capacity=1000) | |
void | free (const PoolElementWrapper< Content > *c) |
Private Types | |
using | UnderlyingSet = boost::intrusive::unordered_set< PoolElementWrapper< Content > > |
Private Member Functions | |
void | check_rehash () |
Private Attributes | |
friend | Singleton< Pool< Content > > |
friend | PoolElementWrapper< Content > |
IDPool | m_ids |
id allocator More... | |
pool::RehashPolicy | m_rehash_policy |
std::unique_ptr< typename UnderlyingSet::bucket_type[]> | m_pool_buckets |
UnderlyingSet | m_pool |
The pool. More... | |
|
private |
|
inlineexplicitprotected |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprotected |
|
inlinestaticinherited |
Returns the single instance of this class by reference.
If there is no instance yet, a new one is created.
Definition at line 45 of file Singleton.h.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |