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