Py::ExtensionModule< T > Class Template Reference

#include <ExtensionModule.hxx>

Inheritance diagram for Py::ExtensionModule< T >:
Py::ExtensionModuleBase

List of all members.

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_tmethods (void)

Detailed Description

template<TEMPLATE_TYPENAME T>
class Py::ExtensionModule< T >

Definition at line 90 of file ExtensionModule.hxx.


Member Typedef Documentation

template<TEMPLATE_TYPENAME T>
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.

template<TEMPLATE_TYPENAME T>
typedef std::map<std::string, MethodDefExt<T> *> Py::ExtensionModule< T >::method_map_t [protected]

Definition at line 103 of file ExtensionModule.hxx.

template<TEMPLATE_TYPENAME T>
typedef Object(T::* Py::ExtensionModule< T >::method_noargs_function_t)() [protected]

Definition at line 100 of file ExtensionModule.hxx.

template<TEMPLATE_TYPENAME T>
typedef Object(T::* Py::ExtensionModule< T >::method_varargs_function_t)(const Tuple &args) [protected]

Definition at line 101 of file ExtensionModule.hxx.


Constructor & Destructor Documentation

template<TEMPLATE_TYPENAME T>
Py::ExtensionModule< T >::ExtensionModule ( const char *  name  )  [inline]

Definition at line 93 of file ExtensionModule.hxx.

template<TEMPLATE_TYPENAME T>
virtual Py::ExtensionModule< T >::~ExtensionModule (  )  [inline, virtual]

Definition at line 96 of file ExtensionModule.hxx.


Member Function Documentation

template<TEMPLATE_TYPENAME T>
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.

template<TEMPLATE_TYPENAME T>
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.

template<TEMPLATE_TYPENAME T>
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.

template<TEMPLATE_TYPENAME T>
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().

template<TEMPLATE_TYPENAME T>
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.

template<TEMPLATE_TYPENAME T>
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.

template<TEMPLATE_TYPENAME T>
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.

template<TEMPLATE_TYPENAME T>
static method_map_t& Py::ExtensionModule< T >::methods ( void   )  [inline, static, protected]

The documentation for this class was generated from the following file:

Generated on Wed Nov 23 19:02:43 2011 for FreeCAD by  doxygen 1.6.1