IlsInvertedRelationList::Position
 
IlsInvertedRelationList::Position
Category 
Nested class
Description 
This class is nested in the class template IlsInvertedRelationList. It sets an iterator to a given position.
Related Pattern 
Memento
Library 
<server>
Header File 
#include <ilserver/ilsmodel.h>
Synopsis 
class Position{
public:
Position(const Position&);
IlsBoolean operator==(const Position&);
IlsBoolean operator!=(const Position&);
Position& operator++();
Position& operator++(int);
Position& operator--();
Position& operator--(int);
Position operator+(unsigned int);
Position operator-(unsigned int);
Position& operator+=(unsigned int i);
Position& operator-=(unsigned int i);
TargetTypeP operator*();
Position& operator=(const Position&);
};
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.
Position& operator++(int);
This operator is identical to the previous one except that it uses a prefix notation.
Position& operator--();
This decrement operator moves the iterator to the previous item in the list.
Position& operator--(int);
This operator is identical to the previous one except that it uses a prefix notation.
Position operator+(unsigned int);
This operator moves the iterator forward in the list according to the value supplied as its argument.
Position operator-(unsigned int);
This operator moves the iterator backwards according to the value supplied as its argument.
Position& operator+=(unsigned int i);
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-=(unsigned int i);
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.
TargetTypeP operator*();
This operator converts the position to the item 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 
IlsInvertedRelationList, IlsInvertedRelationList::Iterator

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.