($Id: GCRoot.h 1353 2013-03-18 16:59:38Z arr $)
Templated class CXXR::GCRoot and its untemplated base class CXXR::GCRootBase.  
More...
#include "CXXR/RObject.h"
#include <list>
#include <tr1/unordered_map>
#include "CXXR/GCNode.hpp"
 
Go to the source code of this file.
Namespaces | 
| namespace   | CXXR | 
|   | Namespace for the CXXR project. 
  | 
Detailed Description
Templated class CXXR::GCRoot and its untemplated base class CXXR::GCRootBase. 
Function Documentation
      
        
          | void R_PreserveObject  | 
          ( | 
          SEXP  | 
          object | ) | 
           | 
        
      
 
Protect object against garbage collection. 
This is intended for long-term protection, for which PROTECT() etc. would be inappropriate.
- Parameters:
 - 
  
    | object | Pointer to the object to be preserved. It is permissible for this to be a null pointer.  | 
  
   
 
 
      
        
          | void R_ReleaseObject  | 
          ( | 
          SEXP  | 
          object | ) | 
           | 
        
      
 
Remove object's protection against garbage collection. 
- Parameters:
 - 
  
    | object | Pointer to the object whose protection is to be removed. It is permissible (but pointless) for this to be a pointer to an object that is not currently protected by R_PreserveObject(), but in that case R_ReleaseObject() has no effect.  |