22 #ifndef Rcpp_api_meat_Environment_h
23 #define Rcpp_api_meat_Environment_h
27 template <
template <
class>
class StoragePolicy>
28 template <
typename WRAPPABLE>
33 template <
template <
class>
class StoragePolicy>
35 Shield<SEXP> wrapped(
wrap(name));
36 Shield<SEXP> env(as_environment(wrapped));
40 template <
template <
class>
class StoragePolicy>
42 Shield<SEXP> wrapped(
wrap(pos));
43 Shield<SEXP> env(as_environment(wrapped));
48 Function newEnv(
"new.env", R_BaseNamespace);
49 return newEnv(
_[
"size"] = size,
_[
"parent"] = R_EmptyEnv);
53 Function newEnv(
"new.env", R_BaseNamespace);
54 return newEnv(
_[
"size"] = size,
_[
"parent"] =
parent);
Function_Impl< PreserveStorage > Function
Environment_Impl(int pos)
bool assign(const std::string &name, SEXP x) const
bool assign(const std::string &name, const WRAPPABLE &x) const
static internal::NamedPlaceHolder _
Environment_Impl parent() const
Environment_Impl< PreserveStorage > Environment
Environment new_env(int size=29)
SEXP wrap(const Date &date)