dynamic::gc::root_ref< T > Class Template Reference
[Memory and thread management]

Used to manage an object which is a root variable. More...

#include <gc.hpp>

List of all members.

Public Types

typedef T value_type

Public Member Functions

 root_ref (T *t)
 Keeps a root ref on t.
 root_ref (const root_ref &other)
 Keeps a root ref on other.
 ~root_ref ()
 Releases the root ref.
root_refoperator= (root_ref other)
 Ref other and release current ref.
T * operator-> () const
 Access the object.
T & operator* () const
 Access the object.
T * get () const
 Access the object.
void swap (root_ref &other)
 Swaps with another object.


Detailed Description

template<typename T>
class dynamic::gc::root_ref< T >

Used to manage an object which is a root variable.

A root variable is an object which is in the "root set". Root variables are never deleted by the garbage collector, and are used to seed the search of all live objects.

Definition at line 194 of file gc.hpp.


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

Generated on Thu Dec 18 22:14:19 2008 for C++Script by  doxygen 1.5.7.1