Commit 09259e95 authored by David Gobbi's avatar David Gobbi Committed by Kitware Robot

Merge topic '15995-template-pydoc'

67eb4fc5 15995: Implement C++ templates as Python modules.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: David E. DeMarle's avatarDavid E DeMarle <dave.demarle@kitware.com>
Merge-request: !1218
parents bb8bb077 67eb4fc5
This diff is collapsed.
......@@ -27,16 +27,6 @@
#include "vtkPython.h"
#include "vtkSystemIncludes.h"
// The PyVTKTemplate is a wrapper around a dict.
struct PyVTKTemplate {
PyObject_HEAD
PyObject *dict;
PyObject *doc;
PyObject *name;
PyObject *module;
PyObject *bases; // this is just a hint for help()
};
extern VTKWRAPPINGPYTHONCORE_EXPORT PyTypeObject PyVTKTemplate_Type;
#define PyVTKTemplate_Check(obj) \
......@@ -45,7 +35,7 @@ extern VTKWRAPPINGPYTHONCORE_EXPORT PyTypeObject PyVTKTemplate_Type;
extern "C"
{
VTKWRAPPINGPYTHONCORE_EXPORT
PyObject *PyVTKTemplate_New(const char *name, const char *modulename,
PyObject *PyVTKTemplate_New(const char *name,
const char *docstring[]);
VTKWRAPPINGPYTHONCORE_EXPORT
......
......@@ -390,10 +390,10 @@ int vtkWrapPython_WrapTemplatedClass(
"{\n"
" PyObject *o;\n"
"\n"
" PyObject *temp = PyVTKTemplate_New(\"%s\", \"%s\",\n"
" PyObject *temp = PyVTKTemplate_New(\"%sPython.%s\",\n"
" Py%s_Doc);\n"
"\n",
data->Name, data->Name, modulename, data->Name);
data->Name, modulename, data->Name, data->Name);
for (k = 0; k < ninstantiations; k++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment