| | 44 | <script>explorer.outline.decSymbolLevel();</script> |
|---|
| | 45 | |
|---|
| | 46 | |
|---|
| | 47 | </dd> |
|---|
| | 48 | |
|---|
| | 49 | <script>explorer.outline.writeEnabled = true;</script> |
|---|
| | 50 | <dt><span class="decl">template |
|---|
| | 51 | <span class="currsymbol">wrapped_class_type</span> |
|---|
| | 52 | <script>explorer.outline.addDecl('wrapped_class_type');</script> |
|---|
| | 53 | |
|---|
| | 54 | (T)</span></dt> |
|---|
| | 55 | <script>explorer.outline.writeEnabled = false;</script> |
|---|
| | 56 | |
|---|
| | 57 | |
|---|
| | 58 | <dd><br><br> |
|---|
| | 59 | |
|---|
| | 60 | <script>explorer.outline.incSymbolLevel();</script> |
|---|
| | 61 | <dl> |
|---|
| | 62 | <script>explorer.outline.writeEnabled = true;</script> |
|---|
| | 63 | <dt><span class="decl">PyTypeObject |
|---|
| | 64 | <span class="currsymbol">wrapped_class_type</span> |
|---|
| | 65 | <script>explorer.outline.addDecl('wrapped_class_type');</script> |
|---|
| | 66 | |
|---|
| | 67 | ; |
|---|
| | 68 | </span></dt> |
|---|
| | 69 | <script>explorer.outline.writeEnabled = false;</script> |
|---|
| | 70 | |
|---|
| | 71 | |
|---|
| | 72 | <dd>The type object, an instance of PyType_Type |
|---|
| | 73 | <br><br> |
|---|
| | 74 | |
|---|
| | 75 | </dd> |
|---|
| | 76 | </dl> |
|---|
| | 77 | <script>explorer.outline.decSymbolLevel();</script> |
|---|
| | 78 | |
|---|
| | 79 | |
|---|
| | 80 | </dd> |
|---|
| | 81 | |
|---|
| | 82 | <script>explorer.outline.writeEnabled = true;</script> |
|---|
| | 83 | <dt><span class="decl">template |
|---|
| | 84 | <span class="currsymbol">wrapped_methods</span> |
|---|
| | 85 | <script>explorer.outline.addDecl('wrapped_methods');</script> |
|---|
| | 86 | |
|---|
| | 87 | (T)</span></dt> |
|---|
| | 88 | <script>explorer.outline.writeEnabled = false;</script> |
|---|
| | 89 | |
|---|
| | 90 | |
|---|
| | 91 | <dd>Various wrapped methods |
|---|
| | 92 | <br><br> |
|---|
| | 93 | |
|---|
| | 94 | |
|---|
| | 95 | <script>explorer.outline.incSymbolLevel();</script> |
|---|
| | 96 | <dl> |
|---|
| | 97 | <script>explorer.outline.writeEnabled = true;</script> |
|---|
| | 98 | <dt><span class="decl">PyObject* |
|---|
| | 99 | <span class="currsymbol">wrapped_new</span> |
|---|
| | 100 | <script>explorer.outline.addDecl('wrapped_new');</script> |
|---|
| | 101 | |
|---|
| | 102 | (PyTypeObject* <span class="funcparam">type</span>, PyObject* <span class="funcparam">args</span>, PyObject* <span class="funcparam">kwds</span>); |
|---|
| | 103 | </span></dt> |
|---|
| | 104 | <script>explorer.outline.writeEnabled = false;</script> |
|---|
| | 105 | |
|---|
| | 106 | |
|---|
| | 107 | <dd>The generic "_new__" method |
|---|
| | 108 | <br><br> |
|---|
| | 109 | |
|---|
| | 110 | </dd> |
|---|
| | 111 | |
|---|
| | 112 | <script>explorer.outline.writeEnabled = true;</script> |
|---|
| | 113 | <dt><span class="decl">void |
|---|
| | 114 | <span class="currsymbol">wrapped_dealloc</span> |
|---|
| | 115 | <script>explorer.outline.addDecl('wrapped_dealloc');</script> |
|---|
| | 116 | |
|---|
| | 117 | (PyObject* <span class="funcparam">_self</span>); |
|---|
| | 118 | </span></dt> |
|---|
| | 119 | <script>explorer.outline.writeEnabled = false;</script> |
|---|
| | 120 | |
|---|
| | 121 | |
|---|
| | 122 | <dd>The generic dealloc method. |
|---|
| | 123 | <br><br> |
|---|
| | 124 | |
|---|
| | 125 | </dd> |
|---|
| | 126 | |
|---|
| | 127 | <script>explorer.outline.writeEnabled = true;</script> |
|---|
| | 128 | <dt><span class="decl">PyObject* |
|---|
| | 129 | <span class="currsymbol">wrapped_repr</span> |
|---|
| | 130 | <script>explorer.outline.addDecl('wrapped_repr');</script> |
|---|
| | 131 | |
|---|
| | 132 | (PyObject* <span class="funcparam">_self</span>); |
|---|
| | 133 | </span></dt> |
|---|
| | 134 | <script>explorer.outline.writeEnabled = false;</script> |
|---|
| | 135 | |
|---|
| | 136 | |
|---|
| | 137 | <dd>The default repr method calls the class's toString. |
|---|
| | 138 | <br><br> |
|---|
| | 139 | |
|---|
| | 140 | </dd> |
|---|
| | 141 | </dl> |
|---|
| | 142 | <script>explorer.outline.decSymbolLevel();</script> |
|---|
| | 143 | |
|---|
| | 144 | |
|---|
| | 145 | </dd> |
|---|
| | 146 | |
|---|
| | 147 | <script>explorer.outline.writeEnabled = true;</script> |
|---|
| | 148 | <dt><span class="decl">template |
|---|
| | 149 | <span class="currsymbol">wrapped_init</span> |
|---|
| | 150 | <script>explorer.outline.addDecl('wrapped_init');</script> |
|---|
| | 151 | |
|---|
| | 152 | (T)</span></dt> |
|---|
| | 153 | <script>explorer.outline.writeEnabled = false;</script> |
|---|
| | 154 | |
|---|
| | 155 | |
|---|
| | 156 | <dd><br><br> |
|---|
| | 157 | |
|---|
| | 158 | <script>explorer.outline.incSymbolLevel();</script> |
|---|
| | 159 | <dl> |
|---|
| | 160 | <script>explorer.outline.writeEnabled = true;</script> |
|---|
| | 161 | <dt><span class="decl">int |
|---|
| | 162 | <span class="currsymbol">init</span> |
|---|
| | 163 | <script>explorer.outline.addDecl('init');</script> |
|---|
| | 164 | |
|---|
| | 165 | (PyObject* <span class="funcparam">self</span>, PyObject* <span class="funcparam">args</span>, PyObject* <span class="funcparam">kwds</span>); |
|---|
| | 166 | </span></dt> |
|---|
| | 167 | <script>explorer.outline.writeEnabled = false;</script> |
|---|
| | 168 | |
|---|
| | 169 | |
|---|
| | 170 | <dd>The default init method calls the class's zero-argument constructor. |
|---|
| | 171 | <br><br> |
|---|
| | 172 | |
|---|
| | 173 | </dd> |
|---|
| | 174 | </dl> |
|---|
| | 175 | <script>explorer.outline.decSymbolLevel();</script> |
|---|
| | 176 | |
|---|
| | 177 | |
|---|
| | 178 | </dd> |
|---|
| | 179 | |
|---|
| | 180 | <script>explorer.outline.writeEnabled = true;</script> |
|---|
| | 181 | <dt><span class="decl">template |
|---|
| | 182 | <span class="currsymbol">wrapped_get</span> |
|---|
| | 183 | <script>explorer.outline.addDecl('wrapped_get');</script> |
|---|
| | 184 | |
|---|
| | 185 | (T,alias Fn)</span></dt> |
|---|
| | 186 | <script>explorer.outline.writeEnabled = false;</script> |
|---|
| | 187 | |
|---|
| | 188 | |
|---|
| | 189 | <dd><br><br> |
|---|
| | 190 | |
|---|
| | 191 | <script>explorer.outline.incSymbolLevel();</script> |
|---|
| | 192 | <dl> |
|---|
| | 193 | <script>explorer.outline.writeEnabled = true;</script> |
|---|
| | 194 | <dt><span class="decl">PyObject* |
|---|
| | 195 | <span class="currsymbol">func</span> |
|---|
| | 196 | <script>explorer.outline.addDecl('func');</script> |
|---|
| | 197 | |
|---|
| | 198 | (PyObject* <span class="funcparam">self</span>, void* <span class="funcparam">closure</span>); |
|---|
| | 199 | </span></dt> |
|---|
| | 200 | <script>explorer.outline.writeEnabled = false;</script> |
|---|
| | 201 | |
|---|
| | 202 | |
|---|
| | 203 | <dd>A generic wrapper around a "getter" property. |
|---|
| | 204 | <br><br> |
|---|
| | 205 | |
|---|
| | 206 | </dd> |
|---|
| | 207 | </dl> |
|---|
| | 208 | <script>explorer.outline.decSymbolLevel();</script> |
|---|
| | 209 | |
|---|
| | 210 | |
|---|
| | 211 | </dd> |
|---|
| | 212 | |
|---|
| | 213 | <script>explorer.outline.writeEnabled = true;</script> |
|---|
| | 214 | <dt><span class="decl">template |
|---|
| | 215 | <span class="currsymbol">wrapped_set</span> |
|---|
| | 216 | <script>explorer.outline.addDecl('wrapped_set');</script> |
|---|
| | 217 | |
|---|
| | 218 | (T,alias Fn)</span></dt> |
|---|
| | 219 | <script>explorer.outline.writeEnabled = false;</script> |
|---|
| | 220 | |
|---|
| | 221 | |
|---|
| | 222 | <dd><br><br> |
|---|
| | 223 | |
|---|
| | 224 | <script>explorer.outline.incSymbolLevel();</script> |
|---|
| | 225 | <dl> |
|---|
| | 226 | <script>explorer.outline.writeEnabled = true;</script> |
|---|
| | 227 | <dt><span class="decl">int |
|---|
| | 228 | <span class="currsymbol">func</span> |
|---|
| | 229 | <script>explorer.outline.addDecl('func');</script> |
|---|
| | 230 | |
|---|
| | 231 | (PyObject* <span class="funcparam">self</span>, PyObject* <span class="funcparam">value</span>, void* <span class="funcparam">closure</span>); |
|---|
| | 232 | </span></dt> |
|---|
| | 233 | <script>explorer.outline.writeEnabled = false;</script> |
|---|
| | 234 | |
|---|
| | 235 | |
|---|
| | 236 | <dd>A generic wrapper around a "setter" property. |
|---|
| | 237 | <br><br> |
|---|
| | 238 | |
|---|
| | 239 | </dd> |
|---|
| | 240 | </dl> |
|---|
| | 241 | <script>explorer.outline.decSymbolLevel();</script> |
|---|
| | 242 | |
|---|
| | 243 | |
|---|
| | 244 | </dd> |
|---|
| | 245 | |
|---|
| | 246 | <script>explorer.outline.writeEnabled = true;</script> |
|---|
| | 247 | <dt><span class="decl">template |
|---|
| | 248 | <span class="currsymbol">is_wrapped</span> |
|---|
| | 249 | <script>explorer.outline.addDecl('is_wrapped');</script> |
|---|
| | 250 | |
|---|
| | 251 | (T)</span></dt> |
|---|
| | 252 | <script>explorer.outline.writeEnabled = false;</script> |
|---|
| | 253 | |
|---|
| | 254 | |
|---|
| | 255 | <dd>A useful check for whether a given class has been wrapped. Mainly used by |
|---|
| | 256 | the conversion functions (see make_object.d), but possibly useful elsewhere. |
|---|
| | 257 | |
|---|
| | 258 | <br><br> |
|---|
| | 259 | |
|---|
| | 260 | |
|---|
| | 261 | <script>explorer.outline.incSymbolLevel();</script> |
|---|
| | 262 | <dl></dl> |
|---|
| | 263 | <script>explorer.outline.decSymbolLevel();</script> |
|---|
| | 264 | |
|---|
| | 265 | |
|---|
| | 266 | </dd> |
|---|
| | 267 | |
|---|
| | 268 | <script>explorer.outline.writeEnabled = true;</script> |
|---|
| | 269 | <dt><span class="decl">struct |
|---|
| | 270 | <span class="currsymbol"> |
|---|
| | 271 | <span class="currsymbol">wrapped_class</span> |
|---|
| | 272 | <script>explorer.outline.addDecl('wrapped_class');</script> |
|---|
| | 273 | |
|---|
| | 274 | </span> |
|---|
| | 275 | <script>explorer.outline.addDecl(' |
|---|
| | 276 | <span class="currsymbol">wrapped_class</span> |
|---|
| | 277 | <script>explorer.outline.addDecl('wrapped_class');</script> |
|---|
| | 278 | |
|---|
| | 279 | ');</script> |
|---|
| | 280 | |
|---|
| | 281 | ; |
|---|
| | 282 | </span></dt> |
|---|
| | 283 | <script>explorer.outline.writeEnabled = false;</script> |
|---|
| | 284 | |
|---|
| | 285 | |
|---|
| | 286 | <dd>This struct wraps a D class. Its member functions are the primary way of |
|---|
| | 287 | wrapping the specific parts of the class. |
|---|
| | 288 | |
|---|
| | 289 | <br><br> |
|---|
| | 290 | |
|---|
| | 291 | |
|---|
| | 292 | <script>explorer.outline.incSymbolLevel();</script> |
|---|
| | 293 | <dl> |
|---|
| | 294 | <script>explorer.outline.writeEnabled = true;</script> |
|---|
| | 295 | <dt><span class="decl">template |
|---|
| | 296 | <span class="currsymbol">def</span> |
|---|
| | 297 | <script>explorer.outline.addDecl('def');</script> |
|---|
| | 298 | |
|---|
| | 299 | (char[] name,alias fn,uint MIN_ARGS = NumberOfArgs!(typeof(&fn)),fn_t = typeof(&fn))</span></dt> |
|---|
| | 300 | <script>explorer.outline.writeEnabled = false;</script> |
|---|
| | 301 | |
|---|
| | 302 | |
|---|
| | 303 | <dd>Wraps a member function of the class. |
|---|
| | 304 | <br><br> |
|---|
| | 305 | <b>Params:</b><br> |
|---|
| | 306 | <table><tr> |
|---|
| | 307 | <td nowrap valign="top" style="padding-right: 8px">name</td> |
|---|
| | 308 | |
|---|
| | 309 | |
|---|
| | 310 | <td>The name of the function as it will appear in Python.</td></tr> |
|---|
| | 311 | <tr> |
|---|
| | 312 | <td nowrap valign="top" style="padding-right: 8px">fn</td> |
|---|
| | 313 | |
|---|
| | 314 | |
|---|
| | 315 | <td>The member function to wrap.</td></tr> |
|---|
| | 316 | <tr> |
|---|
| | 317 | <td nowrap valign="top" style="padding-right: 8px">MIN_ARGS</td> |
|---|
| | 318 | |
|---|
| | 319 | |
|---|
| | 320 | <td>The minimum number of arguments this function can accept.</td></tr> |
|---|
| | 321 | <tr> |
|---|
| | 322 | <td nowrap valign="top" style="padding-right: 8px">fn_t</td> |
|---|
| | 323 | |
|---|
| | 324 | |
|---|
| | 325 | <td>The type of the function. It is only useful to specify this |
|---|
| | 326 | if more than one function has the same name as this one.</td></tr> |
|---|
| | 327 | </table><br> |
|---|
| | 328 | |
|---|
| | 329 | |
|---|
| | 330 | <script>explorer.outline.incSymbolLevel();</script> |
|---|
| | 331 | <dl></dl> |
|---|
| | 332 | <script>explorer.outline.decSymbolLevel();</script> |
|---|
| | 333 | |
|---|
| | 334 | |
|---|
| | 335 | </dd> |
|---|
| | 336 | |
|---|
| | 337 | <script>explorer.outline.writeEnabled = true;</script> |
|---|
| | 338 | <dt><span class="decl">template |
|---|
| | 339 | <span class="currsymbol">prop</span> |
|---|
| | 340 | <script>explorer.outline.addDecl('prop');</script> |
|---|
| | 341 | |
|---|
| | 342 | (char[] name,alias fn,bool RO = false)</span></dt> |
|---|
| | 343 | <script>explorer.outline.writeEnabled = false;</script> |
|---|
| | 344 | |
|---|
| | 345 | |
|---|
| | 346 | <dd>Wraps a property of the class. |
|---|
| | 347 | <br><br> |
|---|
| | 348 | <b>Params:</b><br> |
|---|
| | 349 | <table><tr> |
|---|
| | 350 | <td nowrap valign="top" style="padding-right: 8px">name</td> |
|---|
| | 351 | |
|---|
| | 352 | |
|---|
| | 353 | <td>The name of the property as it will appear in Python.</td></tr> |
|---|
| | 354 | <tr> |
|---|
| | 355 | <td nowrap valign="top" style="padding-right: 8px">fn</td> |
|---|
| | 356 | |
|---|
| | 357 | |
|---|
| | 358 | <td>The property to wrap.</td></tr> |
|---|
| | 359 | <tr> |
|---|
| | 360 | <td nowrap valign="top" style="padding-right: 8px">RO</td> |
|---|
| | 361 | |
|---|
| | 362 | |
|---|
| | 363 | <td>Whether this is a read-only property.</td></tr> |
|---|
| | 364 | </table><br> |
|---|
| | 365 | |
|---|
| | 366 | |
|---|
| | 367 | <script>explorer.outline.incSymbolLevel();</script> |
|---|
| | 368 | <dl></dl> |
|---|
| | 369 | <script>explorer.outline.decSymbolLevel();</script> |
|---|
| | 370 | |
|---|
| | 371 | |
|---|
| | 372 | </dd> |
|---|
| | 373 | |
|---|
| | 374 | <script>explorer.outline.writeEnabled = true;</script> |
|---|
| | 375 | <dt><span class="decl">template |
|---|
| | 376 | <span class="currsymbol">init</span> |
|---|
| | 377 | <script>explorer.outline.addDecl('init');</script> |
|---|
| | 378 | |
|---|
| | 379 | (alias C1 = undefined,alias C2 = undefined,alias C3 = undefined,alias C4 = undefined,alias C5 = undefined,alias C6 = undefined,alias C7 = undefined,alias C8 = undefined,alias C9 = undefined,alias C10 = undefined)</span></dt> |
|---|
| | 380 | <script>explorer.outline.writeEnabled = false;</script> |
|---|
| | 381 | |
|---|
| | 382 | |
|---|
| | 383 | <dd>Wraps the constructors of the class. |
|---|
| | 384 | <br><br> |
|---|
| | 385 | This template takes a series of specializations of the ctor template |
|---|
| | 386 | (see ctor_wrap.d), each of which describes a different constructor |
|---|
| | 387 | that the class supports. The default constructor need not be |
|---|
| | 388 | specified, and will always be available if the class supports it. |
|---|
| | 389 | |
|---|
| | 390 | <br><br> |
|---|
| | 391 | <font color=red>BUGS:</font><br> |
|---|
| | 392 | This currently does not support having multiple constructors with |
|---|
| | 393 | the same number of arguments. |
|---|
| | 394 | |
|---|
| | 395 | <br><br> |
|---|
| | 396 | |
|---|
| | 397 | |
|---|
| | 398 | <script>explorer.outline.incSymbolLevel();</script> |
|---|
| | 399 | <dl></dl> |
|---|
| | 400 | <script>explorer.outline.decSymbolLevel();</script> |
|---|
| | 401 | |
|---|
| | 402 | |
|---|
| | 403 | </dd> |
|---|
| | 404 | </dl> |
|---|
| | 405 | <script>explorer.outline.decSymbolLevel();</script> |
|---|
| | 406 | |
|---|
| | 407 | |
|---|
| | 408 | </dd> |
|---|
| | 409 | </dl> |
|---|