Xalan-C++ API Reference  1.12.0
Public Types | Public Member Functions | Public Attributes | List of all members
xalanc::XalanObjectCache< ObjectType, CreateFunctorType, DeleteFunctorType, ResetFunctorType > Class Template Reference

#include <xalanc/Include/XalanObjectCache.hpp>

Inheritance diagram for xalanc::XalanObjectCache< ObjectType, CreateFunctorType, DeleteFunctorType, ResetFunctorType >:
[legend]
Collaboration diagram for xalanc::XalanObjectCache< ObjectType, CreateFunctorType, DeleteFunctorType, ResetFunctorType >:
[legend]

Public Types

typedef XalanVector< ObjectType * > VectorType
 
typedef ObjectType CacheObjectType
 

Public Member Functions

 XalanObjectCache (MemoryManager &theManager, XalanSize_t initialListSize=0)
 
 ~XalanObjectCache ()
 
ObjectType * get ()
 
bool release (ObjectType *theInstance)
 
void reset ()
 

Public Attributes

CreateFunctorType m_createFunctor
 
DeleteFunctorType m_deleteFunctor
 
ResetFunctorType m_resetFunctor
 

Detailed Description

template<class ObjectType, class CreateFunctorType = DefaultCacheCreateFunctor<ObjectType>, class DeleteFunctorType = DeleteFunctor<ObjectType>, class ResetFunctorType = DefaultCacheResetFunctor<ObjectType>>
class xalanc::XalanObjectCache< ObjectType, CreateFunctorType, DeleteFunctorType, ResetFunctorType >

Definition at line 263 of file XalanObjectCache.hpp.

Member Typedef Documentation

◆ CacheObjectType

template<class ObjectType , class CreateFunctorType = DefaultCacheCreateFunctor<ObjectType>, class DeleteFunctorType = DeleteFunctor<ObjectType>, class ResetFunctorType = DefaultCacheResetFunctor<ObjectType>>
typedef ObjectType xalanc::XalanObjectCache< ObjectType, CreateFunctorType, DeleteFunctorType, ResetFunctorType >::CacheObjectType

Definition at line 269 of file XalanObjectCache.hpp.

◆ VectorType

template<class ObjectType , class CreateFunctorType = DefaultCacheCreateFunctor<ObjectType>, class DeleteFunctorType = DeleteFunctor<ObjectType>, class ResetFunctorType = DefaultCacheResetFunctor<ObjectType>>
typedef XalanVector<ObjectType*> xalanc::XalanObjectCache< ObjectType, CreateFunctorType, DeleteFunctorType, ResetFunctorType >::VectorType

Definition at line 267 of file XalanObjectCache.hpp.

Constructor & Destructor Documentation

◆ XalanObjectCache()

template<class ObjectType , class CreateFunctorType = DefaultCacheCreateFunctor<ObjectType>, class DeleteFunctorType = DeleteFunctor<ObjectType>, class ResetFunctorType = DefaultCacheResetFunctor<ObjectType>>
xalanc::XalanObjectCache< ObjectType, CreateFunctorType, DeleteFunctorType, ResetFunctorType >::XalanObjectCache ( MemoryManager &  theManager,
XalanSize_t  initialListSize = 0 
)
inlineexplicit

Definition at line 272 of file XalanObjectCache.hpp.

◆ ~XalanObjectCache()

template<class ObjectType , class CreateFunctorType = DefaultCacheCreateFunctor<ObjectType>, class DeleteFunctorType = DeleteFunctor<ObjectType>, class ResetFunctorType = DefaultCacheResetFunctor<ObjectType>>
xalanc::XalanObjectCache< ObjectType, CreateFunctorType, DeleteFunctorType, ResetFunctorType >::~XalanObjectCache ( )
inline

Definition at line 280 of file XalanObjectCache.hpp.

Member Function Documentation

◆ get()

template<class ObjectType , class CreateFunctorType = DefaultCacheCreateFunctor<ObjectType>, class DeleteFunctorType = DeleteFunctor<ObjectType>, class ResetFunctorType = DefaultCacheResetFunctor<ObjectType>>
ObjectType* xalanc::XalanObjectCache< ObjectType, CreateFunctorType, DeleteFunctorType, ResetFunctorType >::get ( )
inline

Definition at line 293 of file XalanObjectCache.hpp.

◆ release()

template<class ObjectType , class CreateFunctorType = DefaultCacheCreateFunctor<ObjectType>, class DeleteFunctorType = DeleteFunctor<ObjectType>, class ResetFunctorType = DefaultCacheResetFunctor<ObjectType>>
bool xalanc::XalanObjectCache< ObjectType, CreateFunctorType, DeleteFunctorType, ResetFunctorType >::release ( ObjectType *  theInstance)
inline

Definition at line 312 of file XalanObjectCache.hpp.

◆ reset()

template<class ObjectType , class CreateFunctorType = DefaultCacheCreateFunctor<ObjectType>, class DeleteFunctorType = DeleteFunctor<ObjectType>, class ResetFunctorType = DefaultCacheResetFunctor<ObjectType>>
void xalanc::XalanObjectCache< ObjectType, CreateFunctorType, DeleteFunctorType, ResetFunctorType >::reset ( )
inline

Definition at line 322 of file XalanObjectCache.hpp.

Member Data Documentation

◆ m_createFunctor

template<class ObjectType , class CreateFunctorType = DefaultCacheCreateFunctor<ObjectType>, class DeleteFunctorType = DeleteFunctor<ObjectType>, class ResetFunctorType = DefaultCacheResetFunctor<ObjectType>>
CreateFunctorType xalanc::XalanObjectCache< ObjectType, CreateFunctorType, DeleteFunctorType, ResetFunctorType >::m_createFunctor

Definition at line 327 of file XalanObjectCache.hpp.

◆ m_deleteFunctor

template<class ObjectType , class CreateFunctorType = DefaultCacheCreateFunctor<ObjectType>, class DeleteFunctorType = DeleteFunctor<ObjectType>, class ResetFunctorType = DefaultCacheResetFunctor<ObjectType>>
DeleteFunctorType xalanc::XalanObjectCache< ObjectType, CreateFunctorType, DeleteFunctorType, ResetFunctorType >::m_deleteFunctor

Definition at line 329 of file XalanObjectCache.hpp.

◆ m_resetFunctor

template<class ObjectType , class CreateFunctorType = DefaultCacheCreateFunctor<ObjectType>, class DeleteFunctorType = DeleteFunctor<ObjectType>, class ResetFunctorType = DefaultCacheResetFunctor<ObjectType>>
ResetFunctorType xalanc::XalanObjectCache< ObjectType, CreateFunctorType, DeleteFunctorType, ResetFunctorType >::m_resetFunctor

Definition at line 331 of file XalanObjectCache.hpp.


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