GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • python
    • PyCGraph.cpp
    • wrapper
      • PyWrapperMacro.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎python/PyCGraph.cpp‎

Copy file name to clipboardExpand all lines: python/PyCGraph.cpp
-11Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -327,20 +327,9 @@ PYBIND11_MODULE(pycgraph, cg) {
327327
py::arg("func"));
328328

329329
PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GCluster);
330-
PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GClusterInterface);
331-
332330
PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GRegion);
333-
PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GRegionInterface);
334-
335331
PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GCondition);
336-
PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GConditionInterface);
337-
338332
PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GSerialMultiCondition);
339-
PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GSerialMultiConditionInterface);
340-
341333
PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GParallelMultiCondition);
342-
PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GParallelMultiConditionInterface);
343-
344334
PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GMutable);
345-
PYCGRAPH_DECLARE_GGROUP_PYBIND11_FUNCTIONS(GMutableInterface);
346335
}
Collapse file

‎python/wrapper/PyWrapperMacro.h‎

Copy file name to clipboardExpand all lines: python/wrapper/PyWrapperMacro.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ public:
3838
explicit PCGG##Interface(const CGraph::GElementPtrArr& elements = CGraph::GElementPtrArr{}) : PCGG(elements) {}; \
3939
~PCGG##Interface() override = default; \
4040
protected: \
41-
PYCGRAPH_DECLARE_GELEMENT_COMMON_FUNCTIONS(PCGG##Interface) \
41+
PYCGRAPH_DECLARE_GELEMENT_COMMON_FUNCTIONS(PCGG) \
4242
PVFunc \
4343
}; \
4444
\
4545

4646

4747
#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) \
4949
.def(py::init<const GElementPtrArr&>(), \
5050
py::arg("elements") = GElementPtrArr{}, \
5151
py::keep_alive<1, 2>()) \

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.