forked from ChunelFeng/CGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPywGParam.h
More file actions
40 lines (30 loc) · 838 Bytes
/
PywGParam.h
File metadata and controls
40 lines (30 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/***************************
@Author: Chunel
@Contact: chunel@foxmail.com
@File: PywGParam.h
@Time: 2025/2/1 14:04
@Desc:
***************************/
#ifndef CGRAPH_PYWGPARAM_H
#define CGRAPH_PYWGPARAM_H
#include <pybind11/pybind11.h>
#include "CGraph.h"
namespace py = pybind11;
class PywGParam : public CGraph::GParam {
public:
~PywGParam() override = default;
protected:
CStatus init() override {
PYBIND11_OVERLOAD(CStatus, CGraph::GParam, init);
}
CStatus destroy() override {
PYBIND11_OVERLOAD(CStatus, CGraph::GParam, destroy);
}
CStatus setup() override {
PYBIND11_OVERLOAD(CStatus, CGraph::GParam, setup);
}
CVoid reset(const CStatus& curStatus) override {
PYBIND11_OVERLOAD(CVoid, CGraph::GParam, reset, curStatus);
}
};
#endif //CGRAPH_PYWGPARAM_H