Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TObject Class Reference

The fundamental class. More...

#include <tvobjs.h>

Inheritance diagram for TObject::

THelpFile THelpIndex THelpTopic TNSCollection TResourceFile TStringList TStrListMaker TValidator TView List of all members.

Public Methods

virtual ~TObject ()
virtual void shutDown ()

Static Public Methods

void destroy (TObject *o)

Detailed Description

TObject is the starting point for much of TVision's class hierarchy. It has no parents but many descendants. Apart from TPoint and TRect, most of TVision's standard classes are ultimately derived from TObject.

Any object that uses TVision's stream facilities must trace its ancestry back to TObject.

See also:
TView

Definition at line 31 of file tvobjs.h.


Constructor & Destructor Documentation

TObject::~TObject ( ) [virtual]
 

Destructor.

Performs the necessary cleanup and disposal for dynamic objects. Does nothing.


Member Function Documentation

void TObject::destroy ( TObject * o ) [inline, static]
 

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'.

See also:
shutDown

Definition at line 65 of file tvobjs.h.

void TObject::shutDown ( ) [virtual]
 

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.

See also:
destroy

Reimplemented in TDeskTop, TProgram, TLabel, THistory, TEditor, TFileEditor, TFileDialog, TChDirDialog, TNSCollection, TView, TScroller, TListViewer, TGroup, and TWindow.

Referenced by destroy().


The documentation for this class was generated from the following file:
Generated at Sat Sep 22 20:19:30 2001 for TVision by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001