CXXR (C++ R) API
Public Member Functions | Friends
CXXR::NodeStack::Scope Class Reference

Object constraining lifetime of NodeStack entries. More...

#include <NodeStack.hpp>

Inheritance diagram for CXXR::NodeStack::Scope:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Scope (NodeStack *stack)
 Constructor.

Friends

class NodeStack

Detailed Description

Object constraining lifetime of NodeStack entries.

Scope objects must be declared on the processor stack (i.e. as C++ automatic variables). Each Scope is associated with a particular NodeStack object. Any entry pushed onto that NodeStack object during the lifetime of the Scope object will be automatically popped off when that lifetime comes to an end, i.e. when the Scope object itself goes out of scope.


Constructor & Destructor Documentation

CXXR::NodeStack::Scope::Scope ( NodeStack stack)
inline

Constructor.

Parameters:
stackNon-null pointer to the NodeStack object with which this Scope is to be associated.

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