Rcpp Version 1.0.9
module.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_EXPOSED_AS(CLASS)
 
#define RCPP_EXPOSED_WRAP(CLASS)   namespace Rcpp{ namespace traits{ template<> struct wrap_type_traits< CLASS >{typedef wrap_type_module_object_tag wrap_category ; } ; }}
 
#define RCPP_EXPOSED_CLASS_NODECL(CLASS)
 
#define RCPP_EXPOSED_CLASS(CLASS)
 
#define RCPP_EXPOSED_ENUM_AS(CLASS)   namespace Rcpp{ namespace traits{ template<> struct r_type_traits< CLASS >{ typedef r_type_enum_tag r_category ; } ; }}
 
#define RCPP_EXPOSED_ENUM_WRAP(CLASS)   namespace Rcpp{ namespace traits{ template<> struct wrap_type_traits< CLASS >{typedef wrap_type_enum_tag wrap_category ; } ; }}
 
#define RCPP_EXPOSED_ENUM_NODECL(CLASS)
 
#define RCPP_EXPOSED_ENUM(CLASS)
 

Macro Definition Documentation

◆ RCPP_EXPOSED_AS

#define RCPP_EXPOSED_AS (   CLASS)

This macros should be used by packages using modules when a type is used as a parameter of a function or method exposed by modules. This defines the necessary trait that makes the class as<>'able

Definition at line 29 of file module.h.

◆ RCPP_EXPOSED_CLASS

#define RCPP_EXPOSED_CLASS (   CLASS)
Value:
class CLASS; \
RCPP_EXPOSED_CLASS_NODECL(CLASS)

Definition at line 69 of file module.h.

◆ RCPP_EXPOSED_CLASS_NODECL

#define RCPP_EXPOSED_CLASS_NODECL (   CLASS)
Value:
RCPP_EXPOSED_AS(CLASS) \
RCPP_EXPOSED_WRAP(CLASS)
#define RCPP_EXPOSED_AS(CLASS)
Definition: module.h:29

Definition at line 65 of file module.h.

◆ RCPP_EXPOSED_ENUM

#define RCPP_EXPOSED_ENUM (   CLASS)
Value:
class CLASS; \
RCPP_EXPOSED_ENUM_NODECL(CLASS)

Definition at line 83 of file module.h.

◆ RCPP_EXPOSED_ENUM_AS

#define RCPP_EXPOSED_ENUM_AS (   CLASS)    namespace Rcpp{ namespace traits{ template<> struct r_type_traits< CLASS >{ typedef r_type_enum_tag r_category ; } ; }}

handling enums: TODO use is_enum from C++11 or boost to have those automatic

Definition at line 76 of file module.h.

◆ RCPP_EXPOSED_ENUM_NODECL

#define RCPP_EXPOSED_ENUM_NODECL (   CLASS)
Value:
RCPP_EXPOSED_ENUM_WRAP(CLASS)
#define RCPP_EXPOSED_ENUM_AS(CLASS)
Definition: module.h:76

Definition at line 79 of file module.h.

◆ RCPP_EXPOSED_ENUM_WRAP

#define RCPP_EXPOSED_ENUM_WRAP (   CLASS)    namespace Rcpp{ namespace traits{ template<> struct wrap_type_traits< CLASS >{typedef wrap_type_enum_tag wrap_category ; } ; }}

Definition at line 77 of file module.h.

◆ RCPP_EXPOSED_WRAP

#define RCPP_EXPOSED_WRAP (   CLASS)    namespace Rcpp{ namespace traits{ template<> struct wrap_type_traits< CLASS >{typedef wrap_type_module_object_tag wrap_category ; } ; }}

Definition at line 63 of file module.h.