CXXR (C++ R) API
Classes | Namespaces | Functions | Variables
Expression.h File Reference

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

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

#include "CXXR/PairList.h"
#include <boost/serialization/access.hpp>
#include <boost/serialization/nvp.hpp>
Include dependency graph for Expression.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CXXR::Expression
 Singly linked list representing an R expression. More...

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

CXXR::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.)