CXXR (C++ R)
Classes | Namespaces | Macros | Functions | Variables
Evaluator.h File Reference

($Id: Evaluator.h 1348 2013-02-25 17:49:03Z arr $)

Class CXXR::Evaluator. More...

#include "R_ext/Boolean.h"
#include "CXXR/Environment.h"
#include "CXXR/PairList.h"
#include <utility>
Include dependency graph for Evaluator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CXXR::Evaluator
 Framework for R command evaluation. More...

Namespaces

namespace  CXXR
 Namespace for the CXXR project.

Functions

int R_isMissing (SEXP symbol, SEXP rho)
 Is a Symbol missing within an Environment?
RObjectCXXR::evaluate (RObject *object, Environment *env)
 Shorthand for Evaluator::evaluate().
SEXP Rf_eval (SEXP e, SEXP rho)
 Evaluate an object in a specified Environment.

Variables

Rboolean R_Visible
 Print expression value?
int R_interrupts_pending
 Are any user interrupts currently pending?
Rboolean R_interrupts_suspended
 Are interrupts currently suspended?

Detailed Description

Class CXXR::Evaluator.


Function Documentation

int R_isMissing ( SEXP  symbol,
SEXP  rho 
)

Is a Symbol missing within an Environment?

Parameters:
symbolPointer to the Symbol whose missing status is required.
rhoPointer to the Environment in whose Frame symbol is to be sought.
Returns:
A non-zero value iff symbol is missing in the Frame of rho.
Note:
For more information, refer to the code, which is surprisingly complicated.
SEXP Rf_eval ( SEXP  e,
SEXP  rho 
)
inline

Evaluate an object in a specified Environment.

Parameters:
ePointer (possibly null) to the object to be evaluated.
rhoPointer to an Environment (checked unless e is null).
Returns:
Pointer to the result of evaluating e in rho, or a null pointer if e is null.

Variable Documentation

int R_interrupts_pending

Are any user interrupts currently pending?

If user interrupts are attempted while user interrupts are suspended, this is set non-zero. The interrupt is then services when the period of suspension ends.

Rboolean R_Visible

Print expression value?

If R_Visible is TRUE when the evaluation of a top-level R expression completes, the value of the expression is printed.

Note:
In CXXR, R_Visible is evolving towards becoming a static data member of class CXXR::Evaluator.