Class SBCReferencePointerIndexer#
template <class ReferenceTargetType, class ReferenceToTargetType>
ClassList > SBCReferencePointerIndexer
#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 () |
|
SBCReferencePointerIndexer (unsigned int initialSize) |
|
SBCReferencePointerIndexer (const SBCReferencePointerIndexer & pointerIndex) |
|
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
ReferenceTargetType * | getReferenceTarget (unsigned int referenceTargetIndex) const |
ReferenceToTargetType * | getReferenceToTarget (unsigned int referenceToTargetIndex) const |
ReferenceTargetType * | operator[] (unsigned int referenceTargetIndex) const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
virtual | ~SBCReferencePointerIndexer () |
Public Static Functions#
Type | Name |
---|---|
void | operator delete (void * p, std::size_t size) |
void * | operator new (std::size_t size) |
Detailed Description#
The class SBCReferenceOwnerIndexer implements an owner which references targets (or references to targets) through an indexer. 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]#
function SBCReferencePointerIndexer [2/3]#
function SBCReferencePointerIndexer [3/3]#
inline SBCReferencePointerIndexer::SBCReferencePointerIndexer (
const SBCReferencePointerIndexer & pointerIndex
)
function begin [1/2]#
function begin [2/2]#
function end [1/2]#
function end [2/2]#
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