#include <ExtensionModule.hxx>
Public Member Functions | |
ExtensionModule (const char *name) | |
virtual | ~ExtensionModule () |
Protected Types | |
typedef Object(T::* | method_keyword_function_t )(const Tuple &args, const Dict &kws) |
typedef std::map< std::string, MethodDefExt< T > * > | method_map_t |
typedef Object(T::* | method_noargs_function_t )() |
typedef Object(T::* | method_varargs_function_t )(const Tuple &args) |
Protected Member Functions | |
void | initialize (const char *module_doc="") |
virtual Object | invoke_method_keyword (void *method_def, const Tuple &args, const Dict &keywords) |
virtual Object | invoke_method_noargs (void *method_def) |
virtual Object | invoke_method_varargs (void *method_def, const Tuple &args) |
Static Protected Member Functions | |
static void | add_keyword_method (const char *name, method_keyword_function_t function, const char *doc="") |
static void | add_noargs_method (const char *name, method_noargs_function_t function, const char *doc="") |
static void | add_varargs_method (const char *name, method_varargs_function_t function, const char *doc="") |
static method_map_t & | methods (void) |
Definition at line 90 of file ExtensionModule.hxx.
typedef Object(T::* Py::ExtensionModule< T >::method_keyword_function_t)(const Tuple &args, const Dict &kws) [protected] |
Definition at line 102 of file ExtensionModule.hxx.
typedef std::map<std::string, MethodDefExt<T> *> Py::ExtensionModule< T >::method_map_t [protected] |
Definition at line 103 of file ExtensionModule.hxx.
typedef Object(T::* Py::ExtensionModule< T >::method_noargs_function_t)() [protected] |
Definition at line 100 of file ExtensionModule.hxx.
typedef Object(T::* Py::ExtensionModule< T >::method_varargs_function_t)(const Tuple &args) [protected] |
Definition at line 101 of file ExtensionModule.hxx.
Py::ExtensionModule< T >::ExtensionModule | ( | const char * | name | ) | [inline] |
Definition at line 93 of file ExtensionModule.hxx.
virtual Py::ExtensionModule< T >::~ExtensionModule | ( | ) | [inline, virtual] |
Definition at line 96 of file ExtensionModule.hxx.
static void Py::ExtensionModule< T >::add_keyword_method | ( | const char * | name, | |
method_keyword_function_t | function, | |||
const char * | doc = "" | |||
) | [inline, static, protected] |
Definition at line 117 of file ExtensionModule.hxx.
static void Py::ExtensionModule< T >::add_noargs_method | ( | const char * | name, | |
method_noargs_function_t | function, | |||
const char * | doc = "" | |||
) | [inline, static, protected] |
Definition at line 105 of file ExtensionModule.hxx.
static void Py::ExtensionModule< T >::add_varargs_method | ( | const char * | name, | |
method_varargs_function_t | function, | |||
const char * | doc = "" | |||
) | [inline, static, protected] |
Definition at line 111 of file ExtensionModule.hxx.
void Py::ExtensionModule< T >::initialize | ( | const char * | module_doc = "" |
) | [inline, protected] |
Reimplemented from Py::ExtensionModuleBase.
Definition at line 123 of file ExtensionModule.hxx.
Referenced by Py::ExtensionModule< UnitTestModule >::initialize().
virtual Object Py::ExtensionModule< T >::invoke_method_keyword | ( | void * | method_def, | |
const Tuple & | args, | |||
const Dict & | keywords | |||
) | [inline, protected, virtual] |
Implements Py::ExtensionModuleBase.
Definition at line 188 of file ExtensionModule.hxx.
virtual Object Py::ExtensionModule< T >::invoke_method_noargs | ( | void * | method_def | ) | [inline, protected, virtual] |
Implements Py::ExtensionModuleBase.
Definition at line 168 of file ExtensionModule.hxx.
virtual Object Py::ExtensionModule< T >::invoke_method_varargs | ( | void * | method_def, | |
const Tuple & | args | |||
) | [inline, protected, virtual] |
Implements Py::ExtensionModuleBase.
Definition at line 178 of file ExtensionModule.hxx.
static method_map_t& Py::ExtensionModule< T >::methods | ( | void | ) | [inline, static, protected] |
Definition at line 158 of file ExtensionModule.hxx.
Referenced by Py::ExtensionModule< UnitTestModule >::add_keyword_method(), Py::ExtensionModule< UnitTestModule >::add_noargs_method(), Py::ExtensionModule< UnitTestModule >::add_varargs_method(), and Py::ExtensionModule< UnitTestModule >::initialize().