NAME

OTC_RangeCursor - A cursor over a range of integers.

SYNOPSIS


#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();
};

CLASS TYPE

Concrete

DESCRIPTION

This class is a cursor over a range of integers. Note that the cursor is not over real data and should only be used with the OTC_Iterator class, which will not allow modification of values returned.

CONSTRUCTION

OTC_RangeCursor(
  int theLower,
  u_int theLength,
  OTC_Direction theDirection=OTCLIB_FORWARD
);

MOVEMENT

void reset();
void next();

RETRIEVAL

int& item();
OTC_Boolean isValid() const;

CLONING

OTC_Cursor<int>* clone();

SEE ALSO

OTC_Cursor, OTC_Iterator

LIBRARY

OTC

AUTHOR(S)

Graham Dumpleton

COPYRIGHT

Copyright 1992 1993 OTC LIMITED
Copyright 1994 DUMPLETON SOFTWARE CONSULTING PTY LIMITED