GeezerVison is showing github.com — [python] optimize python GRegion and so on, devide func. · feiyunwill/CGraph@72e816e
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: python/PyCGraph.cpp -11Lines changed: 0 additions & 11 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -327,20 +327,9 @@ PYBIND11_MODULE(pycgraph, cg) { |
327 | 327 | py::arg("func")); |
328 | 328 |
|
329 | 329 | PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GCluster); |
330 | | - PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GClusterInterface); |
331 | | - |
332 | 330 | PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GRegion); |
333 | | - PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GRegionInterface); |
334 | | - |
335 | 331 | PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GCondition); |
336 | | - PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GConditionInterface); |
337 | | - |
338 | 332 | PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GSerialMultiCondition); |
339 | | - PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GSerialMultiConditionInterface); |
340 | | - |
341 | 333 | PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GParallelMultiCondition); |
342 | | - PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GParallelMultiConditionInterface); |
343 | | - |
344 | 334 | PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GMutable); |
345 | | - PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GMutableInterface); |
346 | 335 | } |
Collapse file
Copy file name to clipboardExpand all lines: python/wrapper/PyWrapperMacro.h +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -38,14 +38,14 @@ public: |
38 | 38 | explicit PCGG##Interface(const CGraph::GElementPtrArr& elements = CGraph::GElementPtrArr{}) : PCGG(elements) {}; \ |
39 | 39 | ~PCGG##Interface() override = default; \ |
40 | 40 | protected: \ |
41 | | - PYCGRAPH_DECLARE_GELEMENT_COMMON_FUNCTIONS(PCGG##Interface) \ |
| 41 | + PYCGRAPH_DECLARE_GELEMENT_COMMON_FUNCTIONS(PCGG) \ |
42 | 42 | PVFunc \ |
43 | 43 | }; \ |
44 | 44 | \ |
45 | 45 |
|
46 | 46 |
|
47 | 47 | #define PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(PCGG) \ |
48 | | - py::class_<Pyw##PCGG, GElement, std::unique_ptr<Pyw##PCGG, py::nodelete> >(cg, #PCGG) \ |
| 48 | + py::class_<Pyw##PCGG, GElement, Pyw##PCGG##Interface, std::unique_ptr<Pyw##PCGG, py::nodelete> >(cg, #PCGG) \ |
49 | 49 | .def(py::init<const GElementPtrArr&>(), \ |
50 | 50 | py::arg("elements") = GElementPtrArr{}, \ |
51 | 51 | py::keep_alive<1, 2>()) \ |
|