summaryrefslogtreecommitdiffstats
path: root/o3d/documentation/jsdoc-toolkit-templates/class.tmpl
blob: 1f30c40190e372a200b59a6973ca9acd0784578e (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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
{!
thisClass = data;
!}

<!-- ============================== header ================================= -->
                <!-- begin static/header.html -->
                {+include("static/header.html")+}
                <!-- end static/header.html -->

<div id="doxygen-ref">
<!-- Genreated by jsdoctoolkit 2.1.0 -->
<div class="navigation" id="top">
  <div class="navpath">{+getHierarchicalLinksToClassByAlias(thisClass.alias,'el')+}</div>
</div>

<div class="contents">
<h1>{+thisClass.alias+} <if test="thisClass.isNamespace">Module</if><if test="!thisClass.isNamespace">Class</if> Reference</h1>
<if test="thisClass.inheritsFrom.length">
  Inherits <a class="el" href="{+getLinkToClassByAlias(thisClass.inheritsFrom[0])+}">{+thisClass.inheritsFrom[0]+}</a>
</if>
<p/>

<p/>
<a href="{+getLinkToClassMembersByAlias(thisClass.alias)+}">List of all members.</a>
<hr/>
<a name="_details"></a>
<h2>Detailed Description</h2>
<if test="thisClass.classDesc">{+sanitizeForEZT(thisClass.classDesc)+}</if>
<if test="!thisClass.classDesc">{+sanitizeForEZT(thisClass.desc)+}</if>

<if test="getOutputMode() !== 'o3d' && thisClass.srcFile.length">
<h2>Source</h2>
<a name="_source" href="http://code.google.com/p/o3d/source/browse/trunk/samples/{+getSourcePath(thisClass)+}">{+getSourcePath(thisClass)+}</a>
</if>

<!-- =========== SEE ALSO =========== -->
<if test="data.see.length">
  <h2>See Also</h2>
  <ul>
  <for each="seeAlso" in="data.see">
    <li>
    {+linkifyTypeSpec(makeName('[Class See Also]', thisClass.alias), seeAlso)+}
    </li>
  </for>
  </ul>
</if>

<!-- =========== SEE ALSO =========== -->

<!-- ========== CONSTRUCTOR SUMMARY ============== -->
<if test="shouldWriteConstructor(data)">
  <h2>Constructor</h2>
  <ul>
  <li><a class="el" href="{+data.name+}">{+data.alias+}</a><if test="data.classType != 'Namespace '">{+ makeSignature(data.params) +}</if></li>
  </ul>
</if>

<!-- ========== PUBLIC TYPES =========== -->
{! var ownTypes = getPublicTypes(data).sort(makeSortby("name"));
   var justEnums = [];
   for (var ot = 0; ot < ownTypes.length; ++ot) {
     if (isEnum(ownTypes[ot])) {
       justEnums.push(ownTypes[ot]);
     }
   }
!}
<if test="ownTypes.length">
  <h2>Public Types</h2>
  <table class="summary">
  <for each="property" in="ownTypes">
    <tr>
    <td>
      <if test="isEnum(property)">
        enum <a class="el" href="#{+property.name+}">{+property.name+}</a>
      </if>
      <if test="!isEnum(property)">
        {+linkifySingleType(makeName('[Type Summary]'), property.memberOf+'.'+property.name)+}
      </if>
    </td>
    <td>{+linkifySingleType(makeName('[Type Summary inherit]'), getParentName(property))+}</td>
    </tr>
  </for>
  </table>
</if>


<!-- ========== METHOD SUMMARY =========== -->
<if test="thisClass.methods.length">
  {! var ownMethods = data.methods.sort(makeSortby("name")); !}
  <if test="ownMethods.length">
    <h2>Public Member Functions</h2>
    <table class="summary">
    <for each="method" in="ownMethods">
    <if test="!method.isPrivate">
        <tr>
        <td class="type">
        <if test="method.type.length">{+linkifyTypeSpec(makeName('[Method Summary]', thisClass.alias, method.name), method.type)+}&nbsp;</if>
        </td>
        <td><a class="el" href="#{+method.name+}">{+method.name+}</a>{+makeSignature(method.params)+}</td>
        <td>{+linkifySingleType(makeName('[Method Summary inherit]'), getParentName(method))+}</td>
        </tr>
    </if>
    </for>
    </table>
  </if>
</if>

<!-- =========== FIELD SUMMARY =========== -->
{! var ownProperties = getPublicProperties(data).sort(makeSortby("name")); !}
<if test="ownProperties.length">
  <h2>Public Properties</h2>
  <table class="summary">
  <for each="property" in="ownProperties">
    <tr>
    <td class="type">
    <if test="property.isStatic||!property.memberOf">&lt;Global&gt;&nbsp;</if>
    {+linkifyTypeSpec(makeName('[Property Summary]', thisClass.alias, property.name), getPropertyType(property))+}
    </td>
    <td><a class="el" href="#{+property.name+}">{+property.name+}</a></td>
    <td>{+linkifySingleType(makeName('[Prop Summary inherit]'), getParentName(property))+}</td>
    </tr>
  </for>
  </table>
</if>

<!-- =========== END FIELD SUMMARY =========== -->

<!-- ========== CONSTRUCTOR DETAIL ============== -->
<if test="shouldWriteConstructor(data)">
  <hr/>
  <h2>Constructor</h2>
  <a class="anchor" name="{+data.name+}"></a>
  <div class="memitem">
  <div class="memproto">
  <table class="memname">
    <if test="data.params && data.params.length">
    {!
     var tempCSS = "memname";
     var tempName = data.alias;
     var tempParen = "(";
     var tempEnd = data.params.length > 1 ? "" : ")"
    !}
    <for each="param" in="data.params">
    <tr>
      <td class="{+tempCSS+}">{+tempName+}</td>
      <td>{+tempParen+}</td>
      <td class="paramtype">{+linkifyTypeSpec(makeName('[Constructor Param]', thisClass.alias, param.name), param.type)+}</td>
      <td class="paramname"><em>{+param.name+}</em></td>
      <td><if test="$param_last">)</if></td>
      <td></td>
    </tr>
    {!
      tempCSS = "paramkey";
      tempName = "";
      tempParen = "";
    !}
    </for>
    </if>
    <if test="!data.params || data.params.length == 0">
    <tr>
      <td class="memname">{+data.alias+}</td>
      <td>(</td>
      <td class="paramtype"></td>
      <td class="paramname"></td>
      <td>)</td>
      <td></td>
    </tr>
    </if>
  </table>
  </div>

  <div class="memdoc">
  <p/>
  {+sanitizeForEZT(data.desc)+}
  <if test="data.params && data.params.length">
    <dl compact><dt><b>Parameters:</b></dt>
    <dd>
    <table border="0" cellspacing="2" cellpadding="0">
      <for each="param" in="data.params">
        <tr><td valign="top"></td><td valign="top"><em>{+param.name+}</em></td><td>{+sanitizeForEZT(param.desc)+}</td></tr>
      </for>
    </table>
    </dd>
    </dl>
  </if>
  </div>

  </div>
</if>


<!-- =========== TYPES DETAIL ============== -->

<if test="defined(justEnums) && justEnums.length">
  <hr/>
  <h2>Public Types Documentation</h2>
  <for each="property" in="justEnums">
    <a class="anchor" name="{+property.name+}"></a>
    <div class="memitem">
    <div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">{+isEnum(property)?'enum ':''+}{+property.memberOf+"."+property.name+}</td>
        </tr>
      </table>
    </div>

    <div class="memdoc">
    <p/>
    {+sanitizeForEZT(property.desc)+}
    </div>

    <if test="property.see.length">
      <dl compact><td><b>See Also:</b></dt>
      <dd><ul>
      <for each="seeAlso" in="property.see">
        <li>
        {+linkifyTypeSpec(makeName('[Property See Also]', thisClass.alias), seeAlso)+}
        </li>
      </for>
      </ul></dd>
      </dl>
    </if>

    </div>
  </for>
</if>


<!-- =========== METHOD DETAIL ============== -->
<if test="defined(ownMethods) && ownMethods.length">
  <hr/>
  <h2>Member Function Documentation</h2>
  <for each="member" in="ownMethods">
  <if test="!member.isPrivate">
    <a class="anchor" name="{+member.name+}"></a>
    <div class="memitem">
    <div class="memproto">
      <table class="memname">
        {! var tempInherited = member.memberOf == thisClass.alias ? "" : ("[[]inherited from <a class=\"el\" href=\"" + getLinkToClassByAlias(member.memberOf) + "\">" + member.memberOf + "</a>]"); !}
        <if test="member.params && member.params.length">
        {!
         var tempCSS = "memname";
         var tempName = linkifyTypeSpecForReturn(makeName('[Method Detail]', thisClass.alias, member.name), member.type)+" "+getDocName(data, member);
         var tempParen = "(";
         var tempEnd = member.params.length > 1 ? "" : ")"
        !}
        <for each="param" in="member.params">
        <tr>
          <td class="{+tempCSS+}">{+tempName+}</td>
          <td>{+tempParen+}</td>
          <td class="paramtype">{+linkifyTypeSpec(makeName('[Param Detail]', thisClass.alias, member.name, param.name), param.type)+}</td>
          <td class="paramname"><em>{+param.name+}</em></td>
          <td><if test="$param_last">)</if></td>
          <td><code><if test="$param_last">{+tempInherited+}</if></code></td>
        </tr>
        {!
          tempCSS = "paramkey";
          tempName = "";
          tempParen = "";
        !}
        </for>
        </if>
        <if test="!member.params || member.params.length == 0">
        <tr>
          <td class="memname">{+getDocName(data, member)+}</td>
          <td>(</td>
          <td class="paramtype"></td>
          <td class="paramname"></td>
          <td>)</td>
          <td>{+tempInherited+}</td>
        </tr>
        </if>
      </table>
    </div>

    <div class="memdoc">
    <p/>
    {+sanitizeForEZT(member.desc)+}
    <if test="member.params && member.params.length">
      <dl compact><dt><b>Parameters:</b></dt>
      <dd>
      <table border="0" cellspacing="2" cellpadding="0">
        <for each="param" in="member.params">
          <tr><td valign="top"></td><td valign="top"><em>{+param.name+}</em></td><td>{+sanitizeForEZT(param.desc)+}</td></tr>
        </for>
      </table>
      </dd>
      </dl>
    </if>
    <if test="member.type && member.type.length">
    <dl class="return" compact><dt><b>Returns:</b></dt>
    <dd>
    {+linkifyTypeSpec(makeName('[Return detail]', thisClass.alias, member.name), member.type)+}.<if test="member.returns && member.returns.length">{+sanitizeForEZT(member.returns[0].desc)+}</if>
    </dd>
    </if>
    </div>

    <if test="member.see.length">
      <dl compact><td><b>See Also:</b></dt>
      <dd><ul>
      <for each="seeAlso" in="member.see">
        <li>
        {+linkifyTypeSpec(makeName('[Method See Also]', thisClass.alias, '[See Also]'), seeAlso)+}
        </li>
      </for>
      </ul></dd>
      </dl>
    </if>

    </div>
  </if>
  </for>
</if>

<!-- =========== PROPERTY DETAIL ============== -->

<if test="defined(ownProperties) && ownProperties.length">
  <hr/>
  <h2>Member Property Documentation</h2>
  <for each="property" in="ownProperties">
    <a class="anchor" name="{+property.name+}"></a>
    <div class="memitem">
    <div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">{+linkifyTypeSpec(makeName('[Property Detail]', thisClass.alias, property.name), getPropertyType(property))+} {+getDocName(data, property)+}
        {+ (property.memberOf == thisClass.alias) ? "" : ("[[]inherited from <a class=\"el\" href=\"" + getLinkToClassByAlias(property.memberOf) + "\">" + property.memberOf + "</a>]") +}
        </td>
        </tr>
      </table>
    </div>

    <div class="memdoc">
    <p/>
    {+sanitizeForEZT(property.desc)+}
    </div>

    <if test="property.see.length">
      <dl compact><td><b>See Also:</b></dt>
      <dd><ul>
      <for each="seeAlso" in="property.see">
        <li>
        {+linkifyTypeSpec(makeName('[Property See Also]', thisClass.alias), seeAlso)+}
        </li>
      </for>
      </ul></dd>
      </dl>
    </if>

    </div>
  </for>
</if>

</div><!-- end contents -->
</div><!-- end doxygen-ref -->

<!-- ============================== footer ================================= -->
                <!-- begin static/footer.html -->
                {+include("static/footer.html")+}
                <!-- end static/footer.html -->