casacore
Public Member Functions | Public Attributes | Private Member Functions | List of all members
casacore::MultiFileBuffer Struct Reference

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

◆ MultiFileBuffer() [1/2]

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

◆ ~MultiFileBuffer()

casacore::MultiFileBuffer::~MultiFileBuffer ( )
inline

Definition at line 58 of file MultiFileBase.h.

References data, and free().

◆ MultiFileBuffer() [2/2]

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

Member Function Documentation

◆ operator=()

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

Member Data Documentation

◆ data

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: