forked from ChunelFeng/CGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPywGSome.h
More file actions
35 lines (27 loc) · 810 Bytes
/
Copy pathPywGSome.h
File metadata and controls
35 lines (27 loc) · 810 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
/***************************
@Author: Chunel
@Contact: chunel@foxmail.com
@File: PywGSome.h
@Time: 2026/7/4 15:13
@Desc:
***************************/
#ifndef CGRAPH_PYWGSOME_H
#define CGRAPH_PYWGSOME_H
#include <pybind11/pybind11.h>
#include "CGraph.h"
#include "PyWrapperMacro.h"
class PywGSome : public CGraph::GSome {
public:
explicit PywGSome(const CGraph::GElementPtrArr& elements = CGraph::GElementPtrArr{}) {
__addGElements_4py(elements);
}
~PywGSome() override = default;
CSize getThreshold() override {
PYBIND11_OVERLOAD_PURE(CSize, PywGSome, getThreshold);
}
};
PYCGRAPH_DECLARE_GGROUP_INTERFACE_CLASS(PywGSome,
CSize getThreshold() override {
PYBIND11_OVERLOAD_PURE(CSize, PywGSomeInterface, getThreshold);
});
#endif //CGRAPH_PYWGSOME_H