Logo
ApraPipes 1.0
Loading...
Searching...
No Matches
ApraSegregatedStorage Class Reference

#include <ApraPool.h>

Inheritance diagram for ApraSegregatedStorage:
Inheritance graph
Collaboration diagram for ApraSegregatedStorage:
Collaboration graph

Public Member Functions

 ApraSegregatedStorage ()
 
virtual ~ApraSegregatedStorage ()
 
void * malloc_n (const size_t n, const size_t partition_size)
 
void add_ordered_block (void *const block, const size_t nsz, const size_t npartition_sz)
 
void ordered_free_n (void *const chunks, const size_t n, const size_t partition_size)
 

Protected Member Functions

bool empty () const
 
ApraChunksegregate (void *block, size_t sz, size_t partition_sz, ApraChunk *end=nullptr)
 
ApraChunkfind_prev (void *const ptr)
 
ApraChunktry_malloc_n (ApraChunk *&start, size_t n, const size_t partition_size)
 
ApraChunkgetFreeApraChunk ()
 
void addToJunk (ApraChunk *start, ApraChunk *end)
 
void releaseChunks ()
 

Protected Attributes

ApraChunkfirst
 
ApraChunkjunkList
 
boost::object_pool< ApraChunkchunk_opool
 

Constructor & Destructor Documentation

◆ ApraSegregatedStorage()

ApraSegregatedStorage::ApraSegregatedStorage ( )

◆ ~ApraSegregatedStorage()

ApraSegregatedStorage::~ApraSegregatedStorage ( )
virtual
Here is the call graph for this function:

Member Function Documentation

◆ add_ordered_block()

void ApraSegregatedStorage::add_ordered_block ( void *const block,
const size_t nsz,
const size_t npartition_sz )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addToJunk()

void ApraSegregatedStorage::addToJunk ( ApraChunk * start,
ApraChunk * end )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ empty()

bool ApraSegregatedStorage::empty ( ) const
protected

◆ find_prev()

ApraChunk * ApraSegregatedStorage::find_prev ( void *const ptr)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFreeApraChunk()

ApraChunk * ApraSegregatedStorage::getFreeApraChunk ( )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ malloc_n()

void * ApraSegregatedStorage::malloc_n ( const size_t n,
const size_t partition_size )
Here is the call graph for this function:

◆ ordered_free_n()

void ApraSegregatedStorage::ordered_free_n ( void *const chunks,
const size_t n,
const size_t partition_size )
Here is the call graph for this function:

◆ releaseChunks()

void ApraSegregatedStorage::releaseChunks ( )
protected
Here is the caller graph for this function:

◆ segregate()

ApraChunk * ApraSegregatedStorage::segregate ( void * block,
size_t sz,
size_t partition_sz,
ApraChunk * end = nullptr )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ try_malloc_n()

ApraChunk * ApraSegregatedStorage::try_malloc_n ( ApraChunk *& start,
size_t n,
const size_t partition_size )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ chunk_opool

boost::object_pool<ApraChunk> ApraSegregatedStorage::chunk_opool
protected

◆ first

ApraChunk* ApraSegregatedStorage::first
protected

◆ junkList

ApraChunk* ApraSegregatedStorage::junkList
protected

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