void _STree_Delete( void* _self ) { STree* self = (STree*)_self; if( self->root ) STreeNode_Destroy( self->root, self ); _Stg_Class_Delete( self ); }
void _ModulesManager_Delete( void* modulesManager ) { ModulesManager* self = (ModulesManager*)modulesManager; LiveComponentRegister* lcRegister = NULL; /* * Note: We have to delete the codelets here rather than let the * component factory do it as they refer to static data inside the * loaded module dlls, which are no longer available once we delete * all in self->modules. -- Main.PatrickSunter 18 May 2006 */ if( ( lcRegister = LiveComponentRegister_GetLiveComponentRegister() ) ) { /* sweep through codelets list and delete each from the lcRegister */ Index codelet_I; for( codelet_I = 0; codelet_I < self->codelets->count; ++codelet_I ) { LiveComponentRegister_RemoveOneComponentsEntry( lcRegister, ((Stg_Object*)self->codelets->data[codelet_I])->name ); } } Stg_ObjectList_DeleteAllObjects( self->codelets ); Stg_Class_Delete( self->codelets ); ModulesManager_Unload( self ); Stg_Class_Delete( self->modules ); /* Delete parent */ _Stg_Class_Delete( self ); }
void _ConditionFunction_Delete(void* conditionFunction) { ConditionFunction* self = (ConditionFunction*)conditionFunction; /* Stg_Class_Delete parent class */ _Stg_Class_Delete(self); }
void _UIntMap_Delete( void* generator ) { UIntMap* self = (UIntMap*)generator; FreeObject( self->btree ); /* Delete the parent. */ _Stg_Class_Delete( self ); }
void _ConditionFunction_Register_Delete( void* conditionFunction_Register ) { ConditionFunction_Register* self = (ConditionFunction_Register*)conditionFunction_Register; if(self->_cf ) Memory_Free( self->_cf ); /* Stg_Class_Delete parent class */ _Stg_Class_Delete( self ); }
void _Stg_ComponentFactory_Delete( void* cf ) { Stg_ComponentFactory *self = (Stg_ComponentFactory *) cf; assert( self ); _Stg_Class_Delete( self ); }
void _Sync_Delete( void* sync ) { Sync* self = (Sync*)sync; _Sync_Free( self ); /* Stg_Class_Delete parent */ _Stg_Class_Delete( self ); }
void _Variable_Register_Delete(void* variable_Register) { Variable_Register* self = (Variable_Register*)variable_Register; if (self->_variable) Memory_Free(self->_variable); /* Stg_Class_Delete parent class */ _Stg_Class_Delete(self); }
void _Heap_DeleteFunc ( void *heap ) { _Heap *self = ( _Heap* ) heap; assert( self ); Memory_Free( self->keys ); _Stg_Class_Delete( self ); }
void _NamedObject_Register_Delete( void* namedObjectRegister ) { NamedObject_Register* self = (NamedObject_Register*)namedObjectRegister; Journal_DPrintf( Journal_Register( Debug_Type, NamedObject_Register_Type ), "In: %s()\n", __func__ ); Stg_Class_Delete( self->objects ); /* Stg_Class_Delete parent */ _Stg_Class_Delete( self ); }
void _TestSuite_Delete( void* testSuite ) { TestSuite* self = (TestSuite*)testSuite; assert( self ); TestSuite_Destruct( self ); /* Delete the parent. */ _Stg_Class_Delete( self ); }
void _ToolboxesManager_Delete( void* toolboxesManager ) { ToolboxesManager* self = (ToolboxesManager*)toolboxesManager; Stg_ObjectList_DeleteAllObjects( self->codelets ); Stg_Class_Delete( self->codelets ); ModulesManager_Unload( self ); /* this will unload all toolboxes implicitly */ Stg_Class_Delete( self->modules ); /* Delete parent */ _Stg_Class_Delete( self ); }
void _StreamFormatter_Delete( void* formatter ) { StreamFormatter* self = (StreamFormatter*)formatter; #if DEBUG assert( self ); #endif /* Stg_Class_Delete parent */ _Stg_Class_Delete( self ); }
void _MemoryPool_DeleteFunc( void *memPool ) { MemoryPool *self = NULL; self = (MemoryPool*)memPool; assert (self); Memory_Free( self->elements ); Memory_Free( self->pool ); _Stg_Class_Delete( self ); }
void _IndexMap_Delete( void* indexMap ) { IndexMap* self = (IndexMap*)indexMap; /* Stg_Class_Delete the class itself */ assert( self ); if( self->tupleTbl ) { Memory_Free( self->tupleTbl ); } /* Stg_Class_Delete parent */ _Stg_Class_Delete( self ); }
void _LiveComponentRegister_Delete( void* liveComponentRegister ) { LiveComponentRegister *self = (LiveComponentRegister *) liveComponentRegister; if(!self) return; Stg_Class_Delete( self->componentList ); /* * Note: this has to come after the LCRegister delete all, in case any of the * components need to refer to it as part of their delete phase. */ if( stgLiveComponentRegister == self ) stgLiveComponentRegister = NULL; _Stg_Class_Delete( self ); }
/* Stg_Class_Delete implementation */ void _Stg_ObjectList_Delete( void* namedObjectList ) { Stg_ObjectList* self = (Stg_ObjectList*) namedObjectList; /*TODO - reference counter needs to be used to make sure we are not deleting objects that are being referenced to from other objects.*/ #if 0 Stg_ObjectList_DeleteAllObjects( self ); #endif Memory_Free( self->data ); /* Stg_Class_Delete parent class */ _Stg_Class_Delete( self ); }
void _EntryPoint_Register_Delete( void* entryPoint_Register ) { EntryPoint_Register* self = (EntryPoint_Register*)entryPoint_Register; /* Assumes ownerships of the element types */ if( self->entryPoint ) { EntryPoint_Index entryPoint_I; for( entryPoint_I = 0; entryPoint_I < self->count; entryPoint_I++ ) { Stg_Class_Delete( self->entryPoint[entryPoint_I] ); } Memory_Free( self->entryPoint ); } /* Stg_Class_Delete parent */ _Stg_Class_Delete( self ); }
void _MemoryPool_DeleteFunc( void *memPool ) { int i = 0; MemoryPool *self = NULL; self = (MemoryPool*)memPool; assert (self); for( i=0; i<self->numMemChunks; i++ ){ if( self->chunks[i].memory != ((char*)NULL) ){ Memory_Free( self->chunks[i].memory ); } } Memory_Free( self->chunks ); Memory_Free( self->pool ); _Stg_Class_Delete( self ); }
void _ISet_Delete( void* self ) { ISet_Destruct( (ISet*)self ); _Stg_Class_Delete( self ); }
void _Iter_Delete( void* self ) { _Stg_Class_Delete( self ); }
void _MeshLayout_Delete( void* meshLayout ) { MeshLayout* self = (MeshLayout*)meshLayout; /* Stg_Class_Delete parent */ _Stg_Class_Delete( self ); }
void _LinkedListIterator_DeleteFunc( void *self ) { if( self ){ _Stg_Class_Delete( self ); } }
void _LinearRegression_Delete( void* linearRegression ) { LinearRegression* self = (LinearRegression*) linearRegression; _Stg_Class_Delete( self ); }
void _AnalyticFunction_Delete( void* analyticFunction ) { AnalyticFunction* self = (AnalyticFunction*)analyticFunction; /* Stg_Class_Delete parent class */ _Stg_Class_Delete(self); }