frepple::utils::PythonFunction Class Reference
This call is a wrapper around a Python function that can be called from the C++ code. More...
#include <utils.h>

Public Member Functions | |
| PythonObject | call (const PyObject *, const PyObject *) const |
| PythonObject | call (const PyObject *) const |
| PythonObject | call () const |
| operator bool () const | |
| operator const PyObject * () const | |
| operator string () const | |
| PythonFunction & | operator= (const PythonFunction &o) |
| PythonFunction (const PythonFunction &o) | |
| PythonFunction (PyObject *) | |
| PythonFunction (const string &) | |
| PythonFunction () | |
| ~PythonFunction () | |
Detailed Description
This call is a wrapper around a Python function that can be called from the C++ code.
Definition at line 3017 of file utils.h.
Constructor & Destructor Documentation
| frepple::utils::PythonFunction::PythonFunction | ( | ) | [inline] |
| frepple::utils::PythonFunction::PythonFunction | ( | const string & | n | ) |
Constructor.
Definition at line 578 of file pythonutils.cpp.
| frepple::utils::PythonFunction::PythonFunction | ( | PyObject * | p | ) |
Constructor.
Definition at line 608 of file pythonutils.cpp.
| frepple::utils::PythonFunction::PythonFunction | ( | const PythonFunction & | o | ) | [inline] |
| frepple::utils::PythonFunction::~PythonFunction | ( | ) | [inline] |
Member Function Documentation
| PythonObject frepple::utils::PythonFunction::call | ( | const PyObject * | p, | |
| const PyObject * | q | |||
| ) | const |
Call the Python function with two arguments.
Definition at line 676 of file pythonutils.cpp.
| PythonObject frepple::utils::PythonFunction::call | ( | const PyObject * | p | ) | const |
Call the Python function with one argument.
Definition at line 660 of file pythonutils.cpp.
| PythonObject frepple::utils::PythonFunction::call | ( | ) | const |
Call the Python function without arguments.
Definition at line 644 of file pythonutils.cpp.
| frepple::utils::PythonFunction::operator bool | ( | ) | const [inline, virtual] |
Conversion operator to bool.
Reimplemented from frepple::utils::PythonObject.
| frepple::utils::PythonFunction::operator const PyObject * | ( | ) | const [inline] |
| frepple::utils::PythonFunction::operator string | ( | ) | const [inline] |
| PythonFunction& frepple::utils::PythonFunction::operator= | ( | const PythonFunction & | o | ) | [inline] |
Assignment operator.
Reimplemented from frepple::utils::PythonObject.
The documentation for this class was generated from the following files:
Documentation generated for frePPLe by
