CXXR (C++ R) API
|
Class CXXR::Promise and associated C interface. More...
#include "CXXR/RObject.h"
#include "CXXR/Evaluator.h"
#include <boost/serialization/access.hpp>
#include <boost/serialization/base_object.hpp>
#include <boost/serialization/nvp.hpp>
#include "CXXR/Expression.h"
#include "CXXR/Environment.h"
#include "CXXR/Symbol.h"
Go to the source code of this file.
Classes | |
class | CXXR::Promise |
Mechanism for deferred evaluation. More... |
Namespaces | |
namespace | CXXR |
Namespace for the CXXR project. |
Macros | |
#define | PREXPR(e) PRCODE(e) |
Functions | |
RObject * | CXXR::forceIfPromise (RObject *object) |
Use forced value if RObject is a Promise. | |
template<class Archive > | |
void | boost::serialization::load_construct_data (Archive &ar, CXXR::Promise *t, const unsigned int version) |
Template specialisation. | |
template<class Archive > | |
void | boost::serialization::save_construct_data (Archive &ar, const CXXR::Promise *t, const unsigned int version) |
Template specialisation. | |
SEXP | Rf_mkPROMISE (SEXP expr, SEXP env) |
Create a CXXR::Promise object. | |
SEXP | PRCODE (SEXP x) |
Access the expression of a CXXR::Promise. | |
SEXP | PRENV (SEXP x) |
Access the environment of a CXXR::Promise. | |
SEXP | PRVALUE (SEXP x) |
Access the value of a CXXR::Promise. | |
void | SET_PRVALUE (SEXP x, SEXP v) |
Set the value of a CXXR::Promise. |
Class CXXR::Promise and associated C interface.
Access the expression of a CXXR::Promise.
x | Pointer to a CXXR::Promise (checked). |
Access the environment of a CXXR::Promise.
x | Pointer to a CXXR::Promise (checked). |
Access the value of a CXXR::Promise.
x | Pointer to a CXXR::Promise (checked). |
Create a CXXR::Promise object.
expr | Expression to be evaluated to provide the value of the CXXR::Promise. |
env | CXXR::Environment in which expr is to be evaluated. |
Set the value of a CXXR::Promise.
Once the value is set to something other than R_UnboundValue, the environment pointer is set null.
x | Pointer to a CXXR::Promise (checked). |
v | Pointer to the value to be assigned to the promise. |