18 #ifndef Rcpp_proxy_EnvironmentBinding_h
19 #define Rcpp_proxy_EnvironmentBinding_h
23 template <
typename EnvironmentClass>
29 Binding( EnvironmentClass& env_,
const std::string& name_) :
33 return env.bindingIsActive(
name) ;
36 return env.bindingIsLocked(
name) ;
53 template <
typename WRAPPABLE>
56 template <
typename T>
operator T()
const;
68 EnvironmentClass&
env ;
74 const_Binding(
const EnvironmentClass& env_,
const std::string& name_) :
78 return env.bindingIsActive(
name) ;
81 return env.bindingIsLocked(
name) ;
86 template <
typename T>
operator T()
const;
94 const EnvironmentClass&
env ;
99 return const_Binding(
static_cast<const EnvironmentClass&
>(*
this), name ) ;
102 return Binding(
static_cast<EnvironmentClass&
>(*
this), name ) ;
Binding(EnvironmentClass &env_, const std::string &name_)
Binding & operator=(const Binding &rhs)
Binding & operator=(const WRAPPABLE &rhs)
const EnvironmentClass & env
const_Binding(const EnvironmentClass &env_, const std::string &name_)
const_Binding operator[](const std::string &name) const
Binding operator[](const std::string &name)