A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/group__ResourcePool.html below:

NCBI C++ ToolKit: ResourcePool

class   CObjFactory_New< TObjType >   Object factory for simple creation and deletion of the object. More...
  class   CObjPool< TObjType, TObjFactory >   General object pool. More...
  class   CObjPoolGuard< TObjPool >   Guard that can be used to automatically return object to the pool after leaving some scope. More...
  class   CObjFactory_NewParam< TObjType, TParamType >   Object factory for simple creation and deletion of the object with one parameter passed to object's constructor. More...
  class   CObjFactory_NewMethod< TObjType, TMethodClass >   Object factory for creation implemented by method of some class and simple deletion. More...
  class   CBVResourcePool< BV, Lock >   Resource pool for bit-vectors Bit-vector creation-destruction can be expensive, use pool to recycle used objects. More...
  struct   CResoursePool_NewClassFactory< Value >   Default class factory for resource pool (C++ new/delete) More...
  class   CResourcePool_Base< Value, Lock, CF >   General purpose resource pool (base class, sans default constructor arguments for maximum versatility). More...
  class   CResourcePool< Value, Lock, CF >   General purpose resource pool (standard version, requiring CF to have a default constructor). More...
  class   CResourcePoolGuard< Pool >   Guard object. More...
  class   CBucketPool< Value, Lock, RPool >   Bucket of resourse pools. More...
  typedef deque< TObjType * >  CObjPool< TObjType, TObjFactory >::TObjectsList   typedef TObjType  CObjPool< TObjType, TObjFactory >::TObjectType   Synonym to be able to use outside of the pool. More...
  typedef TObjPool::TObjectType  CObjPoolGuard< TObjPool >::TObjType   Type of object to protect. More...
  typedef TObjType *(TMethodClass::*  CObjFactory_NewMethod< TObjType, TMethodClass >::TMethod) (void)   typedef CResourcePool< BV, Lock >  CBVResourcePool< BV, Lock >::TParent   typedef Value  CResourcePool_Base< Value, Lock, CF >::TValue   typedef Lock  CResourcePool_Base< Value, Lock, CF >::TLock   typedef Lock::TReadLockGuard  CResourcePool_Base< Value, Lock, CF >::TReadLockGuard   typedef Lock::TWriteLockGuard  CResourcePool_Base< Value, Lock, CF >::TWriteLockGuard   typedef CF  CResourcePool_Base< Value, Lock, CF >::TClassFactory   typedef Value *  CResourcePool_Base< Value, Lock, CF >::TValuePtr   typedef deque< Value * >  CResourcePool_Base< Value, Lock, CF >::TPoolList   typedef CResourcePool_Base< Value, Lock, CF >  CResourcePool< Value, Lock, CF >::TBase   typedef TBase::TValue  CResourcePool< Value, Lock, CF >::TValue   typedef TBase::TLock  CResourcePool< Value, Lock, CF >::TLock   typedef TBase::TReadLockGuard  CResourcePool< Value, Lock, CF >::TReadLockGuard   typedef TBase::TWriteLockGuard  CResourcePool< Value, Lock, CF >::TWriteLockGuard   typedef TBase::TClassFactory  CResourcePool< Value, Lock, CF >::TClassFactory   typedef TBase::TValuePtr  CResourcePool< Value, Lock, CF >::TValuePtr   typedef TBase::TPoolList  CResourcePool< Value, Lock, CF >::TPoolList   typedef Value  CBucketPool< Value, Lock, RPool >::TValue   typedef Lock  CBucketPool< Value, Lock, RPool >::TLock   typedef Lock::TWriteLockGuard  CBucketPool< Value, Lock, RPool >::TWriteLockGuard   typedef RPool  CBucketPool< Value, Lock, RPool >::TResourcePool   typedef vector< TResourcePool * >  CBucketPool< Value, Lock, RPool >::TBucketVector     CObjPool< TObjType, TObjFactory >::CObjPool (size_t max_storage_size=size_t(-1))   Create object pool. More...
    CObjPool< TObjType, TObjFactory >::CObjPool (const TObjFactory &factory, size_t max_storage_size=size_t(-1))   Create object pool. More...
    CObjPool< TObjType, TObjFactory >::~CObjPool (void)   Destroy object pool and all objects it owns. More...
  TObjType *  CObjPool< TObjType, TObjFactory >::Get (void)   Get object from the pool, create if necessary. More...
  void  CObjPool< TObjType, TObjFactory >::Return (TObjType *obj)   Return object to the pool for future use. More...
  void  CObjPool< TObjType, TObjFactory >::Clear (void)   Delete all objects returned to the pool so far and clean it. More...
  size_t  CObjPool< TObjType, TObjFactory >::GetMaxStorageSize (void) const   Get maximum number of unused objects that can be stored in the pool. More...
  void  CObjPool< TObjType, TObjFactory >::SetMaxStorageSize (size_t max_storage_size)   Set maximum number of unused objects that can be stored in the pool. More...
    CObjPool< TObjType, TObjFactory >::CObjPool (const CObjPool &)   CObjPoolCObjPool< TObjType, TObjFactory >::operator= (const CObjPool &)     CObjPoolGuard< TObjPool >::CObjPoolGuard (TObjPool &pool)   Create guard and automatically acquire object from the pool. More...
    CObjPoolGuard< TObjPool >::CObjPoolGuard (TObjPool &pool, TObjType *object)   Create guard to automatically return given object to the pool. More...
    CObjPoolGuard< TObjPool >::~CObjPoolGuard (void)   TObjTypeCObjPoolGuard< TObjPool >::GetObject (void) const   Get pointer to protected object. More...
    CObjPoolGuard< TObjPool >::operator TObjType * (void) const   Automatic conversion to the pointer to protected object. More...
  TObjTypeCObjPoolGuard< TObjPool >::operator* (void) const   Automatic dereference to the protected object. More...
  TObjTypeCObjPoolGuard< TObjPool >::operator-> (void) const   Automatic dereference to the protected object. More...
  void  CObjPoolGuard< TObjPool >::Acquire (TObjType *object=NULL)   Return protected object (if any) to the pool and acquire new object for protection. More...
  TObjTypeCObjPoolGuard< TObjPool >::Release (void)   Release protected object without returning it to the pool. More...
  void  CObjPoolGuard< TObjPool >::Return (void)   Return protected object (if any) to the pool. More...
    CObjPoolGuard< TObjPool >::CObjPoolGuard (const CObjPoolGuard &)   CObjPoolGuardCObjPoolGuard< TObjPool >::operator= (const CObjPoolGuard &)   TObjType *  CObjFactory_New< TObjType >::CreateObject (void)   void  CObjFactory_New< TObjType >::DeleteObject (TObjType *obj)     CObjFactory_NewParam< TObjType, TParamType >::CObjFactory_NewParam (const TParamType &param)   TObjType *  CObjFactory_NewParam< TObjType, TParamType >::CreateObject (void)   void  CObjFactory_NewParam< TObjType, TParamType >::DeleteObject (TObjType *obj)     CObjFactory_NewMethod< TObjType, TMethodClass >::CObjFactory_NewMethod (TMethodClass *method_obj, TMethod method)   TObjType *  CObjFactory_NewMethod< TObjType, TMethodClass >::CreateObject (void)   void  CObjFactory_NewMethod< TObjType, TMethodClass >::DeleteObject (TObjType *obj)     CBVResourcePool< BV, Lock >::CBVResourcePool (bm::strategy strat=bm::BM_GAP)   BV *  CBVResourcePool< BV, Lock >::Get ()   Get bitvector Method clears the existing vector, so it looks like new. More...
  static Value *  CResoursePool_NewClassFactory< Value >::Create ()   static void  CResoursePool_NewClassFactory< Value >::Delete (Value *v)     CResourcePool_Base< Value, Lock, CF >::CResourcePool_Base (size_t capacity_upper_limit, const TClassFactory &cf)   Construction. More...
    CResourcePool_Base< Value, Lock, CF >::~CResourcePool_Base ()   size_t  CResourcePool_Base< Value, Lock, CF >::GetCapacityLimit () const   Return max pool size. More...
  void  CResourcePool_Base< Value, Lock, CF >::SetCapacityLimit (size_t capacity_upper_limit)   Set upper limit for pool capacity (everything above this is deleted) More...
  size_t  CResourcePool_Base< Value, Lock, CF >::GetSize () const   Get current pool size (number of objects in the pool) More...
  Value *  CResourcePool_Base< Value, Lock, CF >::Get ()   Get object from the pool. More...
  Value *  CResourcePool_Base< Value, Lock, CF >::GetIfAvailable ()   Get object from the pool if there is a vacancy, otherwise returns NULL. More...
  void  CResourcePool_Base< Value, Lock, CF >::Put (Value *v)   Put object into the pool. More...
  void  CResourcePool_Base< Value, Lock, CF >::Return (Value *v)   Value *  CResourcePool_Base< Value, Lock, CF >::Forget (Value *v)   Makes the pool to forget the object. More...
  void  CResourcePool_Base< Value, Lock, CF >::ForgetAll ()   Makes pool to forget all objects. More...
  void  CResourcePool_Base< Value, Lock, CF >::FreeAll ()   Free all pool objects. More...
  TPoolListCResourcePool_Base< Value, Lock, CF >::GetFreeList ()   Get internal list of free objects. More...
  const TPoolListCResourcePool_Base< Value, Lock, CF >::GetFreeList () const   Get internal list of free objects. More...
    CResourcePool_Base< Value, Lock, CF >::CResourcePool_Base (const CResourcePool_Base &)   CResourcePool_BaseCResourcePool_Base< Value, Lock, CF >::operator= (const CResourcePool_Base &)     CResourcePool< Value, Lock, CF >::CResourcePool (size_t capacity_upper_limit=0, const TClassFactory &cf=TClassFactory())     CResourcePool< Value, Lock, CF >::CResourcePool (const CResourcePool &)   CResourcePoolCResourcePool< Value, Lock, CF >::operator= (const CResourcePool &)     CResourcePoolGuard< Pool >::CResourcePoolGuard (Pool &pool, typename Pool::TValue *v)     CResourcePoolGuard< Pool >::~CResourcePoolGuard ()   Pool::TValue *  CResourcePoolGuard< Pool >::Release ()   Return the pointer to the caller, not to the pool. More...
  Pool::TValue *  CResourcePoolGuard< Pool >::Get ()   Get the protected pointer. More...
  void  CResourcePoolGuard< Pool >::Return ()   Return the protected object back to the pool. More...
    CResourcePoolGuard< Pool >::CResourcePoolGuard (const CResourcePoolGuard &)   CResourcePoolGuardCResourcePoolGuard< Pool >::operator= (const CResourcePoolGuard &)     CBucketPool< Value, Lock, RPool >::CBucketPool (size_t bucket_ini=0, size_t resource_pool_capacity_limit=0)   Construction. More...
    CBucketPool< Value, Lock, RPool >::~CBucketPool ()   void  CBucketPool< Value, Lock, RPool >::FreeAllPools ()   Free all objects in all pools. More...
  TResourcePoolCBucketPool< Value, Lock, RPool >::GetResourcePool (size_t backet)   Get resource pool for the specified backet. More...
  const TBucketVectorCBucketPool< Value, Lock, RPool >::GetBucketVector () const     CBucketPool< Value, Lock, RPool >::CBucketPool (const CBucketPool &)   CBucketPoolCBucketPool< Value, Lock, RPool >::operator= (const CBucketPool &)   void  CBucketPool< Value, Lock, RPool >::x_FreeAll_NoLock ()   size_t  CObjPool< TObjType, TObjFactory >::m_MaxStorage   Maximum number of unused objects that can be stored in the pool. More...
  TObjFactory  CObjPool< TObjType, TObjFactory >::m_Factory   Object factory. More...
  CSpinLock  CObjPool< TObjType, TObjFactory >::m_ObjLock   Lock object to change the pool. More...
  TObjectsList  CObjPool< TObjType, TObjFactory >::m_FreeObjects   List of unused objects. More...
  TObjPool &  CObjPoolGuard< TObjPool >::m_Pool   Pool this guard is attached to. More...
  TObjTypeCObjPoolGuard< TObjPool >::m_Object   Protected object. More...
  TParamType  CObjFactory_NewParam< TObjType, TParamType >::m_Param   Parameter value that will be passed to constructor of every new object. More...
  TMethodClass *  CObjFactory_NewMethod< TObjType, TMethodClass >::m_MethodObj   Object which method will be called to create new object. More...
  TMethod  CObjFactory_NewMethod< TObjType, TMethodClass >::m_Method   Method to call to create new object. More...
  bm::strategy  CBVResourcePool< BV, Lock >::m_Strat   bitset making strategy More...
  TPoolList  CResourcePool_Base< Value, Lock, CF >::m_FreeObjects   TLock  CResourcePool_Base< Value, Lock, CF >::m_Lock   TClassFactory  CResourcePool_Base< Value, Lock, CF >::m_CF   size_t  CResourcePool_Base< Value, Lock, CF >::m_UpperLimit   Upper limit how much to pool. More...
  Pool &  CResourcePoolGuard< Pool >::m_Pool   Pool::TValue *  CResourcePoolGuard< Pool >::m_Value   TBucketVector  CBucketPool< Value, Lock, RPool >::m_Bucket   TLock  CBucketPool< Value, Lock, RPool >::m_Lock   size_t  CBucketPool< Value, Lock, RPool >::m_ResourcePoolUpperLimit   ◆ TBase

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 263 of file resource_pool.hpp.

◆ TBucketVector

template<class Value , class Lock = CNoLock, class RPool = CResourcePool<Value, Lock>>

Definition at line 342 of file resource_pool.hpp.

◆ TClassFactory [1/2]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 80 of file resource_pool.hpp.

◆ TClassFactory [2/2]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 268 of file resource_pool.hpp.

◆ TLock [1/3]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 77 of file resource_pool.hpp.

◆ TLock [2/3]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 265 of file resource_pool.hpp.

◆ TLock [3/3]

template<class Value , class Lock = CNoLock, class RPool = CResourcePool<Value, Lock>>

Definition at line 339 of file resource_pool.hpp.

◆ TMethod

template<class TObjType , class TMethodClass >

Definition at line 354 of file obj_pool.hpp.

◆ TObjectsList

template<class TObjType , class TObjFactory = CObjFactory_New<TObjType>>

Definition at line 68 of file obj_pool.hpp.

◆ TObjectType

template<class TObjType , class TObjFactory = CObjFactory_New<TObjType>>

Synonym to be able to use outside of the pool.

Definition at line 70 of file obj_pool.hpp.

◆ TObjType

template<class TObjPool >

◆ TParent

template<class BV , class Lock = CNoLock>

Definition at line 51 of file bitset_pool.hpp.

◆ TPoolList [1/2]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 82 of file resource_pool.hpp.

◆ TPoolList [2/2]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 270 of file resource_pool.hpp.

◆ TReadLockGuard [1/2]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 78 of file resource_pool.hpp.

◆ TReadLockGuard [2/2]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 266 of file resource_pool.hpp.

◆ TResourcePool

template<class Value , class Lock = CNoLock, class RPool = CResourcePool<Value, Lock>>

Definition at line 341 of file resource_pool.hpp.

◆ TValue [1/3]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 76 of file resource_pool.hpp.

◆ TValue [2/3]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 264 of file resource_pool.hpp.

◆ TValue [3/3]

template<class Value , class Lock = CNoLock, class RPool = CResourcePool<Value, Lock>>

Definition at line 338 of file resource_pool.hpp.

◆ TValuePtr [1/2]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 81 of file resource_pool.hpp.

◆ TValuePtr [2/2]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 269 of file resource_pool.hpp.

◆ TWriteLockGuard [1/3]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 79 of file resource_pool.hpp.

◆ TWriteLockGuard [2/3]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 267 of file resource_pool.hpp.

◆ TWriteLockGuard [3/3]

template<class Value , class Lock = CNoLock, class RPool = CResourcePool<Value, Lock>>

Definition at line 340 of file resource_pool.hpp.

◆ Acquire()

template<class TObjPool >

◆ CBucketPool() [1/2]

template<class Value , class Lock = CNoLock, class RPool = CResourcePool<Value, Lock>>

◆ CBucketPool() [2/2]

template<class Value , class Lock = CNoLock, class RPool = CResourcePool<Value, Lock>>

CBucketPool< Value, Lock, RPool >::CBucketPool ( size_t  bucket_ini = 0, size_t  resource_pool_capacity_limit = 0  ) inline ◆ CBVResourcePool()

template<class BV , class Lock = CNoLock>

Definition at line 54 of file bitset_pool.hpp.

◆ Clear()

template<class TObjType , class TObjFactory = CObjFactory_New<TObjType>>

void CObjPool< TObjType, TObjFactory >::Clear ( void  ) inline ◆ CObjFactory_NewMethod()

template<class TObjType , class TMethodClass >

Parameters
method_obj Object which method will be called to create new object method Method to call to create new object

Definition at line 360 of file obj_pool.hpp.

◆ CObjFactory_NewParam()

template<class TObjType , class TParamType >

Parameters
param Parameter value that will be passed to constructor of every new object.

Definition at line 329 of file obj_pool.hpp.

◆ CObjPool() [1/3]

template<class TObjType , class TObjFactory = CObjFactory_New<TObjType>>

◆ CObjPool() [2/3]

template<class TObjType , class TObjFactory = CObjFactory_New<TObjType>>

CObjPool< TObjType, TObjFactory >::CObjPool ( const TObjFactory &  factory, size_t  max_storage_size = size_t(-1)  ) inline

Create object pool.

Parameters
factory Object factory implementing creation/deletion strategy max_storage_size Maximum number of unused objects that can be stored in the pool. Given default effectively means unlimited storage.

Definition at line 88 of file obj_pool.hpp.

◆ CObjPool() [3/3]

template<class TObjType , class TObjFactory = CObjFactory_New<TObjType>>

CObjPool< TObjType, TObjFactory >::CObjPool ( size_t  max_storage_size = size_t(-1) ) inline

Create object pool.

Parameters
max_storage_size Maximum number of unused objects that can be stored in the pool. Given default effectively means unlimited storage.

Definition at line 77 of file obj_pool.hpp.

◆ CObjPoolGuard() [1/3]

template<class TObjPool >

◆ CObjPoolGuard() [2/3]

template<class TObjPool >

Create guard and automatically acquire object from the pool.

Definition at line 204 of file obj_pool.hpp.

◆ CObjPoolGuard() [3/3]

template<class TObjPool >

Create guard to automatically return given object to the pool.

Parameters
pool Pool to return object to object Object to protect. Parameter can be NULL, in this case no object is acquired and protected on construction, but can be passed to the guard later via Acquire().

Definition at line 217 of file obj_pool.hpp.

◆ Create() ◆ CreateObject() [1/3] ◆ CreateObject() [2/3]

template<class TObjType , class TParamType >

◆ CreateObject() [3/3]

template<class TObjType , class TMethodClass >

◆ CResourcePool() [1/2]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

◆ CResourcePool() [2/2]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 272 of file resource_pool.hpp.

◆ CResourcePool_Base() [1/2]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

◆ CResourcePool_Base() [2/2]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Construction.

Parameters
upper_limit Max pool size. Everything coming to pool above this limit is destroyed right away. 0 - upper limit not set

Definition at line 91 of file resource_pool.hpp.

◆ CResourcePoolGuard() [1/2] ◆ CResourcePoolGuard() [2/2] ◆ Delete() ◆ DeleteObject() [1/3] ◆ DeleteObject() [2/3]

template<class TObjType , class TParamType >

Definition at line 338 of file obj_pool.hpp.

◆ DeleteObject() [3/3]

template<class TObjType , class TMethodClass >

Definition at line 371 of file obj_pool.hpp.

◆ Forget()

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Makes the pool to forget the object.

Method scans the free objects list, finds the object and removes it from the structure. It is important that the object is not deleted and it is responsibility of the caller to destroy it.

Returns
NULL if object does not belong to the pool or object's pointer otherwise.

Definition at line 185 of file resource_pool.hpp.

Referenced by CQueryParserEnv::ForgetPoolNode(), and CQueryParserEnv::ForgetPoolNodes().

◆ ForgetAll()

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

◆ FreeAll()

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

◆ FreeAllPools()

template<class Value , class Lock = CNoLock, class RPool = CResourcePool<Value, Lock>>

void CBucketPool< Value, Lock, RPool >::FreeAllPools ( ) inline ◆ Get() [1/4]

template<class BV , class Lock = CNoLock>

◆ Get() [2/4]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

◆ Get() [3/4] ◆ Get() [4/4]

template<class TObjType , class TObjFactory = CObjFactory_New<TObjType>>

TObjType* CObjPool< TObjType, TObjFactory >::Get ( void  ) inline ◆ GetBucketVector()

template<class Value , class Lock = CNoLock, class RPool = CResourcePool<Value, Lock>>

◆ GetCapacityLimit()

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

◆ GetFreeList() [1/2]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

◆ GetFreeList() [2/2]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Get internal list of free objects.

No MT sync here !

Definition at line 237 of file resource_pool.hpp.

◆ GetIfAvailable()

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

◆ GetMaxStorageSize()

template<class TObjType , class TObjFactory = CObjFactory_New<TObjType>>

size_t CObjPool< TObjType, TObjFactory >::GetMaxStorageSize ( void  ) const inline

Get maximum number of unused objects that can be stored in the pool.

0 means unlimited storage.

Definition at line 154 of file obj_pool.hpp.

◆ GetObject()

template<class TObjPool >

◆ GetResourcePool()

template<class Value , class Lock = CNoLock, class RPool = CResourcePool<Value, Lock>>

Get resource pool for the specified backet.

Backet grows automatically upon request

Definition at line 400 of file resource_pool.hpp.

References CBucketPool< Value, Lock, RPool >::m_Bucket, CBucketPool< Value, Lock, RPool >::m_Lock, and CBucketPool< Value, Lock, RPool >::m_ResourcePoolUpperLimit.

Referenced by CBV_PoolBlockAlloc< BA, Lock >::allocate(), CBV_PoolBlockAlloc< BA, Lock >::deallocate(), and CBV_PoolBlockAlloc< BA, Lock >::GetPool().

◆ GetSize()

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Get current pool size (number of objects in the pool)

Definition at line 111 of file resource_pool.hpp.

◆ operator TObjType *()

template<class TObjPool >

◆ operator*()

template<class TObjPool >

◆ operator->()

template<class TObjPool >

◆ operator=() [1/6]

template<class Value , class Lock = CNoLock, class RPool = CResourcePool<Value, Lock>>

◆ operator=() [2/6]

template<class TObjType , class TObjFactory = CObjFactory_New<TObjType>>

◆ operator=() [3/6]

template<class TObjPool >

◆ operator=() [4/6]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

◆ operator=() [5/6]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

◆ operator=() [6/6] ◆ Put()

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

◆ Release() [1/2] ◆ Release() [2/2]

template<class TObjPool >

Release protected object without returning it to the pool.

After calling to this method it is caller responsibility to return object to the pool.

Returns
Object that was protected

Definition at line 272 of file obj_pool.hpp.

References CObjPoolGuard< TObjPool >::m_Object, and NULL.

◆ Return() [1/4] ◆ Return() [2/4]

template<class TObjType , class TObjFactory = CObjFactory_New<TObjType>>

void CObjPool< TObjType, TObjFactory >::Return ( TObjType *  obj ) inline ◆ Return() [3/4]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

◆ Return() [4/4]

template<class TObjPool >

◆ SetCapacityLimit()

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

void CResourcePool_Base< Value, Lock, CF >::SetCapacityLimit ( size_t  capacity_upper_limit ) inline

Set upper limit for pool capacity (everything above this is deleted)

Definition at line 105 of file resource_pool.hpp.

◆ SetMaxStorageSize()

template<class TObjType , class TObjFactory = CObjFactory_New<TObjType>>

void CObjPool< TObjType, TObjFactory >::SetMaxStorageSize ( size_t  max_storage_size ) inline

Set maximum number of unused objects that can be stored in the pool.

0 means unlimited storage.

Definition at line 161 of file obj_pool.hpp.

◆ x_FreeAll_NoLock()

template<class Value , class Lock = CNoLock, class RPool = CResourcePool<Value, Lock>>

void CBucketPool< Value, Lock, RPool >::x_FreeAll_NoLock ( ) inlineprivate ◆ ~CBucketPool()

template<class Value , class Lock = CNoLock, class RPool = CResourcePool<Value, Lock>>

◆ ~CObjPool()

template<class TObjType , class TObjFactory = CObjFactory_New<TObjType>>

Destroy object pool and all objects it owns.

Definition at line 95 of file obj_pool.hpp.

◆ ~CObjPoolGuard()

template<class TObjPool >

◆ ~CResourcePool_Base()

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 96 of file resource_pool.hpp.

◆ ~CResourcePoolGuard() ◆ m_Bucket

template<class Value , class Lock = CNoLock, class RPool = CResourcePool<Value, Lock>>

Definition at line 430 of file resource_pool.hpp.

Referenced by CBucketPool< Value, Lock, RPool >::CBucketPool(), CBucketPool< Value, Lock, RPool >::FreeAllPools(), CBucketPool< Value, Lock, RPool >::GetBucketVector(), CBucketPool< Value, Lock, RPool >::GetResourcePool(), and CBucketPool< Value, Lock, RPool >::x_FreeAll_NoLock().

◆ m_CF

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

◆ m_Factory

template<class TObjType , class TObjFactory = CObjFactory_New<TObjType>>

TObjFactory CObjPool< TObjType, TObjFactory >::m_Factory private ◆ m_FreeObjects [1/2]

template<class TObjType , class TObjFactory = CObjFactory_New<TObjType>>

◆ m_FreeObjects [2/2]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 247 of file resource_pool.hpp.

Referenced by CResourcePool_Base< CTreeNode, CNoLock, CResoursePool_NewClassFactory< CTreeNode > >::Forget(), CResourcePool_Base< CTreeNode, CNoLock, CResoursePool_NewClassFactory< CTreeNode > >::ForgetAll(), CResourcePool_Base< CTreeNode, CNoLock, CResoursePool_NewClassFactory< CTreeNode > >::FreeAll(), CResourcePool_Base< CTreeNode, CNoLock, CResoursePool_NewClassFactory< CTreeNode > >::Get(), CResourcePool_Base< CTreeNode, CNoLock, CResoursePool_NewClassFactory< CTreeNode > >::GetFreeList(), CResourcePool_Base< CTreeNode, CNoLock, CResoursePool_NewClassFactory< CTreeNode > >::GetIfAvailable(), CResourcePool_Base< CTreeNode, CNoLock, CResoursePool_NewClassFactory< CTreeNode > >::GetSize(), and CResourcePool_Base< CTreeNode, CNoLock, CResoursePool_NewClassFactory< CTreeNode > >::Put().

◆ m_Lock [1/2]

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

Definition at line 248 of file resource_pool.hpp.

Referenced by CResourcePool_Base< CTreeNode, CNoLock, CResoursePool_NewClassFactory< CTreeNode > >::Forget(), CResourcePool_Base< CTreeNode, CNoLock, CResoursePool_NewClassFactory< CTreeNode > >::ForgetAll(), CResourcePool_Base< CTreeNode, CNoLock, CResoursePool_NewClassFactory< CTreeNode > >::FreeAll(), CResourcePool_Base< CTreeNode, CNoLock, CResoursePool_NewClassFactory< CTreeNode > >::Get(), CResourcePool_Base< CTreeNode, CNoLock, CResoursePool_NewClassFactory< CTreeNode > >::GetIfAvailable(), CResourcePool_Base< CTreeNode, CNoLock, CResoursePool_NewClassFactory< CTreeNode > >::GetSize(), and CResourcePool_Base< CTreeNode, CNoLock, CResoursePool_NewClassFactory< CTreeNode > >::Put().

◆ m_Lock [2/2]

template<class Value , class Lock = CNoLock, class RPool = CResourcePool<Value, Lock>>

◆ m_MaxStorage

template<class TObjType , class TObjFactory = CObjFactory_New<TObjType>>

size_t CObjPool< TObjType, TObjFactory >::m_MaxStorage private ◆ m_Method

template<class TObjType , class TMethodClass >

◆ m_MethodObj

template<class TObjType , class TMethodClass >

◆ m_Object

template<class TObjPool >

◆ m_ObjLock

template<class TObjType , class TObjFactory = CObjFactory_New<TObjType>>

◆ m_Param

template<class TObjType , class TParamType >

◆ m_Pool [1/2]

template<class TObjPool >

◆ m_Pool [2/2] ◆ m_ResourcePoolUpperLimit

template<class Value , class Lock = CNoLock, class RPool = CResourcePool<Value, Lock>>

size_t CBucketPool< Value, Lock, RPool >::m_ResourcePoolUpperLimit protected ◆ m_Strat

template<class BV , class Lock = CNoLock>

◆ m_UpperLimit

template<class Value , class Lock = CNoLock, class CF = CResoursePool_NewClassFactory<Value>>

◆ m_Value

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4