Rcpp Version 0.12.14
Module.cpp File Reference
#include <Rcpp.h>
#include "internal.h"
Include dependency graph for Module.cpp:

Go to the source code of this file.

Namespaces

 Rcpp
 Rcpp API.
 

Macros

#define COMPILING_RCPP
 
#define CHECK_DUMMY_OBJ(p)   if (p == rcpp_dummy_pointer) throw Rcpp::not_initialized()
 

Typedefs

typedef Rcpp::XPtr< Rcpp::ModuleXP_Module
 
typedef Rcpp::XPtr< Rcpp::class_BaseXP_Class
 
typedef Rcpp::XPtr< Rcpp::CppFunctionBaseXP_Function
 

Functions

 RCPP_FUN_1 (bool, Class__has_default_constructor, XP_Class cl)
 
 RCPP_FUN_2 (SEXP, Module__get_function, XP_Module module, std::string fun)
 
 RCPP_FUN_2 (bool, Class__has_method, XP_Class cl, std::string m)
 
 RCPP_FUN_2 (bool, Class__has_property, XP_Class cl, std::string m)
 
 RCPP_FUN_1 (std::string, Class__name, XP_Class cl)
 
 RCPP_FUN_2 (bool, Module__has_function, XP_Module module, std::string met)
 
 RCPP_FUN_2 (bool, Module__has_class, XP_Module module, std::string cl)
 
 RCPP_FUN_2 (Rcpp::CppClass, Module__get_class, XP_Module module, std::string cl)
 
 RCPP_FUN_1 (bool, CppObject__needs_init, SEXP xp)
 
 RCPP_FUN_1 (Rcpp::CharacterVector, CppClass__methods, XP_Class cl)
 
 RCPP_FUN_1 (Rcpp::CharacterVector, CppClass__properties, XP_Class cl)
 
 RCPP_FUN_1 (Rcpp::List, CppClass__property_classes, XP_Class cl)
 
 RCPP_FUN_1 (Rcpp::IntegerVector, CppClass__methods_arity, XP_Class cl)
 
 RCPP_FUN_1 (Rcpp::LogicalVector, CppClass__methods_voidness, XP_Class cl)
 
 RCPP_FUN_2 (bool, CppClass__property_is_readonly, XP_Class cl, std::string p)
 
 RCPP_FUN_2 (std::string, CppClass__property_class, XP_Class cl, std::string p)
 
 RCPP_FUN_1 (Rcpp::IntegerVector, Module__functions_arity, XP_Module module)
 
 RCPP_FUN_1 (Rcpp::CharacterVector, Module__functions_names, XP_Module module)
 
 RCPP_FUN_1 (std::string, Module__name, XP_Module module)
 
 RCPP_FUN_1 (Rcpp::List, Module__classes_info, XP_Module module)
 
 RCPP_FUN_1 (Rcpp::CharacterVector, Module__complete, XP_Module module)
 
 RCPP_FUN_1 (Rcpp::CharacterVector, CppClass__complete, XP_Class cl)
 
 RCPP_FUN_3 (SEXP, CppField__get, XP_Class cl, SEXP field_xp, SEXP obj)
 
 RCPP_FUN_4 (SEXP, CppField__set, XP_Class cl, SEXP field_xp, SEXP obj, SEXP value)
 
 RCPP_FUN_2 (SEXP, CppObject__finalize, XP_Class cl, SEXP obj)
 
SEXP InternalFunction_invoke (SEXP args)
 
SEXP Module__invoke (SEXP args)
 
SEXP class__newInstance (SEXP args)
 
SEXP class__dummyInstance (SEXP args)
 
SEXP CppMethod__invoke (SEXP args)
 
SEXP CppMethod__invoke_void (SEXP args)
 
SEXP CppMethod__invoke_notvoid (SEXP args)
 
Rcpp::ModulegetCurrentScope ()
 
void setCurrentScope (Rcpp::Module *scope)
 

Variables

SEXP rcpp_dummy_pointer = R_NilValue
 
static Module * Rcpp::current_scope
 

Macro Definition Documentation

◆ CHECK_DUMMY_OBJ

#define CHECK_DUMMY_OBJ (   p)    if (p == rcpp_dummy_pointer) throw Rcpp::not_initialized()

◆ COMPILING_RCPP

#define COMPILING_RCPP

Definition at line 22 of file Module.cpp.

Typedef Documentation

◆ XP_Class

Definition at line 28 of file Module.cpp.

◆ XP_Function

Definition at line 29 of file Module.cpp.

◆ XP_Module

Definition at line 27 of file Module.cpp.

Function Documentation

◆ class__dummyInstance()

SEXP class__dummyInstance ( SEXP  args)

Definition at line 152 of file Module.cpp.

References rcpp_dummy_pointer.

◆ class__newInstance()

SEXP class__newInstance ( SEXP  args)

Definition at line 137 of file Module.cpp.

References UNPACK_EXTERNAL_ARGS.

◆ CppMethod__invoke()

SEXP CppMethod__invoke ( SEXP  args)

Definition at line 166 of file Module.cpp.

References CHECK_DUMMY_OBJ, and UNPACK_EXTERNAL_ARGS.

◆ CppMethod__invoke_notvoid()

SEXP CppMethod__invoke_notvoid ( SEXP  args)

Definition at line 204 of file Module.cpp.

References CHECK_DUMMY_OBJ, and UNPACK_EXTERNAL_ARGS.

◆ CppMethod__invoke_void()

SEXP CppMethod__invoke_void ( SEXP  args)

Definition at line 185 of file Module.cpp.

References CHECK_DUMMY_OBJ, and UNPACK_EXTERNAL_ARGS.

◆ getCurrentScope()

Rcpp::Module* getCurrentScope ( )

Definition at line 227 of file Module.cpp.

References Rcpp::current_scope.

◆ InternalFunction_invoke()

SEXP InternalFunction_invoke ( SEXP  args)

Definition at line 117 of file Module.cpp.

References BEGIN_RCPP, END_RCPP, and UNPACK_EXTERNAL_ARGS.

◆ Module__invoke()

SEXP Module__invoke ( SEXP  args)

Definition at line 126 of file Module.cpp.

References BEGIN_RCPP, END_RCPP, and UNPACK_EXTERNAL_ARGS.

◆ RCPP_FUN_1() [1/14]

RCPP_FUN_1 ( bool  ,
Class__has_default_constructor  ,
XP_Class  cl 
)

Definition at line 31 of file Module.cpp.

◆ RCPP_FUN_1() [2/14]

RCPP_FUN_1 ( std::string  ,
Class__name  ,
XP_Class  cl 
)

Definition at line 43 of file Module.cpp.

◆ RCPP_FUN_1() [3/14]

RCPP_FUN_1 ( bool  ,
CppObject__needs_init  ,
SEXP  xp 
)

Definition at line 55 of file Module.cpp.

◆ RCPP_FUN_1() [4/14]

RCPP_FUN_1 ( Rcpp::CharacterVector  ,
CppClass__methods  ,
XP_Class  cl 
)

Definition at line 58 of file Module.cpp.

◆ RCPP_FUN_1() [5/14]

RCPP_FUN_1 ( Rcpp::CharacterVector  ,
CppClass__properties  ,
XP_Class  cl 
)

Definition at line 61 of file Module.cpp.

◆ RCPP_FUN_1() [6/14]

RCPP_FUN_1 ( Rcpp::List  ,
CppClass__property_classes  ,
XP_Class  cl 
)

Definition at line 64 of file Module.cpp.

◆ RCPP_FUN_1() [7/14]

RCPP_FUN_1 ( Rcpp::IntegerVector  ,
CppClass__methods_arity  ,
XP_Class  cl 
)

Definition at line 68 of file Module.cpp.

◆ RCPP_FUN_1() [8/14]

RCPP_FUN_1 ( Rcpp::LogicalVector  ,
CppClass__methods_voidness  ,
XP_Class  cl 
)

Definition at line 71 of file Module.cpp.

◆ RCPP_FUN_1() [9/14]

RCPP_FUN_1 ( Rcpp::IntegerVector  ,
Module__functions_arity  ,
XP_Module  module 
)

Definition at line 83 of file Module.cpp.

◆ RCPP_FUN_1() [10/14]

RCPP_FUN_1 ( Rcpp::CharacterVector  ,
Module__functions_names  ,
XP_Module  module 
)

Definition at line 86 of file Module.cpp.

◆ RCPP_FUN_1() [11/14]

RCPP_FUN_1 ( std::string  ,
Module__name  ,
XP_Module  module 
)

Definition at line 89 of file Module.cpp.

◆ RCPP_FUN_1() [12/14]

RCPP_FUN_1 ( Rcpp::List  ,
Module__classes_info  ,
XP_Module  module 
)

Definition at line 92 of file Module.cpp.

◆ RCPP_FUN_1() [13/14]

RCPP_FUN_1 ( Rcpp::CharacterVector  ,
Module__complete  ,
XP_Module  module 
)

Definition at line 95 of file Module.cpp.

◆ RCPP_FUN_1() [14/14]

RCPP_FUN_1 ( Rcpp::CharacterVector  ,
CppClass__complete  ,
XP_Class  cl 
)

Definition at line 98 of file Module.cpp.

◆ RCPP_FUN_2() [1/9]

RCPP_FUN_2 ( SEXP  ,
Module__get_function  ,
XP_Module  module,
std::string  fun 
)

Definition at line 34 of file Module.cpp.

◆ RCPP_FUN_2() [2/9]

RCPP_FUN_2 ( bool  ,
Class__has_method  ,
XP_Class  cl,
std::string  m 
)

Definition at line 37 of file Module.cpp.

◆ RCPP_FUN_2() [3/9]

RCPP_FUN_2 ( bool  ,
Class__has_property  ,
XP_Class  cl,
std::string  m 
)

Definition at line 40 of file Module.cpp.

◆ RCPP_FUN_2() [4/9]

RCPP_FUN_2 ( bool  ,
Module__has_function  ,
XP_Module  module,
std::string  met 
)

Definition at line 46 of file Module.cpp.

◆ RCPP_FUN_2() [5/9]

RCPP_FUN_2 ( bool  ,
Module__has_class  ,
XP_Module  module,
std::string  cl 
)

Definition at line 49 of file Module.cpp.

◆ RCPP_FUN_2() [6/9]

RCPP_FUN_2 ( Rcpp::CppClass  ,
Module__get_class  ,
XP_Module  module,
std::string  cl 
)

Definition at line 52 of file Module.cpp.

◆ RCPP_FUN_2() [7/9]

RCPP_FUN_2 ( bool  ,
CppClass__property_is_readonly  ,
XP_Class  cl,
std::string  p 
)

Definition at line 76 of file Module.cpp.

◆ RCPP_FUN_2() [8/9]

RCPP_FUN_2 ( std::string  ,
CppClass__property_class  ,
XP_Class  cl,
std::string  p 
)

Definition at line 79 of file Module.cpp.

◆ RCPP_FUN_2() [9/9]

RCPP_FUN_2 ( SEXP  ,
CppObject__finalize  ,
XP_Class  cl,
SEXP  obj 
)

Definition at line 111 of file Module.cpp.

◆ RCPP_FUN_3()

RCPP_FUN_3 ( SEXP  ,
CppField__get  ,
XP_Class  cl,
SEXP  field_xp,
SEXP  obj 
)

Definition at line 104 of file Module.cpp.

◆ RCPP_FUN_4()

RCPP_FUN_4 ( SEXP  ,
CppField__set  ,
XP_Class  cl,
SEXP  field_xp,
SEXP  obj,
SEXP  value 
)

Definition at line 107 of file Module.cpp.

◆ setCurrentScope()

void setCurrentScope ( Rcpp::Module scope)

Definition at line 230 of file Module.cpp.

References Rcpp::current_scope.

Variable Documentation

◆ rcpp_dummy_pointer

SEXP rcpp_dummy_pointer = R_NilValue

Definition at line 147 of file Module.cpp.

Referenced by class__dummyInstance().