Iterator class. More...
#include <ilserver/model.h>
Inherits IlsViewedRelIterator.
Public Types | |
typedef IlsSetRelationIterator< RelationSet > | Myself |
Myself is the type of the instantiated template class. | |
Public Member Functions | |
IlsSetRelationIterator (RelationSet &r) | |
Creates an iterator for the set supplied as its argument. | |
IlsSetRelationIterator (const Myself &rhs) | |
Copy constructor. Creates an iterator with the same characteristics as the one supplied as its argument. The iterator points to the same location in the set as the iterator supplied as its argument. | |
operator IlsBoolean () const | |
This conversion operator indicates whether the iterator has reached the end of the set. It returns IlsFalse if at least one extraction operation was unsuccessful. | |
Myself & | operator>> (TargetTypeP &p) |
Scans the elements in the set sequentially. More... | |
void | reset () |
Resets the iterator so that it can scan all the elements in the set again. | |
Iterator class.
Library: server
This class is aliased (typedef
) to Iterator in set relations.
Myself& IlsSetRelationIterator< RelationSet >::operator>> | ( | TargetTypeP & | p | ) |
Scans the elements in the set sequentially.
When the iterator is used for the first time, it scans all the elements in the set. This operator returns the iterator, which converts to a Boolean type. Once the set has been entirely scanned, the iterator converts to IlsFalse
.
The scanning order may change completely as new objects are added to the set or removed from the set.
© Copyright 2018, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.