DABC (Data Acquisition Backbone Core)  2.9.9
Data Structures | Public Types | Public Member Functions | Data Fields
dabc::MemoryBlock Class Reference

Data Structures

struct  Entry

Public Types

typedef Queue< unsigned, false > FreeQueue

Public Member Functions

bool Allocate (unsigned number, unsigned size, unsigned align)
bool Assign (bool isowner, const std::vector< void * > &bufs, const std::vector< unsigned > &sizes) throw ()
bool IsAnyFree () const
 MemoryBlock ()
void Release ()
virtual ~MemoryBlock ()

Data Fields

 array of buffers More...
FreeQueue fFree
 list of free buffers More...
unsigned fNumber
 number of buffers More...

Detailed Description

Definition at line 27 of file MemoryPool.cxx.

Member Typedef Documentation

◆ FreeQueue

typedef Queue<unsigned, false> dabc::MemoryBlock::FreeQueue

Definition at line 37 of file MemoryPool.cxx.

Constructor & Destructor Documentation

◆ MemoryBlock()

dabc::MemoryBlock::MemoryBlock ( )

Definition at line 43 of file MemoryPool.cxx.

◆ ~MemoryBlock()

virtual dabc::MemoryBlock::~MemoryBlock ( )

Definition at line 50 of file MemoryPool.cxx.

Member Function Documentation

◆ IsAnyFree()

bool dabc::MemoryBlock::IsAnyFree ( ) const

Definition at line 55 of file MemoryPool.cxx.

◆ Release()

void dabc::MemoryBlock::Release ( )

Definition at line 57 of file MemoryPool.cxx.

◆ Allocate()

bool dabc::MemoryBlock::Allocate ( unsigned  number,
unsigned  size,
unsigned  align 

Definition at line 76 of file MemoryPool.cxx.

◆ Assign()

bool dabc::MemoryBlock::Assign ( bool  isowner,
const std::vector< void * > &  bufs,
const std::vector< unsigned > &  sizes 
throw (

Definition at line 107 of file MemoryPool.cxx.

Field Documentation

◆ fArr

Entry* dabc::MemoryBlock::fArr

array of buffers

Definition at line 39 of file MemoryPool.cxx.

◆ fNumber

unsigned dabc::MemoryBlock::fNumber

number of buffers

Definition at line 40 of file MemoryPool.cxx.

◆ fFree

FreeQueue dabc::MemoryBlock::fFree

list of free buffers

Definition at line 41 of file MemoryPool.cxx.

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