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 |
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 () | |
![]() | |
bool | check (const MetaClass *c) const |
bool | check (const PythonType &c) const |
bool | getBool () const |
Date | getDate () const |
double | getDouble () const |
int | getInt () const |
long | getLong () const |
string | getString () const |
TimePeriod | getTimeperiod () const |
unsigned long | getUnsignedLong () const |
operator PyObject * () const | |
PythonObject & | operator= (const PythonObject &o) |
PythonObject () | |
PythonObject (const PyObject *o) | |
PythonObject (Object *p) | |
PythonObject (const string &val) | |
PythonObject (const double val) | |
PythonObject (const int val) | |
PythonObject (const long val) | |
PythonObject (const unsigned long val) | |
PythonObject (const bool val) | |
PythonObject (const TimePeriod val) | |
PythonObject (const Date &val) | |
![]() | |
void | operator>> (unsigned long int &val) const |
void | operator>> (long &val) const |
void | operator>> (TimePeriod &val) const |
void | operator>> (bool &v) const |
void | operator>> (int &val) const |
void | operator>> (double &val) const |
void | operator>> (Date &val) const |
void | operator>> (string &val) const |
virtual | ~DataElement () |
This call is a wrapper around a Python function that can be called from the C++ code.
|
inline |
frepple::utils::PythonFunction::PythonFunction | ( | const string & | n | ) |
Constructor.
Definition at line 627 of file pythonutils.cpp.
frepple::utils::PythonFunction::PythonFunction | ( | PyObject * | p | ) |
Constructor.
Definition at line 657 of file pythonutils.cpp.
|
inline |
|
inline |
PythonObject frepple::utils::PythonFunction::call | ( | ) | const |
Call the Python function without arguments.
Definition at line 693 of file pythonutils.cpp.
PythonObject frepple::utils::PythonFunction::call | ( | const PyObject * | p | ) | const |
Call the Python function with one argument.
Definition at line 709 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 725 of file pythonutils.cpp.
|
inlinevirtual |
Conversion operator to bool.
Reimplemented from frepple::utils::PythonObject.
|
inline |
|
inline |
|
inline |