Rcpp Version 1.0.9
Module.h File Reference
#include <Rcpp/config.h>
#include <Rcpp/module/CppFunction.h>
#include <Rcpp/module/get_return_type.h>
#include <Rcpp/module/Module_generated_get_signature.h>
#include <Rcpp/module/Module_generated_CppFunction.h>
#include <Rcpp/module/class_Base.h>
#include <Rcpp/module/Module.h>
#include <Rcpp/module/Module_generated_ctor_signature.h>
#include <Rcpp/module/Module_generated_Constructor.h>
#include <Rcpp/module/Module_generated_Factory.h>
#include <Rcpp/module/Module_generated_class_signature.h>
#include <Rcpp/module/Module_generated_CppMethod.h>
#include <Rcpp/module/Module_generated_Pointer_CppMethod.h>
#include <Rcpp/module/Module_Property.h>
#include <Rcpp/module/class.h>
#include <Rcpp/module/Module_generated_function.h>
Include dependency graph for Module.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Rcpp::result< T >
 
class  Rcpp::object< T >
 
class  Rcpp::CppMethod< Class >
 
class  Rcpp::CppInheritedMethod< Class, Parent >
 
class  Rcpp::SignedConstructor< Class >
 
class  Rcpp::SignedFactory< Class >
 
class  Rcpp::SignedMethod< Class >
 
class  Rcpp::S4_CppConstructor< Class >
 
class  Rcpp::S4_CppOverloadedMethods< Class >
 
class  Rcpp::CppProperty< Class >
 
class  Rcpp::CppInheritedProperty< Class, Parent >
 
class  Rcpp::CppFinalizer< Class >
 
class  Rcpp::FunctionFinalizer< Class >
 
class  Rcpp::S4_field< Class >
 
class  Rcpp::enum_< Enum, Parent >
 
class  Rcpp::CppClass
 
class  Rcpp::CppObject
 

Namespaces

 Rcpp
 Rcpp API.
 
 Rcpp::internal
 internal implementation details
 

Macros

#define RCPP_MODULE_BOOT(name)   _rcpp_module_boot_##name
 
#define RCPP_MODULE(name)
 
#define VARIABLE_IS_NOT_USED
 
#define GET_MODULE_SYM   ( moduleSym == NULL ? moduleSym = Rf_install("Module") : moduleSym )
 
#define LOAD_RCPP_MODULE(NAME)
 

Typedefs

typedef bool(* Rcpp::ValidConstructor) (SEXP *, int)
 
typedef bool(* Rcpp::ValidMethod) (SEXP *, int)
 

Functions

template<typename FROM , typename TO >
std::string Rcpp::internal::get_converter_name (const char *from, const char *to)
 
template<typename Class >
SEXP Rcpp::internal::make_new_object (Class *ptr)
 
template<typename FROM , typename TO >
void Rcpp::converter (const char *from, const char *to, TO(*fun)(FROM), const char *docstring=0)
 

Variables

static VARIABLE_IS_NOT_USED SEXP moduleSym = NULL
 

Macro Definition Documentation

◆ GET_MODULE_SYM

#define GET_MODULE_SYM   ( moduleSym == NULL ? moduleSym = Rf_install("Module") : moduleSym )

Definition at line 452 of file Module.h.

◆ LOAD_RCPP_MODULE

#define LOAD_RCPP_MODULE (   NAME)
Value:
Shield<SEXP> __load_module_call__( Rf_lang2( GET_MODULE_SYM, _rcpp_module_boot_##NAME() ) ); \
Rcpp_fast_eval( __load_module_call__, R_GlobalEnv );
#define GET_MODULE_SYM
Definition: Module.h:452

Definition at line 455 of file Module.h.

◆ RCPP_MODULE

#define RCPP_MODULE (   name)
Value:
void _rcpp_module_##name##_init() ; \
static Rcpp::Module _rcpp_module_##name( # name ) ; \
extern "C" SEXP _rcpp_module_boot_##name(){ \
::setCurrentScope( & _rcpp_module_##name ) ; \
_rcpp_module_##name##_init( ) ; \
Rcpp::XPtr<Rcpp::Module> mod_xp(& _rcpp_module_##name , false); \
return mod_xp ; \
} \
void _rcpp_module_##name##_init()
attribute_hidden void setCurrentScope(Rcpp::Module *mod)
Definition: routines.h:276

Definition at line 428 of file Module.h.

◆ RCPP_MODULE_BOOT

#define RCPP_MODULE_BOOT (   name)    _rcpp_module_boot_##name

Definition at line 426 of file Module.h.

◆ VARIABLE_IS_NOT_USED

#define VARIABLE_IS_NOT_USED

Definition at line 444 of file Module.h.

Variable Documentation

◆ moduleSym

VARIABLE_IS_NOT_USED SEXP moduleSym = NULL
static

Definition at line 448 of file Module.h.