k1a  1.1
Accelerated functionalities for k1lib
StrIterInter.h
Go to the documentation of this file.
1 #pragma once
2 #define PY_SSIZE_T_CLEAN
3 #include <Python.h>
4 
5 #include <string>
6 
7 #include "StrIter.h"
8 
9 namespace k1a {
10 
18 class StrIterInter : public StrIter {
19  private:
22 
23  public:
24  StrIterInter(PyObject *pyObj, StrIter *og, transformF f);
25  std::string next();
26  ~StrIterInter();
27  static void Py_dealloc(PyObject *self);
28 };
29 
30 typedef struct {
34 
35 PyObject *PyStrIterInter_new(StrIter *og, transformF f);
36 
37 extern PyTypeObject PyStrIterInter_Type;
38 
39 } // namespace k1a
Intermediate string iterator.
Definition: StrIterInter.h:18
std::string next()
StrIterInter(PyObject *pyObj, StrIter *og, transformF f)
static void Py_dealloc(PyObject *self)
String iterator.
Definition: StrIter.h:79
PyObject * pyObj
Associated python object.
Definition: StrIter.h:81
Definition: funcs.cpp:15
PyObject * PyStrIterInter_new(StrIter *og, transformF f)
PyTypeObject PyStrIterInter_Type
std::string(* transformF)(std::string)
Definition: StrIter.h:13
StrIterInter * val
Definition: StrIterInter.h:32