Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
PoolRegistry Class Reference

Description

keep track of any distinct memory pools used

Definition at line 127 of file tracking-allocator.cpp.

Static Public Member Functions

static PoolHandle locate (Literal poolID)
 static access front-end : locate (or create) a MemoryPool
 

Private Types

using PoolTab = std::unordered_map< Literal, std::weak_ptr< MemoryPool > >
 

Private Member Functions

PoolHandle fetch_or_create (Literal poolID)
 
- Private Member Functions inherited from NonCopyable
 ~NonCopyable ()=default
 
 NonCopyable ()=default
 
 NonCopyable (NonCopyable const &)=delete
 
NonCopyableoperator= (NonCopyable const &)=delete
 

Private Attributes

PoolTab pools_ {}
 

Member Typedef Documentation

◆ PoolTab

using PoolTab = std::unordered_map<Literal, std::weak_ptr<MemoryPool> >
private

Definition at line 130 of file tracking-allocator.cpp.

Member Function Documentation

◆ locate()

PoolHandle locate ( Literal  poolID)
static

static access front-end : locate (or create) a MemoryPool

Definition at line 148 of file tracking-allocator.cpp.

References lib::test::anonymous_namespace{tracking-allocator.cpp}::poolReg.

◆ fetch_or_create()

PoolHandle fetch_or_create ( Literal  poolID)
private

Definition at line 155 of file tracking-allocator.cpp.

Member Data Documentation

◆ pools_

PoolTab pools_ {}
private

Definition at line 132 of file tracking-allocator.cpp.

+ Inheritance diagram for PoolRegistry:
+ Collaboration diagram for PoolRegistry:

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