Rcpp Version 1.0.9
|
#include <class.h>
Public Types | |
typedef class_< Class > | self |
typedef CppMethod< Class > | method_class |
typedef SignedMethod< Class > | signed_method_class |
typedef std::vector< signed_method_class * > | vec_signed_method |
typedef std::map< std::string, vec_signed_method * > | map_vec_signed_method |
typedef std::pair< std::string, vec_signed_method * > | vec_signed_method_pair |
typedef std::map< std::string, method_class * > | METHOD_MAP |
typedef std::pair< const std::string, method_class * > | PAIR |
typedef Rcpp::XPtr< Class > | XP |
typedef CppFinalizer< Class > | finalizer_class |
typedef Constructor_Base< Class > | constructor_class |
typedef SignedConstructor< Class > | signed_constructor_class |
typedef std::vector< signed_constructor_class * > | vec_signed_constructor |
typedef Factory_Base< Class > | factory_class |
typedef SignedFactory< Class > | signed_factory_class |
typedef std::vector< signed_factory_class * > | vec_signed_factory |
typedef CppProperty< Class > | prop_class |
typedef std::map< std::string, prop_class * > | PROPERTY_MAP |
typedef std::pair< const std::string, prop_class * > | PROP_PAIR |
Public Member Functions | |
class_ (const char *name_, const char *doc=0) | |
~class_ () | |
self & | AddConstructor (constructor_class *ctor, ValidConstructor valid, const char *docstring=0) |
self & | AddFactory (factory_class *fact, ValidConstructor valid, const char *docstring=0) |
self & | default_constructor (const char *docstring=0, ValidConstructor valid=&yes_arity< 0 >) |
std::string | get_typeinfo_name () |
SEXP | newInstance (SEXP *args, int nargs) |
bool | has_default_constructor () |
SEXP | invoke (SEXP method_xp, SEXP object, SEXP *args, int nargs) |
SEXP | invoke_void (SEXP method_xp, SEXP object, SEXP *args, int nargs) |
SEXP | invoke_notvoid (SEXP method_xp, SEXP object, SEXP *args, int nargs) |
self & | AddMethod (const char *name_, method_class *m, ValidMethod valid=&yes, const char *docstring=0) |
self & | AddProperty (const char *name_, prop_class *p) |
bool | has_method (const std::string &m) |
bool | has_property (const std::string &m) |
bool | property_is_readonly (const std::string &p) |
std::string | property_class (const std::string &p) |
Rcpp::CharacterVector | method_names () |
Rcpp::IntegerVector | methods_arity () |
Rcpp::LogicalVector | methods_voidness () |
Rcpp::CharacterVector | property_names () |
Rcpp::List | property_classes () |
Rcpp::CharacterVector | complete () |
SEXP | getProperty (SEXP field_xp, SEXP object) |
void | setProperty (SEXP field_xp, SEXP object, SEXP value) |
Rcpp::List | fields (const XP_Class &class_xp) |
Rcpp::List | getMethods (const XP_Class &class_xp, std::string &buffer) |
Rcpp::List | getConstructors (const XP_Class &class_xp, std::string &buffer) |
self & | finalizer (void(*f)(Class *)) |
virtual void | run_finalizer (SEXP object) |
void | SetFinalizer (finalizer_class *f) |
class_ () | |
template<typename PARENT > | |
self & | derives (const char *parent) |
Public Attributes | |
map_vec_signed_method | vec_methods |
PROPERTY_MAP | properties |
finalizer_class * | finalizer_pointer |
int | specials |
vec_signed_constructor | constructors |
vec_signed_factory | factories |
self * | class_pointer |
std::string | typeinfo_name |
Private Member Functions | |
self * | get_instance () |
typedef Constructor_Base<Class> class_< Class >::constructor_class |
typedef Factory_Base<Class> class_< Class >::factory_class |
typedef CppFinalizer<Class> class_< Class >::finalizer_class |
typedef std::map<std::string,vec_signed_method*> class_< Class >::map_vec_signed_method |
typedef CppMethod<Class> class_< Class >::method_class |
typedef std::map<std::string,method_class*> class_< Class >::METHOD_MAP |
typedef std::pair<const std::string,method_class*> class_< Class >::PAIR |
typedef CppProperty<Class> class_< Class >::prop_class |
typedef std::pair<const std::string,prop_class*> class_< Class >::PROP_PAIR |
typedef std::map<std::string,prop_class*> class_< Class >::PROPERTY_MAP |
typedef SignedConstructor<Class> class_< Class >::signed_constructor_class |
typedef SignedFactory<Class> class_< Class >::signed_factory_class |
typedef SignedMethod<Class> class_< Class >::signed_method_class |
typedef std::vector<signed_constructor_class*> class_< Class >::vec_signed_constructor |
typedef std::vector<signed_factory_class*> class_< Class >::vec_signed_factory |
typedef std::vector<signed_method_class*> class_< Class >::vec_signed_method |
typedef std::pair<std::string,vec_signed_method*> class_< Class >::vec_signed_method_pair |
typedef Rcpp::XPtr<Class> class_< Class >::XP |
|
inline |
Definition at line 54 of file class.h.
References class_< Class >::class_pointer, and class_< Class >::get_instance().
|
inline |
Definition at line 100 of file class.h.
References class_< Class >::class_pointer, and class_< Class >::constructors.
|
inline |
Definition at line 105 of file class.h.
References class_< Class >::class_pointer, and class_< Class >::factories.
|
inline |
Definition at line 239 of file class.h.
References class_< Class >::get_instance(), Rcpp::push_back(), and RCPP_DEBUG_MODULE_1.
Referenced by class_< Class >::derives().
|
inline |
Definition at line 251 of file class.h.
References class_< Class >::get_instance(), and class_< Class >::properties.
Referenced by class_< Class >::derives().
|
inline |
Definition at line 368 of file class.h.
References class_< Class >::properties, class_< Class >::specials, and class_< Class >::vec_methods.
|
inline |
Definition at line 487 of file class.h.
References class_< Class >::AddMethod(), class_< Class >::AddProperty(), class_< Class >::get_instance(), getCurrentScope(), and Rcpp::parent().
|
inline |
Definition at line 409 of file class.h.
References Rcpp::NamesProxyPolicy< CLASS >::names(), and class_< Class >::properties.
Definition at line 455 of file class.h.
References class_< Class >::SetFinalizer().
Definition at line 70 of file class.h.
References class_< Class >::class_pointer, DEMANGLE, class_< Class >::finalizer_pointer, getCurrentScope(), RCPP_DEBUG_MODULE_2, and class_< Class >::typeinfo_name.
Referenced by class_< Class >::AddMethod(), class_< Class >::AddProperty(), class_< Class >::class_(), class_< Class >::derives(), and class_< Class >::SetFinalizer().
|
inline |
Definition at line 119 of file class.h.
References class_< Class >::typeinfo_name.
|
inline |
Definition at line 441 of file class.h.
References class_< Class >::constructors.
|
inline |
Definition at line 422 of file class.h.
References Rcpp::NamesProxyPolicy< CLASS >::names(), RCPP_DEBUG_MODULE, and class_< Class >::vec_methods.
|
inline |
Definition at line 394 of file class.h.
References BEGIN_RCPP, and END_RCPP.
|
inline |
Definition at line 151 of file class.h.
References class_< Class >::constructors, and class_< Class >::factories.
|
inline |
Definition at line 259 of file class.h.
References class_< Class >::vec_methods.
|
inline |
Definition at line 262 of file class.h.
References class_< Class >::properties.
|
inline |
Definition at line 167 of file class.h.
References BEGIN_RCPP, Rcpp::Vector< VECSXP >::create(), and END_RCPP.
|
inline |
Definition at line 216 of file class.h.
References BEGIN_RCPP, and END_RCPP.
|
inline |
Definition at line 194 of file class.h.
References BEGIN_RCPP, and END_RCPP.
|
inline |
Definition at line 276 of file class.h.
References class_< Class >::vec_methods.
|
inline |
Definition at line 296 of file class.h.
References Rcpp::NamesProxyPolicy< CLASS >::names(), and class_< Class >::vec_methods.
|
inline |
Definition at line 320 of file class.h.
References Rcpp::NamesProxyPolicy< CLASS >::names(), and class_< Class >::vec_methods.
|
inline |
Definition at line 123 of file class.h.
References BEGIN_RCPP, class_< Class >::constructors, END_RCPP, and class_< Class >::factories.
|
inline |
Definition at line 270 of file class.h.
References class_< Class >::properties.
|
inline |
Definition at line 355 of file class.h.
References Rcpp::NamesProxyPolicy< CLASS >::names(), and class_< Class >::properties.
|
inline |
Definition at line 265 of file class.h.
References class_< Class >::properties.
|
inline |
Definition at line 345 of file class.h.
References class_< Class >::properties.
|
inlinevirtual |
Definition at line 460 of file class.h.
References class_< Class >::finalizer_pointer.
|
inline |
Definition at line 464 of file class.h.
References class_< Class >::get_instance().
Referenced by class_< Class >::finalizer().
|
inline |
Definition at line 401 of file class.h.
References BEGIN_RCPP, and VOID_END_RCPP.
Definition at line 477 of file class.h.
Referenced by class_< Class >::AddConstructor(), class_< Class >::AddFactory(), class_< Class >::class_(), and class_< Class >::get_instance().
vec_signed_constructor class_< Class >::constructors |
Definition at line 475 of file class.h.
Referenced by class_< Class >::AddConstructor(), class_< Class >::getConstructors(), class_< Class >::has_default_constructor(), and class_< Class >::newInstance().
vec_signed_factory class_< Class >::factories |
Definition at line 476 of file class.h.
Referenced by class_< Class >::AddFactory(), class_< Class >::has_default_constructor(), and class_< Class >::newInstance().
finalizer_class* class_< Class >::finalizer_pointer |
Definition at line 473 of file class.h.
Referenced by class_< Class >::get_instance(), and class_< Class >::run_finalizer().
PROPERTY_MAP class_< Class >::properties |
Definition at line 471 of file class.h.
Referenced by class_< Class >::AddProperty(), class_< Class >::complete(), class_< Class >::fields(), class_< Class >::has_property(), class_< Class >::property_class(), class_< Class >::property_classes(), class_< Class >::property_is_readonly(), and class_< Class >::property_names().
int class_< Class >::specials |
Definition at line 474 of file class.h.
Referenced by class_< Class >::complete().
std::string class_< Class >::typeinfo_name |
Definition at line 478 of file class.h.
Referenced by class_< Class >::get_instance(), and class_< Class >::get_typeinfo_name().
map_vec_signed_method class_< Class >::vec_methods |
Definition at line 470 of file class.h.
Referenced by class_< Class >::complete(), class_< Class >::getMethods(), class_< Class >::has_method(), class_< Class >::method_names(), class_< Class >::methods_arity(), and class_< Class >::methods_voidness().