Thrill  0.1
BlockPoolMemoryHolder Class Reference

Detailed Description

RAII class for allocating memory from a BlockPool.

Definition at line 230 of file block_pool.hpp.

+ Collaboration diagram for BlockPoolMemoryHolder:

#include <block_pool.hpp>

Public Member Functions

 BlockPoolMemoryHolder (BlockPool &block_pool, size_t size)
 
 BlockPoolMemoryHolder (const BlockPoolMemoryHolder &)=delete
 non-copyable: delete copy-constructor More...
 
 ~BlockPoolMemoryHolder ()
 
BlockPoolMemoryHolderoperator= (const BlockPoolMemoryHolder &)=delete
 non-copyable: delete assignment operator More...
 

Private Attributes

BlockPoolblock_pool_
 
size_t size_
 

Constructor & Destructor Documentation

◆ BlockPoolMemoryHolder() [1/2]

BlockPoolMemoryHolder ( BlockPool block_pool,
size_t  size 
)
inline

Definition at line 233 of file block_pool.hpp.

References BlockPool::operator=().

◆ BlockPoolMemoryHolder() [2/2]

non-copyable: delete copy-constructor

◆ ~BlockPoolMemoryHolder()

~BlockPoolMemoryHolder ( )
inline

Definition at line 244 of file block_pool.hpp.

Member Function Documentation

◆ operator=()

BlockPoolMemoryHolder& operator= ( const BlockPoolMemoryHolder )
delete

non-copyable: delete assignment operator

Member Data Documentation

◆ block_pool_

BlockPool& block_pool_
private

Definition at line 250 of file block_pool.hpp.

◆ size_

size_t size_
private

Definition at line 251 of file block_pool.hpp.


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