summaryrefslogtreecommitdiff
path: root/freebsdtvision/doc/html/classTObject.html
blob: 24c91617f9204eebd3d9d2cbde8950b7a5a62ae2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>TObject class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.18 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>TObject Class Reference</h1>The fundamental class. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="tvobjs_8h-source.html">tvobjs.h</a>&gt;</code>
<p>
<p>Inheritance diagram for TObject:
<p><center><img src="classTObject.png" usemap="#TObject_map" border="0" alt=""></center>
<map name="TObject_map">
<area href="classTHelpFile.html" alt="THelpFile" shape="rect" coords="104,56,198,80">
<area href="classTHelpIndex.html" alt="THelpIndex" shape="rect" coords="104,112,198,136">
<area href="classTHelpTopic.html" alt="THelpTopic" shape="rect" coords="104,168,198,192">
<area href="classTNSCollection.html" alt="TNSCollection" shape="rect" coords="104,224,198,248">
<area href="classTResourceFile.html" alt="TResourceFile" shape="rect" coords="104,280,198,304">
<area href="classTStringList.html" alt="TStringList" shape="rect" coords="104,336,198,360">
<area href="classTStrListMaker.html" alt="TStrListMaker" shape="rect" coords="104,392,198,416">
<area href="classTValidator.html" alt="TValidator" shape="rect" coords="104,448,198,472">
<area href="classTView.html" alt="TView" shape="rect" coords="104,504,198,528">
</map>
<a href="classTObject-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>virtual&nbsp;</td><td valign=bottom><a class="el" href="classTObject.html#a0">~TObject</a> ()</td></tr>
<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classTObject.html#a1">shutDown</a> ()</td></tr>
<tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classTObject.html#d0">destroy</a> (TObject *o)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
TObject is the starting point for much of TVision's class hierarchy. It has no parents but many descendants. Apart from <a class="el" href="classTPoint.html">TPoint</a> and <a class="el" href="classTRect.html">TRect</a>, most of TVision's standard classes are ultimately derived from TObject.
<p>
Any object that uses TVision's stream facilities must trace its ancestry back to TObject. <dl compact><dt><b>See also: </b></dt><dd>
<a class="el" href="classTView.html">TView</a> </dl>
<p>

<p>
Definition at line <a class="el" href="tvobjs_8h-source.html#l00031">31</a> of file <a class="el" href="tvobjs_8h-source.html">tvobjs.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="TObject::~TObject"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> virtual TObject::~TObject </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Destructor.
<p>
Performs the necessary cleanup and disposal for dynamic objects. Does nothing.     </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="d0" doxytag="TObject::destroy"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void TObject::destroy </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">TObject *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>o</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [inline, static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Destroys the object pointed by `o'.
<p>
<a class="el" href="classTObject.html#d0">destroy()</a> deletes an object `o' of a type derived from TObject; that is, any object created with operator new(). <a class="el" href="classTObject.html#d0">destroy()</a> terminates the object, correctly freeing the memory that it occupies.
<p>
It calls `o-&gt;<a class="el" href="classTObject.html#a1">shutDown()</a>' and after does `delete o'. <dl compact><dt><b>See also: </b></dt><dd>
<a class="el" href="classTObject.html#a1">shutDown</a> </dl>
<p>
Definition at line <a class="el" href="tvobjs_8h-source.html#l00065">65</a> of file <a class="el" href="tvobjs_8h-source.html">tvobjs.h</a>.
<p>
References <a class="el" href="classTObject.html#a1">shutDown()</a>.    </td>
  </tr>
</table>
<a name="a1" doxytag="TObject::shutDown"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> virtual void TObject::shutDown </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Releases TObject resources.
<p>
Used internally by <a class="el" href="classTObject.html#d0">TObject::destroy()</a> to ensure correct destruction of derived and related objects. <a class="el" href="classTObject.html#a1">shutDown()</a> is overridden in many classes to ensure the proper setting of related data members when destroy is called. Does nothing. <dl compact><dt><b>See also: </b></dt><dd>
destroy </dl>
<p>
Reimplemented in <a class="el" href="classTDeskTop.html#a5">TDeskTop</a>, <a class="el" href="classTProgram.html#a15">TProgram</a>, <a class="el" href="classTLabel.html#a4">TLabel</a>, <a class="el" href="classTHistory.html#a6">THistory</a>, <a class="el" href="classTEditor.html#a2">TEditor</a>, <a class="el" href="classTFileEditor.html#a9">TFileEditor</a>, <a class="el" href="classTFileDialog.html#a7">TFileDialog</a>, <a class="el" href="classTChDirDialog.html#a6">TChDirDialog</a>, <a class="el" href="classTNSCollection.html#a2">TNSCollection</a>, <a class="el" href="classTView.html#a67">TView</a>, <a class="el" href="classTScroller.html#a9">TScroller</a>, <a class="el" href="classTListViewer.html#a12">TListViewer</a>, <a class="el" href="classTGroup.html#a2">TGroup</a>, and <a class="el" href="classTWindow.html#a10">TWindow</a>.
<p>
Referenced by <a class="el" href="tvobjs_8h-source.html#l00065">destroy()</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="tvobjs_8h-source.html">tvobjs.h</a></ul>
<hr><address style="align: right;"><small>Generated on Wed Apr 2 22:13:15 2003 for TVision by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.18 </small></address>
</body>
</html>