Skip to content
Snippets Groups Projects
Commit 5776ebbd authored by Robert Applin's avatar Robert Applin
Browse files

Apply clang format patch Refs #21465

parent da77aa25
No related branches found
No related tags found
No related merge requests found
...@@ -27,8 +27,9 @@ void export_Sample() { ...@@ -27,8 +27,9 @@ void export_Sample() {
.def("getName", &Sample::getName, .def("getName", &Sample::getName,
return_value_policy<copy_const_reference>(), arg("self"), return_value_policy<copy_const_reference>(), arg("self"),
"Returns the string name of the sample") "Returns the string name of the sample")
.def("getOrientedLattice", (const OrientedLattice &(Sample::*)() const) & .def("getOrientedLattice",
Sample::getOrientedLattice, (const OrientedLattice &(Sample::*)() const) &
Sample::getOrientedLattice,
arg("self"), return_value_policy<reference_existing_object>(), arg("self"), return_value_policy<reference_existing_object>(),
"Get the oriented lattice for this sample") "Get the oriented lattice for this sample")
.def("hasOrientedLattice", &Sample::hasOrientedLattice, arg("self"), .def("hasOrientedLattice", &Sample::hasOrientedLattice, arg("self"),
...@@ -73,6 +74,6 @@ void export_Sample() { ...@@ -73,6 +74,6 @@ void export_Sample() {
// ------------------------------------- // -------------------------------------
.def("__len__", &Sample::size, arg("self"), .def("__len__", &Sample::size, arg("self"),
"Gets the number of samples in this collection") "Gets the number of samples in this collection")
.def("__getitem__", &Sample::operator[], (arg("self"), arg("index")), .def("__getitem__", &Sample::operator[],(arg("self"), arg("index")),
return_internal_reference<>()); return_internal_reference<>());
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment