|
CppGC
1.01
|
#include <gc.h>
Public Member Functions | |
| T & | operator* () |
| T const & | operator* () const |
| T * | operator-> () |
| T const * | operator-> () const |
| operator T * () | |
| operator T const * () const | |
| T * | operator= (T const *val) |
| bool | operator== (T const *other) |
| bool | operator== (Var< T > const &other) |
| bool | operator!= (T const *other) |
| bool | operator!= (Var< T > const &other) |
| virtual void | mark (MemoryAllocator *allocator) |
| Var (T *ptr=NULL) | |
| Var (Var< T > const &var) | |
Private Attributes | |
| Root * | next |
Class for variable, protecting object tree from GC. It should be used instead of normal C++ pointers. If GC is invoked explicitly by gc() or allowGC() methods, then it is necessary to protect accessed objects only before invocation of these methods. If GC is started automatically, then application should be ready that GC can be started at any moment of time and so should always protect all live object from GC by referencing them from Var<T> variables.
| virtual void GC::Var< T >::mark | ( | MemoryAllocator * | allocator | ) | [inline, virtual] |
1.7.6.1