EleFits  4.0.0
A modern C++ API on top of CFitsIO
Public Member Functions | List of all members
Euclid::Fits::FileMemSegments Class Reference

#include <FileMemSegments.h>

Class 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.
 
const Segmentmemory () const
 Get the in-memory segment.
 
long size () const
 Get the common segment size.
 
void resolve (long fileBack, long memoryBack)
 Resolve the unknown (-1) indices, given known in-file and in-memory back indices.
 
long fileToMemory () const
 Compute the index offset from in-file segment to in-memory segment.
 
long memoryToFile () const
 Compute the index offset from in-memory segment to in-file segment.
 

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