VTK
vtkSmartPyObject.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSmartPyObject.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
21 #ifndef _vtkSmartPyObject_h
22 #define _vtkSmartPyObject_h
23 
24 // this must be included first
25 #include "vtkPython.h" // PyObject can't be forward declared
26 
28 
30 public:
39 
51 
53  PyObject *operator->() const;
55  operator PyObject*() const;
56 
58  operator bool() const;
59 
60 
68  PyObject *GetPointer() const;
70 
73 private:
74  PyObject *Object;
75 };
77 
78 #endif
vtkSmartPyObject::~vtkSmartPyObject
~vtkSmartPyObject()
vtkSmartPyObject::vtkSmartPyObject
vtkSmartPyObject(const vtkSmartPyObject &other)
vtkgl::obj
GLsizei GLsizei GLuint * obj
Definition: vtkgl.h:11994
vtkSmartPyObject::operator->
PyObject * operator->() const
vtkSmartPyObject::ReleaseReference
PyObject * ReleaseReference()
VTKWRAPPINGPYTHONCORE_EXPORT
#define VTKWRAPPINGPYTHONCORE_EXPORT
Definition: vtkWrappingPythonCoreModule.h:15
PyObject
struct _object PyObject
Definition: vtkMatplotlibMathTextUtilities.h:37
vtkSmartPyObject::TakeReference
void TakeReference(PyObject *obj)
vtkWrappingPythonCoreModule.h
vtkSmartPyObject
Definition: vtkSmartPyObject.h:29
vtkSmartPyObject::operator=
vtkSmartPyObject & operator=(const vtkSmartPyObject &other)
vtkSmartPyObject::vtkSmartPyObject
vtkSmartPyObject(PyObject *obj=NULL)
vtkSmartPyObject::GetPointer
PyObject * GetPointer() const
vtkSmartPyObject::operator=
vtkSmartPyObject & operator=(PyObject *obj)
vtkSmartPyObject::GetAndIncreaseReferenceCount
PyObject * GetAndIncreaseReferenceCount()