Rcpp Version 1.0.9
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

◆ RCPP_XP_FIELD

#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_PP_CAT(a, b)
Definition: cat.hpp:22
#define RCPP_XP_FIELD_GET(__NAME__, __CLASS__, __FIELD__)
Definition: xp.h:25

Definition at line 61 of file xp.h.

◆ RCPP_XP_FIELD_GET

#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 ; \
END_RCPP \
}
static Vector create()
Definition: Vector.h:1122
static internal::NamedPlaceHolder _
Definition: Named.h:64
Vector< VECSXP > List
Definition: instantiation.h:37
SEXP wrap(const Date &date)
Definition: Date.h:38

Definition at line 25 of file xp.h.

◆ RCPP_XP_FIELD_SET

#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 ){ \
BEGIN_RCPP \
ptr->__FIELD__ = ::Rcpp::internal::converter(value) ; \
END_RCPP \
}
void converter(const char *from, const char *to, TO(*fun)(FROM), const char *docstring=0)
Definition: Module.h:377

Definition at line 44 of file xp.h.