|
Rcpp Version 0.9.10
|
#include <RObject.h>

Public Member Functions | |
| SlotProxy (const RObject &v, const std::string &name) | |
| SlotProxy & | operator= (const SlotProxy &rhs) |
| template<typename T > | |
| SlotProxy & | operator= (const T &rhs) |
| template<typename T > | |
| operator T () const | |
Private Member Functions | |
| SEXP | get () const |
| void | set (SEXP x) const |
Private Attributes | |
| const RObject & | parent |
| std::string | slot_name |
| Rcpp::RObject::SlotProxy::SlotProxy | ( | const RObject & | v, |
| const std::string & | name | ||
| ) |
Creates a slot proxy. This throws an exception if the parent object is not an S4 object or if the class of parent object does not have the requested slot
| v | parent object of which we get/set a slot |
| name | slot name |
Definition at line 129 of file RObject.cpp.
| SEXP Rcpp::RObject::SlotProxy::get | ( | ) | const [private] |
Definition at line 144 of file RObject.cpp.
Referenced by operator=().
| Rcpp::RObject::SlotProxy::operator T | ( | ) | const [inline] |
| SlotProxy& Rcpp::RObject::SlotProxy::operator= | ( | const T & | rhs | ) | [inline] |
lhs use. Assigns the slot by wrapping the rhs object
| rhs | wrappable object |
Definition at line 190 of file RObject.h.
References Rcpp::wrap().

| RObject::SlotProxy & Rcpp::RObject::SlotProxy::operator= | ( | const SlotProxy & | rhs | ) |
lhs use. Assigns the target slot using the current value of another slot proxy.
| rhs | another slot proxy |
Definition at line 138 of file RObject.cpp.
References get().

| void Rcpp::RObject::SlotProxy::set | ( | SEXP | x | ) | const [private] |
Definition at line 149 of file RObject.cpp.
References PROTECT(), and Rcpp::RObject::setSEXP().

const RObject& Rcpp::RObject::SlotProxy::parent [private] |
std::string Rcpp::RObject::SlotProxy::slot_name [private] |