
Wed, 05/03/2000 - 14:12
Forums:
Hi!
In Section 2.2.2 of the "Foundation Classes"-documentation it is written that a handle must be de-referenced in order to have access to the object which it refers to. A few pages later I found the note stating "There is no (*)de-referencing operator for handles". So what else can I do to obtain the object referenced by a handle?
Nils
Mon, 05/22/2006 - 13:21
Hallo Nils,
I have the same question concerning handle de-referencing, do you already have solved it?
Regards,
Gernot
Mon, 05/22/2006 - 17:30
well, if you *really* want to de reference an Handle you can, but you will loose the reference counting. It can create big problems.
you can do :
Handle(Geom_Surface) hsurf = ...
Geom_Surface* surf = hsurf.operator->();
Mon, 05/22/2006 - 21:56
Don't do it :) Really! Don't de-reference an handle! At least, use a reference.
:)
Wed, 01/10/2007 - 12:55
Hello Thomas,
can you explain how I can use References and Handles?
I have to create a list of Handles, or a list of objects of the "handled" data type, for example Poly_Triangulation.
Regards,
Gernot