Rcpp Version 1.1.2
Loading...
Searching...
No Matches
traits.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_TRAITS(__CLASS__, __SEXPTYPE__)
#define RCPP_ENUM_TRAITS(__ENUM__)

Macro Definition Documentation

◆ RCPP_ENUM_TRAITS

#define RCPP_ENUM_TRAITS ( __ENUM__)
Value:
RCPP_TRAITS(__ENUM__,INTSXP)
#define RCPP_TRAITS(__CLASS__, __SEXPTYPE__)
Definition traits.h:25

Definition at line 40 of file traits.h.

◆ RCPP_TRAITS

#define RCPP_TRAITS ( __CLASS__,
__SEXPTYPE__ )
Value:
namespace Rcpp{ namespace traits { \
template<> struct r_type_traits< __CLASS__ >{ \
typedef r_type_primitive_tag r_category ; \
} ; \
template<> struct r_type_traits< std::pair< std::string , __CLASS__ > >{ \
typedef r_type_pairstring_primitive_tag r_category ; \
} ; \
template<> struct wrap_type_traits< __CLASS__ >{ \
typedef wrap_type_primitive_tag wrap_category ; \
} ; \
template<> struct r_sexptype_traits< __CLASS__ >{ \
enum{ rtype = __SEXPTYPE__ } ; \
} ; \
} }
Rcpp API.
Definition algo.h:28
Definition String.h:736

Definition at line 25 of file traits.h.