GCpp::weak_ptr< T > Class Template ReferenceWeak pointer to managed objects.
List of all members.
Weak pointer to managed objects.
class GCpp::weak_ptr< T >
Allows accessing managed instances without being recognized by the collectors. A weak pointer validates against the block of memory it points to, not the strong pointer it's been created from. Be careful to either stop the collector or having at least one strong (gc_ptr) pointer referencing the same object(s) while working with weak pointers.
Definition at line 29 of file weak_pointer.hpp.
Constructor & Destructor Documentation
This instance references the same object as the given gc_ptr after construction.
|p_item ||strong pointer, should not point to 0 |
Definition at line 42 of file weak_pointer.hpp.
Member Function Documentation
Creates a strong pointer from this, but only if this is valid.
- new gc_ptr instance
Definition at line 52 of file weak_pointer.hpp.
The documentation for this class was generated from the following file:
Generated on Thu Dec 27 14:02:01 2007 for GC++ by