1
/* ----------------------------------------------------------------------------
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
* This file is not intended to be easily readable and contains a number of
6
* coding conventions designed to improve portability and efficiency. Do not make
7
* changes to this file unless you know what you are doing--modify the SWIG
8
* interface file instead.
9
* ----------------------------------------------------------------------------- */
11
#ifndef SWIG_meep_mpi_WRAP_H_
12
#define SWIG_meep_mpi_WRAP_H_
18
class SwigDirector_Callback : public meep::Callback, public Swig::Director {
21
SwigDirector_Callback(PyObject *self);
22
virtual ~SwigDirector_Callback();
23
virtual void double_vec(meep::vec const &x);
24
virtual void complex_vec(meep::vec const &x);
25
virtual void complex_time(double const &t);
28
/* Internal Director utilities */
30
bool swig_get_inner(const char* name) const {
31
std::map<std::string, bool>::const_iterator iv = inner.find(name);
32
return (iv != inner.end() ? iv->second : false);
35
void swig_set_inner(const char* name, bool val) const
39
mutable std::map<std::string, bool> inner;
42
#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
43
/* VTable implementation */
44
PyObject *swig_get_method(size_t method_index, const char *method_name) const {
45
PyObject *method = vtable[method_index];
47
swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
48
method = PyObject_GetAttr(swig_get_self(), name);
50
std::string msg = "Method in class Callback doesn't exist, undefined ";
52
Swig::DirectorMethodException::raise(msg.c_str());
54
vtable[method_index] = method;
59
mutable swig::SwigVar_PyObject vtable[3];