Const iterator.
More...
#include <ilserver/model.h>
template<class TargetType, class OriginType>
class IlsInvertedRelationList< TargetType, OriginType >::ConstIterator
Const iterator.
Library: server
- Related Pattern
Iterator
- See also
IlsException
, IlsInvertedRelationList
, IlsInvertedRelationList::Iterator
, IlsInvertedRelationList::Position
.
◆ ConstIterator()
template<class TargetType , class OriginType >
\short Copy constructor. Creates an iterator with the same
characteristics as the one supplied as its argument.
This iterator points to the same item in the list as the iterator supplied as its argument.
◆ operator!=()
template<class TargetType , class OriginType >
This operator indicates whether the iterator is not at the same position as the one supplied as its argument.
◆ operator*()
template<class TargetType , class OriginType >
\short Returns the next item to be read. The iterator
remains at the same position.
◆ operator+()
template<class TargetType , class OriginType >
Moves the iterator forward in the list according to the value supplied as its argument.
- Exceptions
-
IlsEndOfList | If the iterator is moved past the last list item. |
◆ operator++() [1/2]
template<class TargetType , class OriginType >
This increment operator moves the iterator to the next item in the list.
- Exceptions
-
IlsEndOfList | If the iterator is moved past the last list item. |
◆ operator++() [2/2]
template<class TargetType , class OriginType >
This operator is identical to operator++()
except that it uses a prefix notation.
- Exceptions
-
IlsEndOfList | If the iterator is moved past the last list item. |
◆ operator+=()
template<class TargetType , class OriginType >
Moves the iterator forward according to the value supplied as its argument.
- Exceptions
-
IlsEndOfList | If the value provided moves the iterator past the last list item. |
◆ operator-()
template<class TargetType , class OriginType >
\short Moves the iterator backward in the list
according to the value supplied as its argument.
- Exceptions
-
◆ operator--() [1/2]
template<class TargetType , class OriginType >
\short Moves the iterator to the previous item in the list.
- Exceptions
-
◆ operator--() [2/2]
template<class TargetType , class OriginType >
This operator is identical to operator--()
except that it uses a prefix notation.
- Exceptions
-
◆ operator-=()
template<class TargetType , class OriginType >
Moves the iterator backward according to the value supplied as its argument.
- Exceptions
-
◆ operator=()
template<class TargetType , class OriginType >
\short Moves the iterator to the same position as the
one supplied as its argument.
◆ operator>>()
template<class TargetType , class OriginType >
\short Sequentially reads the items in the list.
When the iterator is used for the first time, the item read is the one at the beginning of the list.
If the iterator has reached the last item in the list, and if the list is not empty, no value is assigned to the argument of the operator during the next read operation.The conversion operator to IlsBoolean
returns IlsFalse
(See operator IlsBoolean()
below).
If an iterator is built for an empty list, the conversion operator of the iterator returns IlsFalse
.