![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Template implementation iproc::TILockedProducer buffering objects in memory cache. More...
#include <TMemCachedProducerComp.h>
Public Types | |
typedef icomp::CComponentBase | BaseClass |
typedef TILockedProducer< Key, CacheObject > | LockedProducerType |
Public Member Functions | |
virtual const CacheObject * | ProduceLockedObject (const Key &key) |
Begin of accessing to cached element. | |
virtual void | UnlockObject (const CacheObject *objectPtr) |
End of accessing to cached element. | |
![]() | |
CComponentBase () | |
Create component and assign it to specific context. | |
CComponentBase (const CComponentBase &)=delete | |
CComponentBase & | operator= (const CComponentBase &)=delete |
virtual const ICompositeComponent * | GetParentComponent (bool ownerOnly=false) const |
Get parent of this component. | |
virtual void * | GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="") |
Get access to specified component interface. | |
virtual const IComponentContext * | GetComponentContext () const |
Get access to component context describing all application-specified component information loaded from components registry. | |
virtual void | SetComponentContext (const IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner) |
Set component context of this component. | |
![]() | |
![]() |
Protected Member Functions | |
void | CleanElementList () |
Remove elements from list if cumulated weight is above defined maximum. | |
![]() | |
bool | IsComponentActive () const |
Check if component is active. | |
virtual void | OnComponentCreated () |
virtual void | OnComponentDestroyed () |
virtual const IRealComponentStaticInfo & | GetComponentStaticInfo () const =0 |
Get access to static info of this component. | |
Additional Inherited Members | |
![]() | |
static const IRealComponentStaticInfo & | InitStaticInfo (IComponent *componentPtr) |
static QByteArray | GetComponentId (const IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray()) |
Template implementation iproc::TILockedProducer buffering objects in memory cache.
As a source of produced object instances some slave implementation is used.
Definition at line 26 of file TMemCachedProducerComp.h.
icomp::CComponentBase iproc::TMemCachedProducerComp< Key, CacheObject >::BaseClass |
Definition at line 31 of file TMemCachedProducerComp.h.
TILockedProducer<Key, CacheObject> iproc::TMemCachedProducerComp< Key, CacheObject >::LockedProducerType |
Definition at line 32 of file TMemCachedProducerComp.h.
|
protected |
Remove elements from list if cumulated weight is above defined maximum.
Definition at line 128 of file TMemCachedProducerComp.h.
|
virtual |
Begin of accessing to cached element.
Implements iproc::TILockedProducer< Key, CacheObject >.
Definition at line 79 of file TMemCachedProducerComp.h.
|
virtual |
End of accessing to cached element.
Implements iproc::TILockedProducer< Key, CacheObject >.
Definition at line 111 of file TMemCachedProducerComp.h.
© Witold Gantzke and Kirill Lepskiy