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.
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.
function begin [2/2]#
Returns a const iterator that points to the beginning of the pointer list.
function end [1/2]#
Returns an iterator that points to the end of the pointer list.
function end [2/2]#
Returns a const iterator that points to the end of the pointer list.
function erase [1/2]#
function erase [2/2]#
function find [1/2]#
function find [2/2]#
function first#
function last#
function rbegin [1/2]#
Returns a reverse iterator that points to the reverse beginning of the pointer list.
function rbegin [2/2]#
Returns a const reverse iterator that points to the reverse beginning of the pointer list.
function rend [1/2]#
Returns a reverse iterator that points to the reverse end of the pointer list.
function rend [2/2]#
Returns a const reverse iterator that points to the reverse end of the pointer list.
function ~SBCReferencePointerList#
Destructor.