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>
Inheritance diagram for frepple::utils::PythonFunction:

Public Member Functions | |
PythonObject | call () const |
PythonObject | call (const PyObject *) const |
PythonObject | call (const PyObject *, const PyObject *) const |
operator bool () const | |
operator const PyObject * () const | |
operator string () const | |
PythonFunction & | operator= (const PythonFunction &o) |
PythonFunction () | |
PythonFunction (const string &) | |
PythonFunction (PyObject *) | |
PythonFunction (const PythonFunction &o) | |
~PythonFunction () |
Detailed Description
This call is a wrapper around a Python function that can be called from the C++ code.
Constructor & Destructor Documentation
frepple::utils::PythonFunction::PythonFunction | ( | ) | [inline] |
frepple::utils::PythonFunction::PythonFunction | ( | const string & | n | ) |
Constructor.
Definition at line 579 of file pythonutils.cpp.
frepple::utils::PythonFunction::PythonFunction | ( | PyObject * | p | ) |
Constructor.
Definition at line 609 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 |
Call the Python function without arguments.
Definition at line 645 of file pythonutils.cpp.
PythonObject frepple::utils::PythonFunction::call | ( | const PyObject * | p | ) | const |
Call the Python function with one argument.
Definition at line 661 of file pythonutils.cpp.
PythonObject frepple::utils::PythonFunction::call | ( | const PyObject * | p, |
const PyObject * | q | ||
) | const |
Call the Python function with two arguments.
Definition at line 677 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] |
The documentation for this class was generated from the following files:
Documentation generated for frePPLe by
