Web Analytics Made Easy - Statcounter
Skip to content

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.

SBCReferenceList::const_iterator::const_iterator () 


function const_iterator [2/3]#

Constructs a const iterator that points to the specified list link.

SBCReferenceList::const_iterator::const_iterator (
    SBCReferenceListLink * referenceListLink
) 

Parameters:

  • l Pointer 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.

SBCReferenceList::const_iterator::const_iterator (
    const const_iterator & i
) 

Parameters:

  • i Reference to the const iterator to copy.

function getReferenceTarget#

Retrieves the reference target associated with this const iterator.

SBCReferenceTarget * SBCReferenceList::const_iterator::getReferenceTarget () const

Returns:

Pointer to the reference target.


function getReferenceToTarget#

Retrieves the reference-to-target object associated with this const iterator.

SBCReferenceToTarget * SBCReferenceList::const_iterator::getReferenceToTarget () const

Returns:

Pointer to the reference-to-target object.


function operator!=#

Checks if two const iterators refer to different reference targets.

bool SBCReferenceList::const_iterator::operator!= (
    const const_iterator & i
) noexcept const

Parameters:

  • i Const 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.

SBCReferenceTarget * SBCReferenceList::const_iterator::operator* () const

Returns:

Pointer to the reference target.


function operator++#

Advances the const iterator to the next element in the list.

const_iterator & SBCReferenceList::const_iterator::operator++ () 

Returns:

Reference to the incremented const iterator.


function operator++#

Advances the const iterator to the next element, returning the original iterator.

const_iterator SBCReferenceList::const_iterator::operator++ (
    int
) 

Returns:

Const iterator value before the increment.


function operator--#

Moves the const iterator to the previous element in the list.

const_iterator & SBCReferenceList::const_iterator::operator-- () 

Returns:

Reference to the decremented const iterator.


function operator--#

Moves the const iterator to the previous element, returning the original iterator.

const_iterator SBCReferenceList::const_iterator::operator-- (
    int
) 

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:

  • l Pointer to the new list link.

Returns:

Reference to this const iterator after assignment.


function operator=#

Copies the const iterator from another const iterator.

const_iterator & SBCReferenceList::const_iterator::operator= (
    const const_iterator & i
) 

Parameters:

  • i Const 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.

bool SBCReferenceList::const_iterator::operator== (
    const const_iterator & i
) noexcept const

Parameters:

  • i Const iterator to compare with.

Returns:

true if both iterators refer to the same target, false otherwise.


function ~const_iterator#

Destroys the const iterator.

virtual SBCReferenceList::const_iterator::~const_iterator ()