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

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

Definition at line 40 of file traits.h.

#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: swap.h:25
Rcpp API.
Definition: algo.h:28
r_type_generic_tag r_category

Definition at line 25 of file traits.h.