Reference

The Reference class is a wrapper of reference class (RC) objects in R.

Public Member Functions

Constructors

Reference()

Default constructor. Resulting in R_NilValue.

Reference(const Reference &other)

Copy constructor. Resulting object will share the SEXP data with other.

template <typename Proxy>

Reference(const GenericProxy<Proxy> &proxy)

Create object from a proxy, such as attribute, slot, field, etc.

Reference(SEXP x)

Wrap a given RC object.

Reference(const std::string &klass)

Create an RC object of the requested class.

Inherited from FieldProxyPolicy

FieldProxy field(const std::string &name)

Extract the field with name name. This can appear in the left hand side of assignment.

const_FieldProxy field(const std::string &name) const

Extract the field with name name. Read-only.

Inherited from other classes

See RObject.