Gnash  0.8.11dev
Public Member Functions | List of all members
gnash::GcRoot Class Referenceabstract

Abstract class to allow the GC to store "roots" into a container. More...

#include <GC.h>

Inheritance diagram for gnash::GcRoot:
gnash::movie_root

Public Member Functions

virtual void markReachableResources () const =0
 Scan all GC resources reachable by this instance. More...
 
virtual ~GcRoot ()
 

Detailed Description

Abstract class to allow the GC to store "roots" into a container.

Any class expected to act as a "root" for the garbage collection should derive from this class, and implement the markReachableResources() function.

Constructor & Destructor Documentation

§ ~GcRoot()

virtual gnash::GcRoot::~GcRoot ( )
inlinevirtual

Member Function Documentation

§ markReachableResources()

virtual void gnash::GcRoot::markReachableResources ( ) const
pure virtual

Scan all GC resources reachable by this instance.

This function is invoked on roots registered to the collector.

Use setReachable() on the resources stored in this container.

Implemented in gnash::movie_root.

Referenced by gnash::GcResource::setReachable().


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