OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
Class Range is an abstraction for interval of integer numbers. More...
#include <range.h>
Public Member Functions | |
Range (int indx) | |
Constructor. Creates Range containing only given single number. More... | |
Range (int li, int hi) | |
Constructor. Creates range <li, hi> More... | |
Range () | |
Empty range constructor. More... | |
int | giveStart () |
Returns the start index (inclusive). More... | |
int | giveEnd () |
Returns the end index (inclusive). More... | |
bool | test (int i) |
Tests if number is in range. More... | |
Protected Attributes | |
int | startIndx |
Interval start value. More... | |
int | endIndx |
Interval end value. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const Range &r) |
Class Range is an abstraction for interval of integer numbers.
It is described using its start and end values of interval it represents. The interval is defined to represent all values between start and end values, including start and end values. Function for testing if number is in interval is provided. Used by OutputManager to efficiently maintain intervals.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |