IlsOwnsList::Position
 
IlsOwnsList::Position
Category 
Nested class
Description 
This class is nested in the class template IlsOwnsList. 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==(Position& rhs);
IlsBoolean operator!=(Position&);
Position& operator++();
Position& operator++(int);
Position& operator--();
Position& operator--(int);
Position operator+(int);
Position operator-(int);
Position& operator+=(int i);
Position& operator-=(int i);
OwnedTypeP 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==(Position& rhs);
This operator evaluates whether two positions are equal.
IlsBoolean operator!=(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 decrement 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 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-=(int i);
This operator moves the iterator backward in the list according to the value supplied as its argument. If the value provided moves the iterator past the first list item, the exception IlsBeginningOfList is thrown.
OwnedTypeP 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 
IlsOwnsList, IlsOwnsList::Iterator

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