itom 1.3.0
ito::Range Class Reference

each range value has a start and end point. Optionally range can be marked as Range::all(), which indicates a full range More...

#include <dataobj.h>

List of all members.

Public Member Functions

 Range ()
 Range (int _start, int _end)
unsigned int size () const
bool empty () const

Static Public Member Functions

static Range all ()

Public Attributes

int start
int end

Detailed Description

each range value has a start and end point. Optionally range can be marked as Range::all(), which indicates a full range


Constructor & Destructor Documentation

ito::Range::Range ( ) [inline]

empty constructor. start = end = 0

ito::Range::Range ( int  _start,
int  _end 
) [inline]

constructor with given start and end value


Member Function Documentation

static Range ito::Range::all ( ) [inline, static]

static method which returns a new Range object with full range

bool ito::Range::empty ( ) const [inline]

returns true if range is empty, that means if the start index is equal to the end index

unsigned int ito::Range::size ( ) const [inline]

returns number of elements between the given range boundaries


Member Data Documentation

member, end-index (zero-based)

member, start-index (zero-based)


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends