|
Rcpp Version 0.9.10
|
#include <Module.h>
Public Types | |
| typedef std::map< std::string, CppFunction * > | MAP |
| typedef std::pair< const std::string, CppFunction * > | FUNCTION_PAIR |
| typedef std::map< std::string, class_Base * > | CLASS_MAP |
| typedef std::pair< const std::string, class_Base * > | CLASS_PAIR |
Public Member Functions | |
| Module () | |
| Module (const char *name_) | |
| SEXP | invoke (const std::string &, SEXP *, int) |
| Rcpp::IntegerVector | functions_arity () |
| Rcpp::CharacterVector | functions_names () |
| Rcpp::CharacterVector | class_names () |
| Rcpp::List | classes_info () |
| Rcpp::CharacterVector | complete () |
| SEXP | get_function_ptr (const std::string &) |
| void | Add (const char *name_, CppFunction *ptr) |
| void | AddClass (const char *name_, class_Base *cptr) |
| bool | has_function (const std::string &m) |
| bool | has_class (const std::string &m) |
| Rcpp::CppClass | get_class (const std::string &) |
Public Attributes | |
| std::string | name |
Private Attributes | |
| MAP | functions |
| CLASS_MAP | classes |
| typedef std::map<std::string,class_Base*> Rcpp::Module::CLASS_MAP |
| typedef std::pair<const std::string,class_Base*> Rcpp::Module::CLASS_PAIR |
| typedef std::pair<const std::string,CppFunction*> Rcpp::Module::FUNCTION_PAIR |
| typedef std::map<std::string,CppFunction*> Rcpp::Module::MAP |
| Rcpp::Module::Module | ( | ) |
Definition at line 272 of file Module.cpp.
| Rcpp::Module::Module | ( | const char * | name_ | ) |
Definition at line 273 of file Module.cpp.
| void Rcpp::Module::Add | ( | const char * | name_, |
| CppFunction * | ptr | ||
| ) | [inline] |
| void Rcpp::Module::AddClass | ( | const char * | name_, |
| class_Base * | cptr | ||
| ) | [inline] |
Definition at line 151 of file Module.h.
References classes.
Referenced by Rcpp::class_< Class >::class_().
| Rcpp::CharacterVector Rcpp::Module::class_names | ( | ) |
Definition at line 328 of file Module.cpp.
| Rcpp::List Rcpp::Module::classes_info | ( | ) |
Definition at line 314 of file Module.cpp.
| Rcpp::CharacterVector Rcpp::Module::complete | ( | ) |
| Rcpp::IntegerVector Rcpp::Module::functions_arity | ( | ) |
| Rcpp::CharacterVector Rcpp::Module::functions_names | ( | ) |
Definition at line 351 of file Module.cpp.
| CppClass Rcpp::Module::get_class | ( | const std::string & | cl | ) |
Definition at line 410 of file Module.cpp.
References BEGIN_RCPP, classes, and END_RCPP.
| SEXP Rcpp::Module::get_function_ptr | ( | const std::string & | name | ) |
Definition at line 293 of file Module.cpp.
References Rcpp::CppFunction::docstring, functions, Rcpp::CppFunction::get_formals(), i, Rcpp::CppFunction::is_void(), n, Rcpp::sign(), and Rcpp::CppFunction::signature().

| bool Rcpp::Module::has_class | ( | const std::string & | m | ) | [inline] |
Definition at line 159 of file Module.h.
References classes.
Referenced by Rcpp::class_< Class >::class_().
| bool Rcpp::Module::has_function | ( | const std::string & | m | ) | [inline] |
| SEXP Rcpp::Module::invoke | ( | const std::string & | name_, |
| SEXP * | args, | ||
| int | nargs | ||
| ) |
Definition at line 275 of file Module.cpp.
References BEGIN_RCPP, END_RCPP, functions, Rcpp::CppFunction::is_void(), Rcpp::Named(), and Rcpp::CppFunction::nargs().

CLASS_MAP Rcpp::Module::classes [private] |
Definition at line 169 of file Module.h.
Referenced by AddClass(), class_names(), classes_info(), complete(), get_class(), and has_class().
MAP Rcpp::Module::functions [private] |
Definition at line 168 of file Module.h.
Referenced by Add(), complete(), functions_arity(), functions_names(), get_function_ptr(), has_function(), and invoke().
| std::string Rcpp::Module::name |