Rcpp Version 0.12.12
xp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RCPP_XP_FIELD_GET(__NAME__, __CLASS__, __FIELD__)
 
#define RCPP_XP_FIELD_SET(__NAME__, __CLASS__, __FIELD__)
 
#define RCPP_XP_FIELD(__PREFIX__, __CLASS__, __FIELD__)
 

Macro Definition Documentation

#define RCPP_XP_FIELD (   __PREFIX__,
  __CLASS__,
  __FIELD__ 
)
Value:
RCPP_XP_FIELD_GET( RCPP_PP_CAT(__PREFIX__,_get), __CLASS__, __FIELD__ ) \
RCPP_XP_FIELD_SET( RCPP_PP_CAT(__PREFIX__,_set), __CLASS__, __FIELD__ )
#define RCPP_XP_FIELD_GET(__NAME__, __CLASS__, __FIELD__)
Definition: xp.h:25
#define RCPP_XP_FIELD_SET(__NAME__, __CLASS__, __FIELD__)
Definition: xp.h:44
#define RCPP_PP_CAT(a, b)
Definition: cat.hpp:22

Definition at line 61 of file xp.h.

#define RCPP_XP_FIELD_GET (   __NAME__,
  __CLASS__,
  __FIELD__ 
)
Value:
extern "C" SEXP RCPP_PP_CAT(__NAME__,__rcpp_info__)(){ \
using Rcpp::_ ; \
_["class"] = #__CLASS__ , \
_["field"] = #__FIELD__ \
) ; \
info.attr( "class" ) = "rcppxpfieldgetinfo" ; \
return info ; \
} \
extern "C" SEXP __NAME__( SEXP xp ){ \
BEGIN_RCPP \
SEXP res = R_NilValue ; \
res = ::Rcpp::wrap( ptr->__FIELD__ ) ; \
return res ; \
}
static internal::NamedPlaceHolder _
Definition: Named.h:64
#define RCPP_PP_CAT(a, b)
Definition: cat.hpp:22
Vector< VECSXP > List
Definition: instantiation.h:37
static Vector create()
Definition: Vector.h:1117
#define END_RCPP
Definition: macros.h:67
SEXP wrap(const Date &date)
Definition: Date.h:38

Definition at line 25 of file xp.h.

#define RCPP_XP_FIELD_SET (   __NAME__,
  __CLASS__,
  __FIELD__ 
)
Value:
extern "C" SEXP RCPP_PP_CAT(__NAME__,__rcpp_info__)(){ \
using Rcpp::_ ; \
_["class"] = #__CLASS__ , \
_["field"] = #__FIELD__ \
) ; \
info.attr( "class" ) = "rcppxpfieldsetinfo" ; \
return info ; \
} \
extern "C" SEXP __NAME__( SEXP xp, SEXP value ){ \
ptr->__FIELD__ = ::Rcpp::internal::converter(value) ; \
}
static internal::NamedPlaceHolder _
Definition: Named.h:64
#define BEGIN_RCPP
Definition: macros.h:30
#define RCPP_PP_CAT(a, b)
Definition: cat.hpp:22
Vector< VECSXP > List
Definition: instantiation.h:37
static Vector create()
Definition: Vector.h:1117
void converter(const char *from, const char *to, TO(*fun)(FROM), const char *docstring=0)
Definition: Module.h:377
#define END_RCPP
Definition: macros.h:67

Definition at line 44 of file xp.h.