EleFits  4.0.0
A modern C++ API on top of CFitsIO
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Euclid::Fits::Segment Struct Reference

#include <DataUtils.h>

Class Description

Bounds of a closed index interval.

The lower and upper bounds are named front and back to match Region wording. This also avoids confusion when working with table segments, where the lower bound is upward the upper bound.

Public Member Functions

long size () const
 Get the number of elements.
 

Static Public Member Functions

static Segment fromSize (long front, long size)
 Create a segment specified by a lower bound and size.
 
static Segment whole ()
 Create a maximal segment (from index 0 to max).
 

Public Attributes

long front
 The lower bound.
 
long back
 The upper bound.
 

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