Rcpp Version 0.9.10
Rcpp::Module Class Reference

#include <Module.h>

List of all members.

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

Detailed Description

Definition at line 126 of file Module.h.


Member Typedef Documentation

typedef std::map<std::string,class_Base*> Rcpp::Module::CLASS_MAP

Definition at line 131 of file Module.h.

typedef std::pair<const std::string,class_Base*> Rcpp::Module::CLASS_PAIR

Definition at line 132 of file Module.h.

typedef std::pair<const std::string,CppFunction*> Rcpp::Module::FUNCTION_PAIR

Definition at line 129 of file Module.h.

typedef std::map<std::string,CppFunction*> Rcpp::Module::MAP

Definition at line 128 of file Module.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void Rcpp::Module::Add ( const char *  name_,
CppFunction ptr 
) [inline]

Definition at line 147 of file Module.h.

References functions.

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.

References classes, i, and n.

Rcpp::List Rcpp::Module::classes_info ( )

Definition at line 314 of file Module.cpp.

References classes, i, and n.

Rcpp::CharacterVector Rcpp::Module::complete ( )

Definition at line 361 of file Module.cpp.

References classes, functions, i, j, and n.

Rcpp::IntegerVector Rcpp::Module::functions_arity ( )

Definition at line 338 of file Module.cpp.

References functions, i, n, and x.

Rcpp::CharacterVector Rcpp::Module::functions_names ( )

Definition at line 351 of file Module.cpp.

References functions, i, and n.

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

Here is the call graph for this function:

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]

Definition at line 155 of file Module.h.

References functions.

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

Here is the call graph for this function:


Member Data Documentation

std::string Rcpp::Module::name

Definition at line 165 of file Module.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines