HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PY_Callback Class Reference

#include <PY_Callback.h>

+ Inheritance diagram for PY_Callback:

Public Types

using ArgHandler = std::function< void(PY_PyObject *args, PY_PyObject *kwargs)>
 

Public Member Functions

 PY_Callback (void *python_callable_object)
 
 PY_Callback (const PY_Callback &callback)
 
PY_Callbackoperator= (const PY_Callback &callback)
 
void call (PY_Result &result, const char *args_expression=NULL, const char *kwargs_expression=NULL) const
 
PY_Result call (const char *args_expression=NULL, const char *kwargs_expression=NULL) const
 
PY_Result call (const char *args_expression, const char *kwargs_expression, PY_Result::Type desired_result_type) const
 
PY_Result call (const char *args_expression, const char *kwargs_expression, const char *module_name, PY_Result::Type desired_result_type, PY_PyObject *&out_args, PY_PyObject *&out_kwargs, ArgHandler arg_handler) const
 
PY_Result evaluateArgs (const char *args_expression, const char *kwargs_expression, const char *module_name, PY_PyObject *&out_args, PY_PyObject *&out_kwargs, ArgHandler arg_handler) const
 
void setExpressionCache (PY_CallbackCompiledCodeCache *c)
 
- Public Member Functions inherited from PY_OpaqueObject
 PY_OpaqueObject (void *opaque_py_object=NULL)
 
 ~PY_OpaqueObject ()
 
 PY_OpaqueObject (const PY_OpaqueObject &opaque_object)
 
PY_OpaqueObjectoperator= (const PY_OpaqueObject &opaque_object)
 
voidopaqueObject () const
 
bool operator== (const PY_OpaqueObject &opaque_object) const
 
bool operator!= (const PY_OpaqueObject &opaque_object) const
 
bool equalsOpaqueObject (void *opaque_py_object) const
 

Static Public Member Functions

static void setHOM (PY_CallbackHOM *hom)
 
static PY_CallbackHOMgetHOM ()
 

Detailed Description

Definition at line 67 of file PY_Callback.h.

Member Typedef Documentation

using PY_Callback::ArgHandler = std::function<void (PY_PyObject* args, PY_PyObject* kwargs)>

Definition at line 70 of file PY_Callback.h.

Constructor & Destructor Documentation

PY_Callback::PY_Callback ( void python_callable_object)
inline

Definition at line 74 of file PY_Callback.h.

PY_Callback::PY_Callback ( const PY_Callback callback)
inline

Definition at line 79 of file PY_Callback.h.

Member Function Documentation

void PY_Callback::call ( PY_Result result,
const char *  args_expression = NULL,
const char *  kwargs_expression = NULL 
) const
PY_Result PY_Callback::call ( const char *  args_expression = NULL,
const char *  kwargs_expression = NULL 
) const
inline

Definition at line 98 of file PY_Callback.h.

PY_Result PY_Callback::call ( const char *  args_expression,
const char *  kwargs_expression,
PY_Result::Type  desired_result_type 
) const
PY_Result PY_Callback::call ( const char *  args_expression,
const char *  kwargs_expression,
const char *  module_name,
PY_Result::Type  desired_result_type,
PY_PyObject *&  out_args,
PY_PyObject *&  out_kwargs,
ArgHandler  arg_handler 
) const
inline

Definition at line 117 of file PY_Callback.h.

PY_Result PY_Callback::evaluateArgs ( const char *  args_expression,
const char *  kwargs_expression,
const char *  module_name,
PY_PyObject *&  out_args,
PY_PyObject *&  out_kwargs,
ArgHandler  arg_handler 
) const
inline

Definition at line 140 of file PY_Callback.h.

static PY_CallbackHOM* PY_Callback::getHOM ( )
inlinestatic

Definition at line 168 of file PY_Callback.h.

PY_Callback& PY_Callback::operator= ( const PY_Callback callback)
inline

Definition at line 84 of file PY_Callback.h.

void PY_Callback::setExpressionCache ( PY_CallbackCompiledCodeCache c)
inline

Definition at line 162 of file PY_Callback.h.

static void PY_Callback::setHOM ( PY_CallbackHOM hom)
inlinestatic

Definition at line 165 of file PY_Callback.h.


The documentation for this class was generated from the following file: