Class SBCReferenceList::reverse_iterator#
ClassList > SBCReferenceList > reverse_iterator
Inherits the following classes: SBCReferenceListLinkPointer
Inherited by the following classes: SBCReferenceOwnerList::reverse_iterator
Public Functions#
| Type | Name |
|---|---|
| SBCReferenceTarget * | getReferenceTarget () const Retrieves the reference target associated with this reverse iterator. |
| SBCReferenceToTarget * | getReferenceToTarget () const Retrieves the reference-to-target object associated with this reverse iterator. |
| bool | operator!= (const reverse_iterator & i) noexcept const Checks if two reverse iterators refer to different reference targets. |
| SBCReferenceTarget * | operator* () const Dereferences the reverse iterator to obtain the referenced target. |
| reverse_iterator & | operator++ () Moves the reverse iterator to the previous element in the list. |
| reverse_iterator | operator++ (int) Moves the reverse iterator to the previous element, returning the original iterator. |
| reverse_iterator & | operator-- () Moves the reverse iterator to the next element in the list. |
| reverse_iterator | operator-- (int) Moves the reverse iterator to the next element, returning the original iterator. |
| reverse_iterator & | operator= (SBCReferenceListLink * referenceListLink) Assigns a new list link to the reverse iterator. |
| reverse_iterator & | operator= (const reverse_iterator & i) Copies the reverse iterator from another reverse iterator. |
| bool | operator== (const reverse_iterator & i) noexcept const Checks if two reverse iterators refer to the same reference target. |
| reverse_iterator () Default constructs a reverse iterator with a null link. |
|
| reverse_iterator (SBCReferenceListLink * referenceListLink) Constructs a reverse iterator that points to the specified list link. |
|
| reverse_iterator (const reverse_iterator & i) Copy constructs a reverse iterator from another reverse iterator. |
|
| virtual | ~reverse_iterator () Destroys the reverse iterator. |
Public Functions Documentation#
function getReferenceTarget#
Retrieves the reference target associated with this reverse iterator.
Returns:
Pointer to the reference target.
function getReferenceToTarget#
Retrieves the reference-to-target object associated with this reverse iterator.
Returns:
Pointer to the reference-to-target object.
function operator!=#
Checks if two reverse iterators refer to different reference targets.
Parameters:
iReverse iterator to compare with.
Returns:
true if the iterators refer to different targets, false otherwise.
function operator*#
Dereferences the reverse iterator to obtain the referenced target.
Returns:
Pointer to the reference target.
function operator++#
Moves the reverse iterator to the previous element in the list.
Returns:
Reference to the incremented reverse iterator.
function operator++#
Moves the reverse iterator to the previous element, returning the original iterator.
Returns:
Reverse iterator value before the increment.
function operator--#
Moves the reverse iterator to the next element in the list.
Returns:
Reference to the decremented reverse iterator.
function operator--#
Moves the reverse iterator to the next element, returning the original iterator.
Returns:
Reverse iterator value before the decrement.
function operator=#
Assigns a new list link to the reverse iterator.
reverse_iterator & SBCReferenceList::reverse_iterator::operator= (
SBCReferenceListLink * referenceListLink
)
Parameters:
lPointer to the new list link.
Returns:
Reference to this reverse iterator after assignment.
function operator=#
Copies the reverse iterator from another reverse iterator.
Parameters:
iReverse iterator to copy from.
Returns:
Reference to this reverse iterator after assignment.
function operator==#
Checks if two reverse iterators refer to the same reference target.
Parameters:
iReverse iterator to compare with.
Returns:
true if both iterators refer to the same target, false otherwise.
function reverse_iterator [1/3]#
Default constructs a reverse iterator with a null link.
function reverse_iterator [2/3]#
Constructs a reverse iterator that points to the specified list link.
Parameters:
lPointer to the list link that the reverse iterator will refer to.
function reverse_iterator [3/3]#
Copy constructs a reverse iterator from another reverse iterator.
Parameters:
iReference to the reverse iterator to copy.
function ~reverse_iterator#
Destroys the reverse iterator.