Web Analytics Made Easy - Statcounter
Skip to content

Class SBCReferencePointerIndexer#

template <class ReferenceTargetType, class ReferenceToTargetType>

ClassList > SBCReferencePointerIndexer

The class SBCReferenceOwnerIndexer implements an owner which references targets (or references to targets) through an indexer. More...

  • #include "SBCReferencePointerIndexer.hpp"

Inherits the following classes: SBCReferenceOwnerIndexer

Classes#

Type Name
class const_iterator
class const_reverse_iterator
class iterator
class reverse_iterator

Public Functions#

Type Name
SBCReferencePointerIndexer ()
Builds a SAMSON pointer indexer.
SBCReferencePointerIndexer (unsigned int initialSize)
Builds a SAMSON pointer indexer of size initialSize .
SBCReferencePointerIndexer (const SBCReferencePointerIndexer & pointerIndex)
Copy constructor.
iterator begin ()
Returns an iterator that points to the beginning of the pointer indexer.
const_iterator begin () const
Returns a const iterator that points to the beginning of the pointer indexer.
iterator end ()
Returns an iterator that points to the end of the pointer indexer.
const_iterator end () const
Returns a const iterator that points to the end of the pointer indexer.
ReferenceTargetType * getReferenceTarget (unsigned int referenceTargetIndex) const
ReferenceToTargetType * getReferenceToTarget (unsigned int referenceToTargetIndex) const
ReferenceTargetType * operator[] (unsigned int referenceTargetIndex) const
reverse_iterator rbegin ()
Returns a reverse iterator that points to the reverse beginning of the pointer indexer.
const_reverse_iterator rbegin () const
Returns a const reverse iterator that points to the reverse beginning of the pointer indexer.
reverse_iterator rend ()
Returns a reverse iterator that points to the reverse end of the pointer indexer.
const_reverse_iterator rend () const
Returns a const reverse iterator that points to the reverse end of the pointer indexer.
virtual ~SBCReferencePointerIndexer ()
Destructor.

Public Static Functions#

Type Name
void operator delete (void * p, std::size_t size)
The new operator.
void * operator new (std::size_t size)

Detailed Description#

Finding the index associated to a target takes an almost constant time, while accessing a target given its index takes constant time.

Short name: SBPointerIndexer

Public Functions Documentation#

function SBCReferencePointerIndexer [1/3]#

Builds a SAMSON pointer indexer.

inline SBCReferencePointerIndexer::SBCReferencePointerIndexer () 


function SBCReferencePointerIndexer [2/3]#

Builds a SAMSON pointer indexer of size initialSize .

inline SBCReferencePointerIndexer::SBCReferencePointerIndexer (
    unsigned int initialSize
) 


function SBCReferencePointerIndexer [3/3]#

Copy constructor.

inline SBCReferencePointerIndexer::SBCReferencePointerIndexer (
    const SBCReferencePointerIndexer & pointerIndex
) 


function begin [1/2]#

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

inline iterator SBCReferencePointerIndexer::begin () 


function begin [2/2]#

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

inline const_iterator SBCReferencePointerIndexer::begin () const


function end [1/2]#

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

inline iterator SBCReferencePointerIndexer::end () 


function end [2/2]#

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

inline const_iterator SBCReferencePointerIndexer::end () const


function getReferenceTarget#

inline ReferenceTargetType * SBCReferencePointerIndexer::getReferenceTarget (
    unsigned int referenceTargetIndex
) const

function getReferenceToTarget#

inline ReferenceToTargetType * SBCReferencePointerIndexer::getReferenceToTarget (
    unsigned int referenceToTargetIndex
) const

function operator[]#

inline ReferenceTargetType * SBCReferencePointerIndexer::operator[] (
    unsigned int referenceTargetIndex
) const

function rbegin [1/2]#

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

inline reverse_iterator SBCReferencePointerIndexer::rbegin () 


function rbegin [2/2]#

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

inline const_reverse_iterator SBCReferencePointerIndexer::rbegin () const


function rend [1/2]#

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

inline reverse_iterator SBCReferencePointerIndexer::rend () 


function rend [2/2]#

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

inline const_reverse_iterator SBCReferencePointerIndexer::rend () const


function ~SBCReferencePointerIndexer#

Destructor.

inline virtual SBCReferencePointerIndexer::~SBCReferencePointerIndexer () 


Public Static Functions Documentation#

function operator delete#

The new operator.

static inline void SBCReferencePointerIndexer::operator delete (
    void * p,
    std::size_t size
) 


function operator new#

static inline void * SBCReferencePointerIndexer::operator new (
    std::size_t size
)