gr-baz Package
gnuradio_core_generalPYTHON_wrap.h
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 2.0.8
4  *
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  * ----------------------------------------------------------------------------- */
10 
11 #ifndef SWIG_gnuradio_core_general_WRAP_H_
12 #define SWIG_gnuradio_core_general_WRAP_H_
13 
14 #include <map>
15 #include <string>
16 
17 
18 class SwigDirector_feval_dd : public gr_py_feval_dd, public Swig::Director {
19 
20 public:
21  SwigDirector_feval_dd(PyObject *self);
22  virtual double eval(double x);
23  virtual double evalSwigPublic(double x) {
24  return gr_feval_dd::eval(x);
25  }
26  virtual ~SwigDirector_feval_dd();
27 
28 
29 /* Internal Director utilities */
30 public:
31  bool swig_get_inner(const char* swig_protected_method_name) const {
32  std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);
33  return (iv != swig_inner.end() ? iv->second : false);
34  }
35 
36  void swig_set_inner(const char* swig_protected_method_name, bool val) const
37  { swig_inner[swig_protected_method_name] = val;}
38 
39 private:
40  mutable std::map<std::string, bool> swig_inner;
41 
42 
43 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
44 /* VTable implementation */
45  PyObject *swig_get_method(size_t method_index, const char *method_name) const {
46  PyObject *method = vtable[method_index];
47  if (!method) {
48  swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
49  method = PyObject_GetAttr(swig_get_self(), name);
50  if (!method) {
51  std::string msg = "Method in class feval_dd doesn't exist, undefined ";
52  msg += method_name;
53  Swig::DirectorMethodException::raise(msg.c_str());
54  }
55  vtable[method_index] = method;
56  }
57  return method;
58  }
59 private:
60  mutable swig::SwigVar_PyObject vtable[1];
61 #endif
62 
63 };
64 
65 
66 class SwigDirector_feval_cc : public gr_py_feval_cc, public Swig::Director {
67 
68 public:
69  SwigDirector_feval_cc(PyObject *self);
70  virtual gr_complex eval(gr_complex x);
71  virtual gr_complex evalSwigPublic(gr_complex x) {
72  return gr_feval_cc::eval(x);
73  }
74  virtual ~SwigDirector_feval_cc();
75 
76 
77 /* Internal Director utilities */
78 public:
79  bool swig_get_inner(const char* swig_protected_method_name) const {
80  std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);
81  return (iv != swig_inner.end() ? iv->second : false);
82  }
83 
84  void swig_set_inner(const char* swig_protected_method_name, bool val) const
85  { swig_inner[swig_protected_method_name] = val;}
86 
87 private:
88  mutable std::map<std::string, bool> swig_inner;
89 
90 
91 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
92 /* VTable implementation */
93  PyObject *swig_get_method(size_t method_index, const char *method_name) const {
94  PyObject *method = vtable[method_index];
95  if (!method) {
96  swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
97  method = PyObject_GetAttr(swig_get_self(), name);
98  if (!method) {
99  std::string msg = "Method in class feval_cc doesn't exist, undefined ";
100  msg += method_name;
101  Swig::DirectorMethodException::raise(msg.c_str());
102  }
103  vtable[method_index] = method;
104  }
105  return method;
106  }
107 private:
108  mutable swig::SwigVar_PyObject vtable[1];
109 #endif
110 
111 };
112 
113 
114 class SwigDirector_feval_ll : public gr_py_feval_ll, public Swig::Director {
115 
116 public:
117  SwigDirector_feval_ll(PyObject *self);
118  virtual long eval(long x);
119  virtual long evalSwigPublic(long x) {
120  return gr_feval_ll::eval(x);
121  }
122  virtual ~SwigDirector_feval_ll();
123 
124 
125 /* Internal Director utilities */
126 public:
127  bool swig_get_inner(const char* swig_protected_method_name) const {
128  std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);
129  return (iv != swig_inner.end() ? iv->second : false);
130  }
131 
132  void swig_set_inner(const char* swig_protected_method_name, bool val) const
133  { swig_inner[swig_protected_method_name] = val;}
134 
135 private:
136  mutable std::map<std::string, bool> swig_inner;
137 
138 
139 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
140 /* VTable implementation */
141  PyObject *swig_get_method(size_t method_index, const char *method_name) const {
142  PyObject *method = vtable[method_index];
143  if (!method) {
144  swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
145  method = PyObject_GetAttr(swig_get_self(), name);
146  if (!method) {
147  std::string msg = "Method in class feval_ll doesn't exist, undefined ";
148  msg += method_name;
149  Swig::DirectorMethodException::raise(msg.c_str());
150  }
151  vtable[method_index] = method;
152  }
153  return method;
154  }
155 private:
156  mutable swig::SwigVar_PyObject vtable[1];
157 #endif
158 
159 };
160 
161 
162 class SwigDirector_feval : public gr_py_feval, public Swig::Director {
163 
164 public:
165  SwigDirector_feval(PyObject *self);
166  virtual void eval();
167  virtual void evalSwigPublic() {
168  gr_feval::eval();
169  }
170  virtual ~SwigDirector_feval();
171 
172 
173 /* Internal Director utilities */
174 public:
175  bool swig_get_inner(const char* swig_protected_method_name) const {
176  std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);
177  return (iv != swig_inner.end() ? iv->second : false);
178  }
179 
180  void swig_set_inner(const char* swig_protected_method_name, bool val) const
181  { swig_inner[swig_protected_method_name] = val;}
182 
183 private:
184  mutable std::map<std::string, bool> swig_inner;
185 
186 
187 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
188 /* VTable implementation */
189  PyObject *swig_get_method(size_t method_index, const char *method_name) const {
190  PyObject *method = vtable[method_index];
191  if (!method) {
192  swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
193  method = PyObject_GetAttr(swig_get_self(), name);
194  if (!method) {
195  std::string msg = "Method in class feval doesn't exist, undefined ";
196  msg += method_name;
197  Swig::DirectorMethodException::raise(msg.c_str());
198  }
199  vtable[method_index] = method;
200  }
201  return method;
202  }
203 private:
204  mutable swig::SwigVar_PyObject vtable[1];
205 #endif
206 
207 };
208 
209 
210 class SwigDirector_feval_p : public gr_py_feval_p, public Swig::Director {
211 
212 public:
213  SwigDirector_feval_p(PyObject *self);
214  virtual void eval(pmt::pmt_t x);
215  virtual void evalSwigPublic(pmt::pmt_t x) {
216  gr_feval_p::eval(x);
217  }
218  virtual ~SwigDirector_feval_p();
219 
220 
221 /* Internal Director utilities */
222 public:
223  bool swig_get_inner(const char* swig_protected_method_name) const {
224  std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);
225  return (iv != swig_inner.end() ? iv->second : false);
226  }
227 
228  void swig_set_inner(const char* swig_protected_method_name, bool val) const
229  { swig_inner[swig_protected_method_name] = val;}
230 
231 private:
232  mutable std::map<std::string, bool> swig_inner;
233 
234 
235 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
236 /* VTable implementation */
237  PyObject *swig_get_method(size_t method_index, const char *method_name) const {
238  PyObject *method = vtable[method_index];
239  if (!method) {
240  swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
241  method = PyObject_GetAttr(swig_get_self(), name);
242  if (!method) {
243  std::string msg = "Method in class feval_p doesn't exist, undefined ";
244  msg += method_name;
245  Swig::DirectorMethodException::raise(msg.c_str());
246  }
247  vtable[method_index] = method;
248  }
249  return method;
250  }
251 private:
252  mutable swig::SwigVar_PyObject vtable[1];
253 #endif
254 
255 };
256 
257 
258 #endif