Loki  0.1.7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Modules
Cached Factory

CachedFactory provides an extension of a Factory with caching support. More...

Collaboration diagram for Cached Factory:

Modules

 Encapsulation policies
 Defines how the object is returned to the client.
 
 Creation policies
 Defines a way to limit the creation operation.
 
 Eviction policies
 Gathers informations about the stored objects and choose a candidate for eviction.
 
 Statistic policies
 Gathers information about the cache.
 

Classes

class  Loki::CachedFactory< AbstractProduct, IdentifierType, CreatorParmTList, EncapsulationPolicy, CreationPolicy, EvictionPolicy, StatisticPolicy, FactoryErrorPolicy, ObjVector >
 Factory with caching support. More...
 

Detailed Description

CachedFactory provides an extension of a Factory with caching support.

Once used objects are returned to the CachedFactory that manages its destruction. If your code uses lots of "long to construct/destruct objects" using the CachedFactory will surely speedup the execution.