EleFits  5.3.0
A modern C++ API on top of CFITSIO
Loading...
Searching...
No Matches
Public Member Functions | List of all members
FileMemSegments Class Reference

#include <FileMemSegments.h>

Detailed Description

Mapping between an in-file (FITS binary table data unit) segment and an in-memory (column) segment for reading and writing bintable segments.

Public Member Functions

 FileMemSegments (const Segment &fileSegment, long memoryIndex=0)
 Create a mapping from an in-file segment and an in-memory position.
 
 FileMemSegments (long fileIndex, const Segment &memorySegment=Segment::whole())
 Create a mapping from an in-file position and an in-file segment.
 
const Segmentfile () const
 Get the in-file segment.
 
long fileToMemory () const
 Compute the index offset from in-file segment to in-memory segment.
 
const Segmentmemory () const
 Get the in-memory segment.
 
long memoryToFile () const
 Compute the index offset from in-memory segment to in-file segment.
 
void resolve (long fileBack, long memoryBack)
 Resolve the unknown (-1) indices, given known in-file and in-memory back indices.
 
long size () const
 Get the common segment size.
 

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