-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #203 from SimonRohou/codac2_dev
[py] added binding for CtcDist
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 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,35 @@ | ||
/** | ||
* Codac binding (core) | ||
* ---------------------------------------------------------------------------- | ||
* \date 2024 | ||
* \author Simon Rohou | ||
* \copyright Copyright 2024 Codac Team | ||
* \license GNU Lesser General Public License (LGPL) | ||
*/ | ||
|
||
#include <pybind11/pybind11.h> | ||
#include <pybind11/operators.h> | ||
#include <pybind11/stl.h> | ||
#include <codac2_template_tools.h> | ||
#include <codac2_CtcDist.h> | ||
#include "codac2_py_Ctc.h" | ||
#include "codac2_py_CtcDist_docs.h" // Generated file from Doxygen XML (doxygen2docstring.py): | ||
|
||
using namespace std; | ||
using namespace codac2; | ||
namespace py = pybind11; | ||
using namespace pybind11::literals; | ||
|
||
void export_CtcDist(py::module& m, py::class_<CtcBase<IntervalVector>,pyCtcIntervalVector>& pyctc) | ||
{ | ||
py::class_<CtcDist> exported(m, "CtcDist", pyctc, CTCDIST_MAIN); | ||
exported | ||
|
||
.def(py::init<>(), | ||
CTCDIST_CTCDIST) | ||
|
||
.def(CONTRACT_BOX_METHOD(CtcDist, | ||
VOID_CTCDIST_CONTRACT_INTERVALVECTOR_REF_CONST)) | ||
|
||
; | ||
} |