Predator  [unstable] git snapshot
Public Member Functions | Private Member Functions | Private Attributes
EntStore< TBaseEnt > Class Template Reference

#include <syments.hh>

Collaboration diagram for EntStore< TBaseEnt >:
Collaboration graph
[legend]

Public Member Functions

 EntStore ()
 EntStore (const EntStore &)
 ~EntStore ()
template<typename TId >
TId assignId (TBaseEnt *)
template<typename TId >
void assignId (TId id, TBaseEnt *)
template<typename TId >
void releaseEnt (TId id)
template<typename TId >
bool isValidEnt (TId id) const
template<typename TId >
TId lastId () const
template<typename TId >
bool outOfRange (const TId id) const
template<typename TId >
const TBaseEnt * getEntRO (TId id)
template<typename TId >
TBaseEnt * getEntRW (TId id)
template<class TEnt , typename TId >
void getEntRO (const TEnt **, TId id)
template<class TEnt , typename TId >
void getEntRW (TEnt **, TId id)

Private Member Functions

EntStoreoperator= (const EntStore &)

Private Attributes

std::vector< TBaseEnt * > ents_
EntCounterentCnt_

Detailed Description

template<class TBaseEnt>
class EntStore< TBaseEnt >

Definition at line 180 of file syments.hh.

Constructor & Destructor Documentation

EntStore ( )

Definition at line 277 of file syments.hh.

EntStore ( const EntStore< TBaseEnt > &  ref)
inline
~EntStore ( )
inline

Definition at line 300 of file syments.hh.

References RefCntLibBase::leave().

Member Function Documentation

TId assignId ( TBaseEnt *  ptr)
inline

Definition at line 223 of file syments.hh.

References CL_BREAK_IF.

void assignId ( TId  id,
TBaseEnt *  ptr 
)
inline

Definition at line 238 of file syments.hh.

References CL_BREAK_IF.

const TBaseEnt * getEntRO ( TId  id)
inline

Definition at line 312 of file syments.hh.

References CL_BREAK_IF.

void getEntRO ( const TEnt **  pEnt,
TId  id 
)
inline

Definition at line 337 of file syments.hh.

References CL_BREAK_IF.

TBaseEnt * getEntRW ( TId  id)
inline

Definition at line 325 of file syments.hh.

References RefCntLib< RCO_VIRTUAL >::requireExclusivity().

void getEntRW ( TEnt **  pEnt,
TId  id 
)
inline

Definition at line 351 of file syments.hh.

References CL_BREAK_IF.

bool isValidEnt ( TId  id) const
inline

Definition at line 268 of file syments.hh.

TId lastId ( ) const
inline

Definition at line 191 of file syments.hh.

References EntStore< TBaseEnt >::ents_.

EntStore& operator= ( const EntStore< TBaseEnt > &  )
private
bool outOfRange ( const TId  id) const
inline

Definition at line 197 of file syments.hh.

void releaseEnt ( TId  id)
inline

Definition at line 261 of file syments.hh.

References RefCntLibBase::leave().

Field Documentation

EntCounter* entCnt_
private

Definition at line 215 of file syments.hh.

Referenced by EntStore< TBaseEnt >::EntStore().

std::vector<TBaseEnt *> ents_
private

Definition at line 214 of file syments.hh.

Referenced by EntStore< TBaseEnt >::EntStore(), and EntStore< TBaseEnt >::lastId().


The documentation for this class was generated from the following file: