Rcpp Version 1.0.9
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__)   RCPP_TRAITS(__ENUM__,INTSXP)
 

Macro Definition Documentation

◆ RCPP_ENUM_TRAITS

#define RCPP_ENUM_TRAITS (   __ENUM__)    RCPP_TRAITS(__ENUM__,INTSXP)

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: swap.h:25
r_type_generic_tag r_category
wrap_type_unknown_tag wrap_category

Definition at line 25 of file traits.h.