#include <range.h>
Public Types | |
| typedef int | T_numtype |
| enum | { fromStart = INT_MIN, toEnd = INT_MIN } |
Public Member Functions | |
| Range () | |
| Range (int slicePosition) | |
| Range (int first, int last, int stride=1) | |
| int | first (int lowRange=0) const |
| int | last (int highRange=0) const |
| unsigned | length (int=0) const |
| int | stride () const |
| bool | isAscendingContiguous () const |
| void | setRange (int first, int last, int stride=1) |
| bool | isUnitStride () const |
| Range | operator- (int shift) const |
| Range | operator+ (int shift) const |
| int | operator[] (unsigned i) const |
| int | operator() (unsigned i) const |
| bool | _bz_hasFastAccess () const |
| T_numtype | _bz_fastAccess (unsigned i) const |
| unsigned | _bz_suggestLength () const |
| _bz_VecExpr< Range > | _bz_asVecExpr () const |
Static Public Member Functions | |
| Range | all () |
Static Public Attributes | |
| const int | _bz_staticLengthCount |
Private Attributes | |
| int | first_ |
| int | last_ |
| int | stride_ |
Friends | |
| ostream & | operator<< (ostream &os, const Range &range) |
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
Initial value: 0
_bz_dynamicLengthCount = 0
_bz_staticLength = 0
|
|
|
|
|
|
|
|
|
|
1.3.9.1