Web Analytics Made Easy - Statcounter
Skip to content

Class SBCReferencePointerList#

template <class ReferenceTargetType, class ReferenceToTargetType>

ClassList > SBCReferencePointerList

The class SBCReferencePointerList is a convenience class used to reference a list of targets of a given type that derives fromSBCReferenceTarget .More...

  • #include "SBCReferencePointerList.hpp"

Inherits the following classes: SBCReferenceOwnerList

Classes#

Type Name
class const_iterator
class const_reverse_iterator
class iterator
class reverse_iterator

Public Types#

Type Name
typedef ReferenceTargetType TargetType

Public Functions#

Type Name
SBCReferencePointerList ()
Builds a SAMSON pointer list.
SBCReferencePointerList (const SBCReferencePointerList & pointerList)
Copy constructor.
iterator begin ()
Returns an iterator that points to the beginning of the pointer list.
const_iterator begin () const
Returns a const iterator that points to the beginning of the pointer list.
iterator end ()
Returns an iterator that points to the end of the pointer list.
const_iterator end () const
Returns a const iterator that points to the end of the pointer list.
iterator erase (iterator position)
iterator erase (iterator first, iterator last)
iterator find (ReferenceTargetType * referenceTarget)
const_iterator find (ReferenceTargetType * referenceTarget) const
ReferenceTargetType * first () const
ReferenceTargetType * last () const
reverse_iterator rbegin ()
Returns a reverse iterator that points to the reverse beginning of the pointer list.
const_reverse_iterator rbegin () const
Returns a const reverse iterator that points to the reverse beginning of the pointer list.
reverse_iterator rend ()
Returns a reverse iterator that points to the reverse end of the pointer list.
const_reverse_iterator rend () const
Returns a const reverse iterator that points to the reverse end of the pointer list.
virtual ~SBCReferencePointerList ()
Destructor.

Detailed Description#

Convenience functions are provided to cast both to the target type and to the target reference type.

Short name: SBPointerList

Public Types Documentation#

typedef TargetType#

typedef ReferenceTargetType SBCReferencePointerList< ReferenceTargetType, ReferenceToTargetType >::TargetType;

Public Functions Documentation#

function SBCReferencePointerList [1/2]#

Builds a SAMSON pointer list.

inline SBCReferencePointerList::SBCReferencePointerList () 


function SBCReferencePointerList [2/2]#

Copy constructor.

inline SBCReferencePointerList::SBCReferencePointerList (
    const SBCReferencePointerList & pointerList
) 


function begin [1/2]#

Returns an iterator that points to the beginning of the pointer list.

inline iterator SBCReferencePointerList::begin () 


function begin [2/2]#

Returns a const iterator that points to the beginning of the pointer list.

inline const_iterator SBCReferencePointerList::begin () const


function end [1/2]#

Returns an iterator that points to the end of the pointer list.

inline iterator SBCReferencePointerList::end () 


function end [2/2]#

Returns a const iterator that points to the end of the pointer list.

inline const_iterator SBCReferencePointerList::end () const


function erase [1/2]#

inline iterator SBCReferencePointerList::erase (
    iterator position
) 

function erase [2/2]#

inline iterator SBCReferencePointerList::erase (
    iterator first,
    iterator last
) 

function find [1/2]#

inline iterator SBCReferencePointerList::find (
    ReferenceTargetType * referenceTarget
) 

function find [2/2]#

inline const_iterator SBCReferencePointerList::find (
    ReferenceTargetType * referenceTarget
) const

function first#

inline ReferenceTargetType * SBCReferencePointerList::first () const

function last#

inline ReferenceTargetType * SBCReferencePointerList::last () const

function rbegin [1/2]#

Returns a reverse iterator that points to the reverse beginning of the pointer list.

inline reverse_iterator SBCReferencePointerList::rbegin () 


function rbegin [2/2]#

Returns a const reverse iterator that points to the reverse beginning of the pointer list.

inline const_reverse_iterator SBCReferencePointerList::rbegin () const


function rend [1/2]#

Returns a reverse iterator that points to the reverse end of the pointer list.

inline reverse_iterator SBCReferencePointerList::rend () 


function rend [2/2]#

Returns a const reverse iterator that points to the reverse end of the pointer list.

inline const_reverse_iterator SBCReferencePointerList::rend () const


function ~SBCReferencePointerList#

Destructor.

inline virtual SBCReferencePointerList::~SBCReferencePointerList ()