22 #ifndef Rcpp_Module_Add_Property_h
23 #define Rcpp_Module_Add_Property_h
25 template <
typename PROP>
26 self&
property(
const char* name_, PROP (Class::*GetMethod)(
void),
const char* docstring = 0){
31 template <
typename PROP>
32 self&
property(
const char* name_, PROP (Class::*GetMethod)(
void)
const,
const char* docstring = 0){
37 template <
typename PROP>
38 self&
property(
const char* name_, PROP (*GetMethod)(Class*),
const char* docstring ){
44 template <
typename PROP>
45 self&
property(
const char* name_, PROP (Class::*GetMethod)(
void),
void (Class::*SetMethod)(PROP),
const char* docstring = 0){
52 template <
typename PROP>
53 self&
property(
const char* name_, PROP (Class::*GetMethod)(
void)
const,
void (Class::*SetMethod)(PROP),
const char* docstring = 0){
62 template <
typename PROP>
63 self&
property(
const char* name_, PROP (Class::*GetMethod)(
void),
void (*SetMethod)(Class*,PROP),
const char* docstring = 0 ){
70 template <
typename PROP>
71 self&
property(
const char* name_, PROP (Class::*GetMethod)(
void)
const ,
void (*SetMethod)(Class*,PROP),
const char* docstring = 0 ){
80 template <
typename PROP>
81 self&
property(
const char* name_, PROP (*GetMethod)(Class*),
void (Class::*SetMethod)(PROP),
const char* docstring = 0 ){
88 template <
typename PROP>
89 self&
property(
const char* name_, PROP (*GetMethod)(Class*),
void (*SetMethod)(Class*,PROP),
const char* docstring = 0 ){
self & property(const char *name_, PROP(Class::*GetMethod)(void), const char *docstring=0)