MemoryPool* MemoryPool_NewFunc( SizeT elementSize, int numElements ) { MemoryPool* self; self = _MemoryPool_New( sizeof(MemoryPool), MemoryPool_Type, _MemoryPool_DeleteFunc, _MemoryPool_PrintFunc, NULL, elementSize, numElements); /* Virtual functions */ _MemoryPool_Init( self ); return self; }
MemoryPool* MemoryPool_NewFunc( SizeT elementSize, int numElements, int delta ) { /* Variables set in this function */ SizeT _sizeOfSelf = sizeof(MemoryPool); Type type = MemoryPool_Type; Stg_Class_DeleteFunction* _delete = _MemoryPool_DeleteFunc; Stg_Class_PrintFunction* _print = _MemoryPool_PrintFunc; Stg_Class_CopyFunction* _copy = NULL; MemoryPool* self; self = _MemoryPool_New( MEMORYPOOL_PASSARGS ); /* Virtual functions */ _MemoryPool_Init( self ); return self; }