3#ifndef __PYX_HAVE_API__pymodule
4#define __PYX_HAVE_API__pymodule
12#define py_find_module __pyx_api_f_8pymodule_py_find_module
13static cyclus::Agent *(*__pyx_api_f_8pymodule_make_py_agent)(std::string, std::string,
void *) = 0;
14#define make_py_agent __pyx_api_f_8pymodule_make_py_agent
16#define init_from_py_agent __pyx_api_f_8pymodule_init_from_py_agent
18#define clear_pyagent_refs __pyx_api_f_8pymodule_clear_pyagent_refs
20#define py_del_agent __pyx_api_f_8pymodule_py_del_agent
22#define py_call_listeners __pyx_api_f_8pymodule_py_call_listeners
23#ifndef __PYX_HAVE_RT_ImportFunction_3_0_11
24#define __PYX_HAVE_RT_ImportFunction_3_0_11
32 d = PyObject_GetAttrString(module, (
char *)
"__pyx_capi__");
35 cobj = PyDict_GetItemString(d, funcname);
37 PyErr_Format(PyExc_ImportError,
38 "%.200s does not export expected C function %.200s",
39 PyModule_GetName(module), funcname);
42 if (!PyCapsule_IsValid(cobj, sig)) {
43 PyErr_Format(PyExc_TypeError,
44 "C function %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
45 PyModule_GetName(module), funcname, sig, PyCapsule_GetName(cobj));
48 tmp.p = PyCapsule_GetPointer(cobj, sig);
63 module = PyImport_ImportModule("pymodule");
64 if (!module)
goto bad;
71 Py_DECREF(module);
module = 0;
The abstract base class used by all types of agents that live and interact in a simulation.
basic_hold_any< char > hold_any
static void(* __pyx_api_f_8pymodule_clear_pyagent_refs)(void)=0
static int __Pyx_ImportFunction_3_0_11(PyObject *module, const char *funcname, void(**f)(void), const char *sig)
static void(* __pyx_api_f_8pymodule_py_del_agent)(int)=0
static int import_pymodule(void)
static std::string(* __pyx_api_f_8pymodule_py_find_module)(std::string)=0
static cyclus::Agent *(* __pyx_api_f_8pymodule_make_py_agent)(std::string, std::string, void *)=0
static void(* __pyx_api_f_8pymodule_py_call_listeners)(std::string, cyclus::Agent *, void *, int, boost::spirit::hold_any)=0
static void(* __pyx_api_f_8pymodule_init_from_py_agent)(cyclus::Agent *, cyclus::Agent *, void *)=0