EleFits
4.0.1
A modern C++ API on top of CFitsIO
|
#include <DataUtils.h>
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. | |