#include <tvobjs.h>
Inheritance diagram for TObject::
Public Methods | |
virtual | ~TObject () |
virtual void | shutDown () |
Static Public Methods | |
void | destroy (TObject *o) |
Any object that uses TVision's stream facilities must trace its ancestry back to TObject.
Definition at line 31 of file tvobjs.h.
|
Destructor. Performs the necessary cleanup and disposal for dynamic objects. Does nothing. |
|
Destroys the object pointed by `o'. destroy() deletes an object `o' of a type derived from TObject; that is, any object created with operator new(). destroy() terminates the object, correctly freeing the memory that it occupies. It calls `o->shutDown()' and after does `delete o'.
|
|
Releases TObject resources. Used internally by TObject::destroy() to ensure correct destruction of derived and related objects. shutDown() is overridden in many classes to ensure the proper setting of related data members when destroy is called. Does nothing.
Reimplemented in TDeskTop, TProgram, TLabel, THistory, TEditor, TFileEditor, TFileDialog, TChDirDialog, TNSCollection, TView, TScroller, TListViewer, TGroup, and TWindow. Referenced by destroy().
|