CXXR (C++ R) API
Static Public Member Functions
CXXR::GCNode::GCInhibitor Struct Reference

Not for general use. More...

#include <GCNode.hpp>

List of all members.

Static Public Member Functions

static bool active ()
 Is inhibition currently in effect?

Detailed Description

Not for general use.

All garbage collection will be inhibited while any object of this type exists.

Deprecated:
This class is provided for use in implementing functions (such as SET_ATTRIB()) in the Rinternals.h interface which would not give rise to any memory allocations as implemented in CR but may do so as implemented in CXXR. It is also used within the GCNode class to handle reentrant calls to gclite() and gc(). Its use for other purposes is deprecated: use instead more selective protection against garbage collection such as that provided by class GCStackRoot<T>.
Note:
GC inhibition is implemented as an object type to facilitate reinstatement of garbage collection when an exception is thrown.

Member Function Documentation

static bool CXXR::GCNode::GCInhibitor::active ( )
inlinestatic

Is inhibition currently in effect?

Returns:
true iff garbage collection is currently inhibited.

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