casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Member Functions | List of all members
casacore::MultiFileBuffer Struct Reference

Helper class for MultiFileInfo holding a data buffer. More...

#include <MultiFileBase.h>

Public Member Functions

 MultiFileBuffer (size_t bufSize, Bool useODirect)
 
 ~MultiFileBuffer ()
 

Public Attributes

char * data
 Data member. More...
 

Private Member Functions

 MultiFileBuffer (const MultiFileBuffer &)
 
MultiFileBufferoperator= (const MultiFileBuffer &)
 

Detailed Description

Helper class for MultiFileInfo holding a data buffer.

Synopsis

The buffer can be allocated with posix_memalign (for O_DIRECT support). Hence the memory must be freed using free, which makes it impossible to use a shared_ptr to that memory. Hence it is encapsulated in this class.

Definition at line 56 of file MultiFileBase.h.

Constructor & Destructor Documentation

casacore::MultiFileBuffer::MultiFileBuffer ( size_t  bufSize,
Bool  useODirect 
)
casacore::MultiFileBuffer::~MultiFileBuffer ( )
inline

Definition at line 58 of file MultiFileBase.h.

References data, and free().

casacore::MultiFileBuffer::MultiFileBuffer ( const MultiFileBuffer )
private

Member Function Documentation

MultiFileBuffer& casacore::MultiFileBuffer::operator= ( const MultiFileBuffer )
private

Member Data Documentation

char* casacore::MultiFileBuffer::data

Data member.

Definition at line 61 of file MultiFileBase.h.

Referenced by ~MultiFileBuffer().


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