CXXR (C++ R) API
Public Member Functions
CXXR::RAllocStack::Scope Class Reference

Object constraining lifetime of R_alloc() blocks. More...

#include <RAllocStack.h>

List of all members.

Public Member Functions

size_t startSize () const
 RAllocStack size at construction.

Detailed Description

Object constraining lifetime of R_alloc() blocks.

Scope objects must be declared on the processor stack (i.e. as C++ automatic variables). Any R_alloc() block allocated during the lifetime of a Scope object will be automatically deallocated when that lifetime comes to an end, i.e. when the Scope object itself goes out of scope.


Member Function Documentation

size_t CXXR::RAllocStack::Scope::startSize ( ) const
inline

RAllocStack size at construction.

Returns:
The size of the RAllocStack at the time this Scope object was constructed. The RAllocStack will be restored to this size by the Scope destructor.

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