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

Go to the source code of this file.

Namespaces

namespace  Rcpp
 

Rcpp API.


Defines

#define MAX_ARGS   65
#define CHECK_DUMMY_OBJ(p)   if(p == rcpp_dummy_pointer) forward_exception_to_r ( Rcpp::not_initialized())

Typedefs

typedef Rcpp::XPtr< Rcpp::ModuleXP_Module
typedef Rcpp::XPtr
< Rcpp::class_Base
XP_Class
typedef Rcpp::XPtr
< Rcpp::CppFunction
XP_Function

Functions

 RCPP_FUNCTION_1 (bool, Class__has_default_constructor, XP_Class cl)
 RCPP_FUNCTION_2 (SEXP, Module__get_function, XP_Module module, std::string fun)
 RCPP_FUNCTION_2 (bool, Class__has_method, XP_Class cl, std::string m)
 RCPP_FUNCTION_2 (bool, Class__has_property, XP_Class cl, std::string m)
 RCPP_FUNCTION_1 (std::string, Class__name, XP_Class cl)
 RCPP_FUNCTION_2 (bool, Module__has_function, XP_Module module, std::string met)
 RCPP_FUNCTION_2 (bool, Module__has_class, XP_Module module, std::string cl)
 RCPP_FUNCTION_2 (Rcpp::CppClass, Module__get_class, XP_Module module, std::string cl)
 RCPP_FUNCTION_1 (bool, CppObject__needs_init, SEXP xp)
 RCPP_FUNCTION_1 (Rcpp::CharacterVector, CppClass__methods, XP_Class cl)
 RCPP_FUNCTION_1 (Rcpp::CharacterVector, CppClass__properties, XP_Class cl)
 RCPP_FUNCTION_1 (Rcpp::List, CppClass__property_classes, XP_Class cl)
 RCPP_FUNCTION_1 (Rcpp::IntegerVector, CppClass__methods_arity, XP_Class cl)
 RCPP_FUNCTION_1 (Rcpp::LogicalVector, CppClass__methods_voidness, XP_Class cl)
 RCPP_FUNCTION_2 (bool, CppClass__property_is_readonly, XP_Class cl, std::string p)
 RCPP_FUNCTION_2 (std::string, CppClass__property_class, XP_Class cl, std::string p)
 RCPP_FUNCTION_1 (Rcpp::IntegerVector, Module__functions_arity, XP_Module module)
 RCPP_FUNCTION_1 (Rcpp::CharacterVector, Module__functions_names, XP_Module module)
 RCPP_FUNCTION_1 (std::string, Module__name, XP_Module module)
 RCPP_FUNCTION_1 (Rcpp::List, Module__classes_info, XP_Module module)
 RCPP_FUNCTION_1 (Rcpp::CharacterVector, Module__complete, XP_Module module)
 RCPP_FUNCTION_1 (Rcpp::CharacterVector, CppClass__complete, XP_Class cl)
 RCPP_FUNCTION_3 (SEXP, CppField__get, XP_Class cl, SEXP field_xp, SEXP obj)
 RCPP_FUNCTION_4 (SEXP, CppField__set, XP_Class cl, SEXP field_xp, SEXP obj, SEXP value)
 RCPP_FUNCTION_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)
void R_init_Rcpp (DllInfo *info)

Variables

SEXP rcpp_dummy_pointer = R_NilValue
static Module * Rcpp::current_scope

Define Documentation

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

Typedef Documentation

Definition at line 27 of file Module.cpp.

Definition at line 28 of file Module.cpp.

Definition at line 26 of file Module.cpp.


Function Documentation

SEXP class__dummyInstance ( SEXP  args)

Definition at line 166 of file Module.cpp.

References p, R_NilValue, and rcpp_dummy_pointer.

SEXP class__newInstance ( SEXP  args)

Definition at line 145 of file Module.cpp.

References MAX_ARGS, p, and R_NilValue.

SEXP CppMethod__invoke ( SEXP  args)

Definition at line 178 of file Module.cpp.

References CHECK_DUMMY_OBJ, MAX_ARGS, p, and R_NilValue.

SEXP CppMethod__invoke_notvoid ( SEXP  args)

Definition at line 228 of file Module.cpp.

References CHECK_DUMMY_OBJ, MAX_ARGS, p, and R_NilValue.

SEXP CppMethod__invoke_void ( SEXP  args)

Definition at line 203 of file Module.cpp.

References CHECK_DUMMY_OBJ, MAX_ARGS, p, and R_NilValue.

Rcpp::Module* getCurrentScope ( )

Definition at line 258 of file Module.cpp.

References Rcpp::current_scope.

Referenced by Rcpp::class_< Class >::class_().

SEXP InternalFunction_invoke ( SEXP  args)

Definition at line 116 of file Module.cpp.

References MAX_ARGS, p, and R_NilValue.

SEXP Module__invoke ( SEXP  args)

Definition at line 130 of file Module.cpp.

References MAX_ARGS, p, and R_NilValue.

void R_init_Rcpp ( DllInfo *  info)

Definition at line 260 of file Module.cpp.

References Rcpp::current_scope, init_Rcpp_cache(), and init_Rcpp_routines().

Here is the call graph for this function:

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

Definition at line 82 of file Module.cpp.

RCPP_FUNCTION_1 ( bool  ,
CppObject__needs_init  ,
SEXP  xp 
)

Definition at line 54 of file Module.cpp.

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

Definition at line 42 of file Module.cpp.

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

Definition at line 85 of file Module.cpp.

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

Definition at line 88 of file Module.cpp.

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

Definition at line 97 of file Module.cpp.

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

Definition at line 57 of file Module.cpp.

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

Definition at line 91 of file Module.cpp.

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

Definition at line 94 of file Module.cpp.

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

Definition at line 60 of file Module.cpp.

RCPP_FUNCTION_1 ( bool  ,
Class__has_default_constructor  ,
XP_Class  cl 
)

Definition at line 30 of file Module.cpp.

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

Definition at line 63 of file Module.cpp.

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

Definition at line 67 of file Module.cpp.

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

Definition at line 70 of file Module.cpp.

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

Definition at line 39 of file Module.cpp.

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

Definition at line 78 of file Module.cpp.

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

Definition at line 51 of file Module.cpp.

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

Definition at line 33 of file Module.cpp.

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

Definition at line 110 of file Module.cpp.

References R_NilValue.

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

Definition at line 36 of file Module.cpp.

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

Definition at line 75 of file Module.cpp.

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

Definition at line 45 of file Module.cpp.

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

Definition at line 48 of file Module.cpp.

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

Definition at line 103 of file Module.cpp.

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

Definition at line 106 of file Module.cpp.

References R_NilValue.

void setCurrentScope ( Rcpp::Module scope)

Definition at line 259 of file Module.cpp.

References Rcpp::current_scope, and scope.


Variable Documentation

Definition at line 160 of file Module.cpp.

Referenced by class__dummyInstance().

 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines