Rcpp Version 1.1.2
Loading...
Searching...
No Matches
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

namespace  Rcpp
 Rcpp API.

Macros

#define COMPILING_RCPP
#define CHECK_DUMMY_OBJ(p)

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 ModuleRcpp::current_scope

Macro Definition Documentation

◆ CHECK_DUMMY_OBJ

#define CHECK_DUMMY_OBJ ( p)
Value:
if (p == rcpp_dummy_pointer) throw Rcpp::not_initialized()
SEXP rcpp_dummy_pointer
Definition module.cpp:147

Definition at line 149 of file module.cpp.

Referenced by CppMethod__invoke(), CppMethod__invoke_notvoid(), and CppMethod__invoke_void().

◆ 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.

Referenced by EXTFUN().

◆ class__newInstance()

SEXP class__newInstance ( SEXP args)

Definition at line 137 of file module.cpp.

References Rcpp::class_Base::newInstance(), and UNPACK_EXTERNAL_ARGS.

Referenced by EXTFUN().

Here is the call graph for this function:

◆ CppMethod__invoke()

SEXP CppMethod__invoke ( SEXP args)

Definition at line 166 of file module.cpp.

References CHECK_DUMMY_OBJ, Rcpp::class_Base::invoke(), and UNPACK_EXTERNAL_ARGS.

Referenced by EXTFUN().

Here is the call graph for this function:

◆ CppMethod__invoke_notvoid()

SEXP CppMethod__invoke_notvoid ( SEXP args)

Definition at line 204 of file module.cpp.

References CHECK_DUMMY_OBJ, Rcpp::class_Base::invoke_notvoid(), and UNPACK_EXTERNAL_ARGS.

Referenced by EXTFUN().

Here is the call graph for this function:

◆ CppMethod__invoke_void()

SEXP CppMethod__invoke_void ( SEXP args)

Definition at line 185 of file module.cpp.

References CHECK_DUMMY_OBJ, Rcpp::class_Base::invoke_void(), and UNPACK_EXTERNAL_ARGS.

Referenced by EXTFUN().

Here is the call graph for this function:

◆ 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.

Referenced by EXTFUN().

◆ Module__invoke()

SEXP Module__invoke ( SEXP args)

Definition at line 126 of file module.cpp.

References Rcpp::as(), BEGIN_RCPP, END_RCPP, and UNPACK_EXTERNAL_ARGS.

Referenced by EXTFUN().

Here is the call graph for this function:

◆ RCPP_FUN_1() [1/14]

RCPP_FUN_1 ( bool ,
Class__has_default_constructor ,
XP_Class cl )

Definition at line 31 of file module.cpp.

References Rcpp::class_Base::has_default_constructor().

Here is the call graph for this function:

◆ RCPP_FUN_1() [2/14]

RCPP_FUN_1 ( bool ,
CppObject__needs_init ,
SEXP xp )

Definition at line 55 of file module.cpp.

◆ RCPP_FUN_1() [3/14]

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

Definition at line 98 of file module.cpp.

References Rcpp::class_Base::complete().

Here is the call graph for this function:

◆ RCPP_FUN_1() [4/14]

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

Definition at line 58 of file module.cpp.

References Rcpp::class_Base::method_names().

Here is the call graph for this function:

◆ RCPP_FUN_1() [5/14]

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

Definition at line 61 of file module.cpp.

References Rcpp::class_Base::property_names().

Here is the call graph for this function:

◆ RCPP_FUN_1() [6/14]

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

Definition at line 95 of file module.cpp.

◆ RCPP_FUN_1() [7/14]

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

Definition at line 86 of file module.cpp.

◆ RCPP_FUN_1() [8/14]

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

Definition at line 68 of file module.cpp.

References Rcpp::class_Base::methods_arity().

Here is the call graph for this function:

◆ 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::List ,
CppClass__property_classes ,
XP_Class cl )

Definition at line 64 of file module.cpp.

References Rcpp::class_Base::property_classes().

Here is the call graph for this function:

◆ RCPP_FUN_1() [11/14]

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

Definition at line 92 of file module.cpp.

◆ RCPP_FUN_1() [12/14]

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

Definition at line 71 of file module.cpp.

References Rcpp::class_Base::methods_voidness().

Here is the call graph for this function:

◆ RCPP_FUN_1() [13/14]

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

Definition at line 43 of file module.cpp.

References Rcpp::class_Base::name.

◆ RCPP_FUN_1() [14/14]

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

Definition at line 89 of file module.cpp.

◆ RCPP_FUN_2() [1/9]

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

Definition at line 37 of file module.cpp.

References Rcpp::class_Base::has_method().

Here is the call graph for this function:

◆ RCPP_FUN_2() [2/9]

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

Definition at line 40 of file module.cpp.

References Rcpp::class_Base::has_property().

Here is the call graph for this function:

◆ RCPP_FUN_2() [3/9]

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

Definition at line 76 of file module.cpp.

References Rcpp::class_Base::property_is_readonly().

Here is the call graph for this function:

◆ RCPP_FUN_2() [4/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() [5/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() [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 ( SEXP ,
CppObject__finalize ,
XP_Class cl,
SEXP obj )

Definition at line 111 of file module.cpp.

References Rcpp::class_Base::run_finalizer().

Here is the call graph for this function:

◆ RCPP_FUN_2() [8/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() [9/9]

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

Definition at line 79 of file module.cpp.

References Rcpp::class_Base::property_class().

Here is the call graph for this function:

◆ 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.

References Rcpp::class_Base::getProperty().

Here is the call graph for this function:

◆ 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.

References Rcpp::class_Base::setProperty().

Here is the call graph for this function:

◆ 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().