IlsUsesList::Position
Category
Nested class
Description
The class Position sets a list iterator to a given position. This class is nested in the class template IlsUsesList.
Related Pattern
Memento
Library
Synopsis
class Position{
public:
};
Constructor
Position(const Position&);
This copy constructor creates a position that points to the same location as the one supplied as its argument.
Operators
IlsBoolean operator==(const Position&);
This operator evaluates whether two positions are equal.
IlsBoolean operator!=(const Position&);
This operator evaluates whether two positions are not equal.
Position& operator++();
This increment operator moves the iterator to the next item in the list. If the iterator is moved past the last list item, the exception
IlsEndOfList is thrown.
Position& operator++(int);
This operator is identical to the previous one except that it uses a prefix notation.
Position& operator--();
This increment operator moves the iterator to the previous item in the list. If the iterator is moved past the first list item, the exception
IlsBeginningOfList is thrown.
Position& operator--(int);
This operator is identical to the previous one except that it uses a prefix notation.
Position operator+(int);
This operator moves the iterator forward in the list according to the value supplied as its argument. If the iterator is moved past the last list item, the exception IlsEndOfList is thrown.
Position operator-(int);
This operator moves the iterator backward in the list according to the value supplied as its argument. If the iterator is moved past the first list item, the exception IlsBeginningOfList is thrown.
Position& operator+=(int);
This operator moves the iterator forward according to the value supplied as its argument. If the value provided moves the iterator past the last list item, the exception IlsEndOfList is thrown.
Position& operator-=(int);
This operator moves the iterator backwards according to the value supplied as its argument. If the provided value moves the iterator past the first list item, the exception IlsBeginningOfList is thrown.
CUsedTypePR operator*();
This operator converts the position to the element to which the position points.
Position& operator=(const Position&);
This operator assigns the position provided as its argument to another position and returns the position supplied.
See Also
Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.