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

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

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

#include "CXXR/ConsCell.h"
#include <iostream>
#include "CXXR/ByteCode.hpp"
#include "CXXR/DottedArgs.hpp"
#include "CXXR/Expression.h"
#include "CXXR/PairList.h"
#include "CXXR/StringVector.h"
#include "CXXR/Symbol.h"
Include dependency graph for ConsCell.cpp:

Namespaces

namespace  CXXR
 Namespace for the CXXR project.

Functions

void SET_TAG (SEXP x, SEXP y)
 Set the tag of a CXXR::ConsCell.
SEXP SETCAR (SEXP x, SEXP y)
 Set the 'car' value of a CXXR::ConsCell.
SEXP Rf_allocSExp (SEXPTYPE t)
 Create an object of a type derived from CXXR::ConsCell.

Variables

RObject *(* CXXR::ForceNonInline::car0p )(ConsCell *) = CXXR::car0
PairList *(* CXXR::ForceNonInline::tail0p )(ConsCell *) = CXXR::tail0
SEXP(* CXXR::ForceNonInline::CAARp )(SEXP e) = CAAR
SEXP(* CXXR::ForceNonInline::CARp )(SEXP e) = CAR
SEXP(* CXXR::ForceNonInline::TAGp )(SEXP e) = TAG
SEXP(* CXXR::ForceNonInline::allocSExpp )(SEXPTYPE t) = Rf_allocSExp

Detailed Description

Class CXXR::ConsCell and associated C interface.


Function Documentation

SEXP Rf_allocSExp ( SEXPTYPE  t)

Create an object of a type derived from CXXR::ConsCell.

The object is created with null car, tag and tail pointers.

Parameters:
tThe SEXPTYPE of the required object. Must be one of LISTSXP, LANGSXP, DOTSXP or BCODESXP (not checked).
Returns:
Pointer to the created object.
void SET_TAG ( SEXP  x,
SEXP  y 
)

Set the tag of a CXXR::ConsCell.

Parameters:
xPointer to a CXXR::ConsCell (checked).
yPointer a CXXR::RObject representing the new tag of the CXXR::ConsCell.
SEXP SETCAR ( SEXP  x,
SEXP  y 
)

Set the 'car' value of a CXXR::ConsCell.

Parameters:
xPointer to a CXXR::ConsCell (checked).
yPointer a CXXR::RObject representing the new value of the list car.
Returns:
y.