#include <OTC/collctn/rngecurs.hh> class OTC_RangeCursor : public OTC_Cursor<int> {
public:
~OTC_RangeCursor();
static os_typespec* get_os_typespec();
OTC_RangeCursor( int theLower, u_int theLength, OTC_Direction theDirection=OTCLIB_FORWARD );
void reset();
void next();
int& item();
OTC_Boolean isValid() const;
OTC_Cursor<int>* clone();
};
OTC_Iterator
class, which will not allow modification of values
returned.
OTC_RangeCursor(
int theLower,
u_int theLength,
OTC_Direction theDirection=OTCLIB_FORWARD
);
theLower
and length theLength
. theDirection
indicates in which direction the cursor
will traverse, ie., OTCLIB_FORWARD
will
result in traversal from theLower
to
theUpper
; OTCLIB_BACKWARD
will result
in traversal in the opposite direction.
void reset();
void next();
int& item();
OTC_Boolean isValid() const;
OTCLIB_TRUE
while there is a
valid value under the cursor.
OTC_Cursor<int>* clone();
OTC_Cursor
, OTC_Iterator