Bull DPX/20 Guida Utente Pagina 268

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 424
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 267
2-100
SOMobjects Base Toolkit: Programmers Reference Manual
duplicate Method
Purpose
Makes a duplicate of an object reference.
IDL Syntax
SOMDObject duplicate ( );
Description
The duplicate method makes a duplicate of the object reference. The release method
should be called to free the object.
Parameters
receiver A pointer to a SOMDObject object.
env A pointer to the Environment structure for the method caller.
Return Value
The duplicate method returns a SOMDObject that is a duplicate of the receiver. Ownership
of the returned object is transferred to the caller.
Example
#include <somd.h>
Environment ev;
SOMObject obj;
SOMDObject objref1, objref2;
...
objref1 = _create_SOM_ref(SOMD_SOMOAObject, &ev, obj);
objref2 = _duplicate(objref1,&ev);
...
_release(objref2,&ev);
Original Class
SOMDObject
Related Information
Methods: release, create, create_constant, create_SOM_ref
Vedere la pagina 267
1 2 ... 263 264 265 266 267 268 269 270 271 272 273 ... 423 424

Commenti su questo manuale

Nessun commento