4 #include "Sti/Base/Named.h"
27 virtual void clear()=0;
30 virtual void reset()=0;
33 virtual void free(
void *obj)=0;
36 static void Free(
void *obj);
38 void setFastDelete() {fFastDel=1;}
39 void setMaxIncrementCount(
int maxCount) {fMaxCount=maxCount;}
40 int getMaxIncrementCount()
const {
return fMaxCount; }
41 int getCurrentSize()
const {
return fCurCount; }
42 int getCurrentCount()
const {
return fCurCount; }
50 static double fgTotal;
53 template <
class Abstract>
65 virtual void free(Abstract *obj)=0;
66 virtual void free(
void *obj)=0;
75 long *v = ((
long*)obj) - 1;
virtual void free(void *obj)=0
Free an object for reuse.
virtual void free(Abstract *obj)=0
Free an object for reuse.
virtual Abstract * getInstance()=0
Get a pointer to instance of objects served by this factory.
static void Free(void *obj)
Free an object for reuse.
virtual void reset()=0
Reset this factory.
virtual void clear()=0
Clear/delete all objects owned by this factory.