Go to the source code of this file.
◆ RCPP_ENUM_TRAITS
| #define RCPP_ENUM_TRAITS |
( |
| __ENUM__ | ) |
|
Value:
#define RCPP_TRAITS(__CLASS__, __SEXPTYPE__)
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__ } ; \
} ; \
} }
Definition at line 25 of file traits.h.