CXXR (C++ R)
Namespaces | Functions | Variables
Expression.cpp File Reference

($Id: Expression.cpp 1351 2013-03-08 15:12:28Z arr $)

Class CXXR::Expression and associated C interface. More...

#include "CXXR/Expression.h"
#include <iostream>
#include "R_ext/Error.h"
#include "localization.h"
#include "CXXR/ArgList.hpp"
#include "CXXR/Environment.h"
#include "CXXR/Evaluator.h"
#include "CXXR/FunctionBase.h"
#include "CXXR/GCStackRoot.hpp"
#include "CXXR/Symbol.h"
Include dependency graph for Expression.cpp:

Namespaces

namespace  CXXR
 Namespace for the CXXR project.

Functions

SEXP Rf_currentExpression ()
 Expression currently being evaluated.
SEXP Rf_lcons (SEXP cr, SEXP tl)
 Create a CXXR::Expression with a specified car and tail.
void Rf_setCurrentExpression (SEXP e)
 Designate the Expression currently being evaluated.

Variables

SEXP(* CXXR::ForceNonInline::lconsp )(SEXP cr, SEXP tl) = Rf_lcons
GCRoot R_CurrentExpr
 Pointer to expression currently being evaluated.

Detailed Description

Class CXXR::Expression and associated C interface.


Function Documentation

SEXP Rf_currentExpression ( )

Expression currently being evaluated.

Returns:
Pointer to the Expression currently being evaluated.
SEXP Rf_lcons ( SEXP  cr,
SEXP  tl 
)

Create a CXXR::Expression with a specified car and tail.

This function protects its arguments from the garbage collector.

Parameters:
crPointer to the 'car' of the element to be created.
tlPointer to the 'tail' of the element to be created, which must be of a CXXR::PairList type (checked).
Returns:
Pointer to the constructed list.
void Rf_setCurrentExpression ( SEXP  e)

Designate the Expression currently being evaluated.

Parameters:
ePointer to the Expression now to be evaluated. (Not currently checked in any way.)