Loki::AmountLimitedCreation Class Reference
[Creation policies]

Limit by number of objects. More...

#include <CachedFactory.h>

List of all members.

Public Member Functions

void setMaxCreation (unsigned maxCreation)

Protected Member Functions

 AmountLimitedCreation ()
bool canCreate ()
void onCreate ()
void onDestroy ()
const char * name ()


Detailed Description

Limit by number of objects.

This implementation will prevent from Creating more than maxCreation objects within byTime ms by calling eviction policy. Use the setRate method to set the rate parameters. default is 10 objects.

Definition at line 253 of file CachedFactory.h.


The documentation for this class was generated from the following file:
Generated on Sun Feb 25 16:52:34 2007 for Loki by  doxygen 1.5.1-p1