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