|
CppGC
1.01
|
#include <gc.h>
Protected Member Functions | |
| virtual void | mark (MemoryAllocator *allocator)=0 |
| Root () | |
| ~Root () | |
Protected Attributes | |
| Root * | next |
Friends | |
| class | MemoryAllocator |
Base class for variables referencing objects and protecting them from GC.
| GC::Root::Root | ( | ) | [inline, protected] |
Register objects tree root in the current memory allocator
References GC::MemoryAllocator::registerRoot().
| GC::Root::~Root | ( | ) | [inline, protected] |
Unregister objects tree root in the current memory allocator
References GC::MemoryAllocator::unregisterRoot().
| virtual void GC::Root::mark | ( | MemoryAllocator * | allocator | ) | [protected, pure virtual] |
Mark root object
| allocator | memory allocator |
Implemented in GC::VectorVar< T >, GC::ArrayVar< T, size >, and GC::Var< T >.
1.7.6.1