-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] add GRegion & GCondition python version.
- Loading branch information
1 parent
37d89f5
commit 7ecbf2d
Showing
14 changed files
with
92 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef CGRAPH_GCONDITION_PYW_H | ||
#define CGRAPH_GCONDITION_PYW_H | ||
|
||
#include <pybind11/pybind11.h> | ||
|
||
#include "CGraph.h" | ||
|
||
namespace py = pybind11; | ||
|
||
class GConditionPyw : public CGraph::GCondition { | ||
public: | ||
explicit GConditionPyw() : CGraph::GCondition() {}; | ||
~GConditionPyw() override {}; | ||
|
||
CIndex choose() override { | ||
PYBIND11_OVERLOAD_PURE(CIndex, GConditionPyw, choose); | ||
} | ||
|
||
CStatus addGElement(CGraph::GElementPtr element) { | ||
return addElement(element); | ||
} | ||
}; | ||
|
||
#endif // CGRAPH_GCONDITION_PYW_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef CGRAPH_GREGION_PY_H | ||
#define CGRAPH_GREGION_PY_H | ||
|
||
#include "CGraph.h" | ||
|
||
class GRegionPy : public CGraph::GRegion { | ||
public: | ||
explicit GRegionPy() : CGraph::GRegion() {}; | ||
~GRegionPy() override {}; | ||
|
||
CStatus addGElement(CGraph::GElementPtr element) { | ||
return addElement(element); | ||
} | ||
}; | ||
|
||
#endif // CGRAPH_GREGION_PY_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
#ifndef CGRAPH_PYWRAPPERINCLUDE_H | ||
#define CGRAPH_PYWRAPPERINCLUDE_H | ||
#ifndef CGRAPH_PYWRAPPER_INCLUDE_H | ||
#define CGRAPH_PYWRAPPER_INCLUDE_H | ||
|
||
#include "GPipelinePy.h" | ||
#include "GElementPyw.h" | ||
#include "GNodePyw.h" | ||
#include "GRegionPy.h" | ||
#include "GConditionPyw.h" | ||
|
||
#endif // CGRAPH_PYWRAPPERINCLUDE_H | ||
#endif // CGRAPH_PYWRAPPER_INCLUDE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters