#include <gc++.hpp>
Public Member Functions | |
gc_container () | |
Default constructor. | |
gc_container (T *p_item) | |
Constructor. | |
gc_container< T > & | operator= (const gc_container< T > &p_other) |
Assignment. | |
gc_container< 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 |
If the need to hold STL containerswith gc_new'd objects, it is best to put them into a container which itself has been allocated by gcnew and is referenced by an instance of the following class.
Definition at line 326 of file gc++.hpp.
GCpp::gc_container< T >::gc_container | ( | T * | p_item | ) | [inline, explicit] |
GCpp::gc_container< T >::operator bool | ( | ) | [inline] |
Conversion to bool.
Definition at line 361 of file gc++.hpp.
References GCpp::GCBasePointer::f_storage.
T* GCpp::gc_container< T >::operator-> | ( | ) | const [inline] |
Access.
Definition at line 369 of file gc++.hpp.
References GCpp::GCBasePointer::f_storage.
T& GCpp::gc_container< T >::operator * | ( | ) | const [inline] |
Access.
Unspecified behaviour (read: crash) if there is nothing to dereference.
Definition at line 379 of file gc++.hpp.
References GCpp::GCBasePointer::f_storage.