CppGC  1.01
Protected Member Functions | Protected Attributes | Friends
GC::Root Class Reference

#include <gc.h>

Inheritance diagram for GC::Root:
GC::ArrayVar< T, size > GC::Var< T > GC::VectorVar< T >

List of all members.

Protected Member Functions

virtual void mark (MemoryAllocator *allocator)=0
 Root ()
 ~Root ()

Protected Attributes

Rootnext

Friends

class MemoryAllocator

Detailed Description

Base class for variables referencing objects and protecting them from GC.


Constructor & Destructor Documentation

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().


Member Function Documentation

virtual void GC::Root::mark ( MemoryAllocator allocator) [protected, pure virtual]

Mark root object

Parameters:
allocatormemory allocator

Implemented in GC::VectorVar< T >, GC::ArrayVar< T, size >, and GC::Var< T >.


The documentation for this class was generated from the following file: