Kross::Python::PythonExtension Class Reference
#include <pythonextension.h>
Inherits Py::PythonExtension< T >.
Public Member Functions | |
| PythonExtension (Kross::Api::Object::Ptr object) | |
| virtual | ~PythonExtension () |
| virtual Py::Object | getattr (const char *name) |
Friends | |
| class | PythonScript |
| class | PythonObject |
| class | PythonModule |
Detailed Description
The PythonExtension is a wrapper-object to let C++ and Python interact together.
Instances of this class are used everytime if we send or got something to/from python.
Definition at line 48 of file pythonextension.h.
Constructor & Destructor Documentation
◆ PythonExtension()
|
explicit |
Constructor.
- Parameters
-
object The Kross::Api::Object object this instance is the wrapper for.
Definition at line 29 of file pythonextension.cpp.
◆ ~PythonExtension()
|
virtual |
Destructor.
Definition at line 55 of file pythonextension.cpp.
Member Function Documentation
◆ getattr()
|
virtual |
Overloaded method to handle attribute calls from within python.
- Parameters
-
name The name of the attribute that should be handled.
- Returns
- An Py::Object that could be a value or a callable object. Python will decide what to do with the returnvalue.
Definition at line 77 of file pythonextension.cpp.
Friends And Related Symbol Documentation
◆ PythonModule
|
friend |
Definition at line 52 of file pythonextension.h.
◆ PythonObject
|
friend |
Definition at line 51 of file pythonextension.h.
◆ PythonScript
|
friend |
Definition at line 50 of file pythonextension.h.
The documentation for this class was generated from the following files:
