Collaboration diagram for Cached Factory:CachedFactory provides an extension of a Factory with caching support. More...
|Defines how the object is returned to the client. |
|Defines a way to limit the creation operation. |
|Gathers informations about the stored objects and choose a candidate for eviction. |
|Gathers information about the cache. |
|class||Loki::CachedFactory< AbstractProduct, IdentifierType, CreatorParmTList, EncapsulationPolicy, CreationPolicy, EvictionPolicy, StatisticPolicy, FactoryErrorPolicy, ObjVector >|
|Factory with caching support. More...|
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.