HOPS
HOPS class reference
MHO_PyUnaryOperator.hh
Go to the documentation of this file.
1 #ifndef MHO_PyOperator_HH__
2 #define MHO_PyOperator_HH__
3 
4 #include "MHO_PyOperator.hh"
6 
7 #include <pybind11/numpy.h> //this is important to have for std::complex<T> support!
8 #include <pybind11/pybind11.h>
9 namespace py = pybind11;
10 
11 namespace hops
12 {
13 
22 class MHO_UnaryOperator:
23 {
24  public:
26 
27  virtual bool Initialize() override = 0;
28  virtual bool Execute() override = 0;
29 
30  private:
31 };
32 
34 {
35  public:
37 
38  virtual bool Initialize() override { PYBIND11_OVERLOAD_PURE(bool, MHO_Operator, Initialize); }
39 
40  virtual bool Execute() override { PYBIND11_OVERLOAD_PURE(bool, MHO_Operator, Execute); }
41 
42  private:
43 };
44 
45 } // namespace hops
46 
47 #endif
Class MHO_Operator.
Definition: MHO_Operator.hh:21
MHO_Operator()
Definition: MHO_Operator.cc:7
Definition: MHO_PyUnaryOperator.hh:34
virtual bool Initialize() override
Definition: MHO_PyUnaryOperator.hh:38
virtual bool Execute() override
Definition: MHO_PyUnaryOperator.hh:40
virtual bool Execute() override=0
Function Execute.
virtual bool Initialize() override=0
Function Initialize.
Definition: MHO_ChannelLabeler.hh:17