Range Class Reference

#include <range.h>

List of all members.

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)


Member Typedef Documentation

typedef int Range::T_numtype
 


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
fromStart 
toEnd 


Constructor & Destructor Documentation

Range::Range (   )  [inline]
 

Range::Range (  int  slicePosition  )  [inline, explicit]
 

Range::Range (  int  first,
int  last,
int  stride = 1
)  [inline]
 


Member Function Documentation

_bz_VecExpr<Range> Range::_bz_asVecExpr (   )  const [inline]
 

T_numtype Range::_bz_fastAccess (  unsigned  i  )  const [inline]
 

bool Range::_bz_hasFastAccess (   )  const [inline]
 

unsigned Range::_bz_suggestLength (   )  const [inline]
 

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

int Range::first (  int  lowRange = 0  )  const [inline]
 

bool Range::isAscendingContiguous (   )  const [inline]
 

bool Range::isUnitStride (   )  const [inline]
 

int Range::last (  int  highRange = 0  )  const [inline]
 

unsigned Range::length (  int  = 0  )  const [inline]
 

int Range::operator() (  unsigned  i  )  const [inline]
 

Range Range::operator+ (  int  shift  )  const [inline]
 

Range Range::operator- (  int  shift  )  const [inline]
 

int Range::operator[] (  unsigned  i  )  const [inline]
 

void Range::setRange (  int  first,
int  last,
int  stride = 1
)  [inline]
 

int Range::stride (   )  const [inline]
 


Friends And Related Function Documentation

ostream& operator<< (  ostream &  os,
const Range &  range
)  [friend]
 


Member Data Documentation

const int Range::_bz_staticLengthCount [static]
 

Initial value:

 0
        _bz_dynamicLengthCount = 0
        _bz_staticLength = 0

int Range::first_ [private]
 

int Range::last_ [private]
 

int Range::stride_ [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Oct 22 10:05:17 2007 for blitz by  doxygen 1.3.9.1