Lifetime-management for memory that goes into FITS memory files.
More...
#include <fits.h>
Lifetime-management for memory that goes into FITS memory files.
Definition at line 125 of file fits.h.
◆ MemFileManager() [1/5]
lsst::afw::fits::MemFileManager::MemFileManager |
( |
| ) |
|
|
inline |
Construct a MemFileManager with no initial memory buffer.
The manager will still free the memory when it goes out of scope, but all allocation and reallocation will be performed by cfitsio as needed.
Definition at line 133 of file fits.h.
◆ MemFileManager() [2/5]
lsst::afw::fits::MemFileManager::MemFileManager |
( |
std::size_t | len | ) |
|
|
inlineexplicit |
Construct a MemFileManager with (len) bytes of initial memory.
The manager will free the memory when it goes out of scope, and cfitsio will be allowed to reallocate the internal memory as needed.
Definition at line 141 of file fits.h.
◆ MemFileManager() [3/5]
lsst::afw::fits::MemFileManager::MemFileManager |
( |
void * | ptr, |
|
|
std::size_t | len ) |
|
inline |
Construct a MemFileManager that references and does not manage external memory.
The manager will not manage the given pointer, and it will not allow cfitsio to do so either. The user must provide enough initial memory and is responsible for freeing it manually after the FITS file has been closed.
Definition at line 150 of file fits.h.
◆ ~MemFileManager()
lsst::afw::fits::MemFileManager::~MemFileManager |
( |
| ) |
|
|
inline |
◆ MemFileManager() [4/5]
lsst::afw::fits::MemFileManager::MemFileManager |
( |
const MemFileManager & | | ) |
|
|
delete |
◆ MemFileManager() [5/5]
◆ getData()
void * lsst::afw::fits::MemFileManager::getData |
( |
| ) |
const |
|
inline |
Return the buffer.
Definition at line 195 of file fits.h.
◆ getLength()
std::size_t lsst::afw::fits::MemFileManager::getLength |
( |
| ) |
const |
|
inline |
Return the buffer length.
Definition at line 198 of file fits.h.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ reset() [1/3]
void lsst::afw::fits::MemFileManager::reset |
( |
| ) |
|
Return the manager to the same state it would be if default-constructed.
This must not be called while a FITS file that uses this memory is open.
Definition at line 486 of file fits.cc.
◆ reset() [2/3]
void lsst::afw::fits::MemFileManager::reset |
( |
std::size_t | len | ) |
|
Set the size of the internal memory buffer, freeing the current buffer if necessary.
This must not be called while a FITS file that uses this memory is open.
Memory allocated with this overload of reset can be reallocated by cfitsio and will be freed when the manager goes out of scope or is reset.
Definition at line 493 of file fits.cc.
◆ reset() [3/3]
void lsst::afw::fits::MemFileManager::reset |
( |
void * | ptr, |
|
|
std::size_t | len ) |
|
inline |
Set the internal memory buffer to an manually-managed external block.
This must not be called while a FITS file that uses this memory is open.
Memory passed to this overload of reset cannot be reallocated by cfitsio and will not be freed when the manager goes out of scope or is reset.
Definition at line 177 of file fits.h.
◆ Fits
The documentation for this class was generated from the following files: