Skip to content

Commit

Permalink
#20 update linted shapes output
Browse files Browse the repository at this point in the history
  • Loading branch information
kwabenantim committed Mar 20, 2024
1 parent dc3b864 commit 5b4113c
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 36 deletions.
20 changes: 10 additions & 10 deletions examples/shapes/wrapper/geometry/Point2.cppwg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ py::class_<Point2 , std::shared_ptr<Point2 > >(m, "Point2")
.def(py::init< >())
.def(py::init<double, double, double >(), py::arg("x"), py::arg("y"), py::arg("z") = 0.)
.def(
"GetLocation",
(::std::array<double, 2>(Point2::*)() const ) &Point2::GetLocation,
"GetLocation",
(::std::array<double, 2>(Point2::*)() const ) &Point2::GetLocation,
" " )
.def(
"rGetLocation",
(::std::array<double, 2> const &(Point2::*)() const ) &Point2::rGetLocation,
"rGetLocation",
(::std::array<double, 2> const &(Point2::*)() const ) &Point2::rGetLocation,
" " )
.def(
"GetIndex",
(unsigned int(Point2::*)() const ) &Point2::GetIndex,
"GetIndex",
(unsigned int(Point2::*)() const ) &Point2::GetIndex,
" " )
.def(
"SetIndex",
(void(Point2::*)(unsigned int)) &Point2::SetIndex,
"SetIndex",
(void(Point2::*)(unsigned int)) &Point2::SetIndex,
" " , py::arg("index") )
.def(
"SetLocation",
(void(Point2::*)(::std::array<double, 2> const &)) &Point2::SetLocation,
"SetLocation",
(void(Point2::*)(::std::array<double, 2> const &)) &Point2::SetLocation,
" " , py::arg("rLocation") )
;
}
20 changes: 10 additions & 10 deletions examples/shapes/wrapper/geometry/Point3.cppwg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ py::class_<Point3 , std::shared_ptr<Point3 > >(m, "Point3")
.def(py::init< >())
.def(py::init<double, double, double >(), py::arg("x"), py::arg("y"), py::arg("z") = 0.)
.def(
"GetLocation",
(::std::array<double, 3>(Point3::*)() const ) &Point3::GetLocation,
"GetLocation",
(::std::array<double, 3>(Point3::*)() const ) &Point3::GetLocation,
" " )
.def(
"rGetLocation",
(::std::array<double, 3> const &(Point3::*)() const ) &Point3::rGetLocation,
"rGetLocation",
(::std::array<double, 3> const &(Point3::*)() const ) &Point3::rGetLocation,
" " )
.def(
"GetIndex",
(unsigned int(Point3::*)() const ) &Point3::GetIndex,
"GetIndex",
(unsigned int(Point3::*)() const ) &Point3::GetIndex,
" " )
.def(
"SetIndex",
(void(Point3::*)(unsigned int)) &Point3::SetIndex,
"SetIndex",
(void(Point3::*)(unsigned int)) &Point3::SetIndex,
" " , py::arg("index") )
.def(
"SetLocation",
(void(Point3::*)(::std::array<double, 3> const &)) &Point3::SetLocation,
"SetLocation",
(void(Point3::*)(::std::array<double, 3> const &)) &Point3::SetLocation,
" " , py::arg("rLocation") )
;
}
16 changes: 8 additions & 8 deletions examples/shapes/wrapper/primitives/Shape2.cppwg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ void register_Shape2_class(py::module &m){
py::class_<Shape2 , std::shared_ptr<Shape2 > >(m, "Shape2")
.def(py::init< >())
.def(
"GetIndex",
(unsigned int(Shape2::*)() const ) &Shape2::GetIndex,
"GetIndex",
(unsigned int(Shape2::*)() const ) &Shape2::GetIndex,
" " )
.def(
"rGetVertices",
(::std::vector<std::shared_ptr<Point<2>>> const &(Shape2::*)() const ) &Shape2::rGetVertices,
"rGetVertices",
(::std::vector<std::shared_ptr<Point<2>>> const &(Shape2::*)() const ) &Shape2::rGetVertices,
" " )
.def(
"SetIndex",
(void(Shape2::*)(unsigned int)) &Shape2::SetIndex,
"SetIndex",
(void(Shape2::*)(unsigned int)) &Shape2::SetIndex,
" " , py::arg("index") )
.def(
"SetVertices",
(void(Shape2::*)(::std::vector<std::shared_ptr<Point<2>>> const &)) &Shape2::SetVertices,
"SetVertices",
(void(Shape2::*)(::std::vector<std::shared_ptr<Point<2>>> const &)) &Shape2::SetVertices,
" " , py::arg("rVertices") )
;
}
16 changes: 8 additions & 8 deletions examples/shapes/wrapper/primitives/Shape3.cppwg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ void register_Shape3_class(py::module &m){
py::class_<Shape3 , std::shared_ptr<Shape3 > >(m, "Shape3")
.def(py::init< >())
.def(
"GetIndex",
(unsigned int(Shape3::*)() const ) &Shape3::GetIndex,
"GetIndex",
(unsigned int(Shape3::*)() const ) &Shape3::GetIndex,
" " )
.def(
"rGetVertices",
(::std::vector<std::shared_ptr<Point<3>>> const &(Shape3::*)() const ) &Shape3::rGetVertices,
"rGetVertices",
(::std::vector<std::shared_ptr<Point<3>>> const &(Shape3::*)() const ) &Shape3::rGetVertices,
" " )
.def(
"SetIndex",
(void(Shape3::*)(unsigned int)) &Shape3::SetIndex,
"SetIndex",
(void(Shape3::*)(unsigned int)) &Shape3::SetIndex,
" " , py::arg("index") )
.def(
"SetVertices",
(void(Shape3::*)(::std::vector<std::shared_ptr<Point<3>>> const &)) &Shape3::SetVertices,
"SetVertices",
(void(Shape3::*)(::std::vector<std::shared_ptr<Point<3>>> const &)) &Shape3::SetVertices,
" " , py::arg("rVertices") )
;
}

0 comments on commit 5b4113c

Please sign in to comment.