vegastrike  0.5.1.r1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SharedPool< T, RefcounterTraits > Class Template Reference

#include <SharedPool.h>

Classes

class  Reference
 

Public Types

typedef vsUMap< T, unsigned int > ReferenceCounter
 
typedef SharedPool< T,
RefcounterTraits > 
PoolType
 
typedef T ValueType
 
typedef RefcounterTraits RefocounterTraitsType
 

Public Member Functions

 SharedPool ()
 
 ~SharedPool ()
 
Reference get (const T &s)
 
Reference get ()
 

Static Public Member Functions

static PoolTypegetSingleton ()
 
static PoolTypegetSingletonPtr ()
 

Friends

class PoolType::Reference
 

Detailed Description

template<class T, class RefcounterTraits = vsHashComp< T >>
class SharedPool< T, RefcounterTraits >

Definition at line 13 of file SharedPool.h.

Member Typedef Documentation

template<class T, class RefcounterTraits = vsHashComp< T >>
typedef SharedPool< T, RefcounterTraits > SharedPool< T, RefcounterTraits >::PoolType

Definition at line 17 of file SharedPool.h.

template<class T, class RefcounterTraits = vsHashComp< T >>
typedef vsUMap< T, unsigned int > SharedPool< T, RefcounterTraits >::ReferenceCounter

Definition at line 16 of file SharedPool.h.

template<class T, class RefcounterTraits = vsHashComp< T >>
typedef RefcounterTraits SharedPool< T, RefcounterTraits >::RefocounterTraitsType

Definition at line 25 of file SharedPool.h.

template<class T, class RefcounterTraits = vsHashComp< T >>
typedef T SharedPool< T, RefcounterTraits >::ValueType

Definition at line 24 of file SharedPool.h.

Constructor & Destructor Documentation

template<typename T , typename RT >
SharedPool< T, RT >::SharedPool ( )

Definition at line 7 of file SharedPool.cpp.

template<typename T , typename RT >
SharedPool< T, RT >::~SharedPool ( )

Definition at line 20 of file SharedPool.cpp.

Member Function Documentation

template<class T, class RefcounterTraits = vsHashComp< T >>
Reference SharedPool< T, RefcounterTraits >::get ( const T &  s)
inline

Definition at line 172 of file SharedPool.h.

template<class T, class RefcounterTraits = vsHashComp< T >>
Reference SharedPool< T, RefcounterTraits >::get ( )
inline

Definition at line 177 of file SharedPool.h.

template<class T, class RefcounterTraits = vsHashComp< T >>
static PoolType& SharedPool< T, RefcounterTraits >::getSingleton ( )
inlinestatic

Definition at line 27 of file SharedPool.h.

template<class T, class RefcounterTraits = vsHashComp< T >>
static PoolType* SharedPool< T, RefcounterTraits >::getSingletonPtr ( )
inlinestatic

Definition at line 32 of file SharedPool.h.

Friends And Related Function Documentation

template<class T, class RefcounterTraits = vsHashComp< T >>
friend class PoolType::Reference
friend

Definition at line 181 of file SharedPool.h.


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