#include <gc++.hpp>
Public Member Functions | |
gc_ptr () | |
Default constructor. | |
gc_ptr (T *p_item) | |
Constructor. | |
gc_ptr< T > & | operator= (const gc_ptr< T > &p_other) |
Assignment. | |
gc_ptr< T > & | operator= (T *p_item) |
Assignment. | |
operator bool () | |
Conversion to bool. | |
T * | operator-> () const |
Access. | |
T & | operator * () const |
Access. | |
void * | storage () const |
accessor | |
Public Attributes | |
GCBasePointer * | next |
Implementation detail. | |
GCBasePointer * | prior |
Implementation detail. | |
Protected Member Functions | |
char | fetch_state () |
state | |
Protected Attributes | |
void * | f_storage |
the managed object | |
char | f_state |
state |
This pointer type has to be used to hold objects allocated with gcnew .
Definition at line 242 of file gc++.hpp.
GCpp::gc_ptr< T >::gc_ptr | ( | T * | p_item | ) | [inline, explicit] |
GCpp::gc_ptr< T >::operator bool | ( | ) | [inline] |
Conversion to bool.
Definition at line 277 of file gc++.hpp.
References GCpp::GCBasePointer::f_storage.
T* GCpp::gc_ptr< T >::operator-> | ( | ) | const [inline] |
Access.
Definition at line 285 of file gc++.hpp.
References GCpp::GCBasePointer::f_storage.
T& GCpp::gc_ptr< T >::operator * | ( | ) | const [inline] |
Access.
Unspecified behaviour (read: crash) if there is nothing to dereference.
Definition at line 295 of file gc++.hpp.
References GCpp::GCBasePointer::f_storage.