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

Public Member Functions | |
| FieldProxy (const Reference &v, const std::string &name) | |
| FieldProxy & | operator= (const FieldProxy &rhs) |
| template<typename T > | |
| FieldProxy & | operator= (const T &rhs) |
| template<typename T > | |
| operator T () const | |
Private Member Functions | |
| SEXP | get () const |
| void | set (SEXP x) const |
Private Attributes | |
| const Reference & | parent |
| std::string | field_name |
Proxy for objects slots.
Definition at line 69 of file Reference.h.
| Rcpp::Reference::FieldProxy::FieldProxy | ( | const Reference & | v, |
| const std::string & | name | ||
| ) |
Creates a field proxy.
| v | parent object of which we get/set a field |
| name | field name |
Definition at line 72 of file Reference.cpp.
| SEXP Rcpp::Reference::FieldProxy::get | ( | ) | const [private] |
Definition at line 81 of file Reference.cpp.
References Rcpp::RObject::asSexp(), PROTECT(), and Rcpp::internal::try_catch().
Referenced by operator=().

| Rcpp::Reference::FieldProxy::operator T | ( | ) | const [inline] |
rhs use. Retrieves the current value of the slot and structures it as a T object. This only works when as<T> makes sense
Definition at line 102 of file Reference.h.
| FieldProxy& Rcpp::Reference::FieldProxy::operator= | ( | const T & | rhs | ) | [inline] |
lhs use. Assigns the slot by wrapping the rhs object
| rhs | wrappable object |
Definition at line 92 of file Reference.h.
References Rcpp::wrap().

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

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

std::string Rcpp::Reference::FieldProxy::field_name [private] |
Definition at line 108 of file Reference.h.
const Reference& Rcpp::Reference::FieldProxy::parent [private] |
Definition at line 107 of file Reference.h.