Commit 04ba796e authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[python][occ][brepwrapper] add move constructor

parent 3c472772
......@@ -44,6 +44,7 @@ public:
using Shape = S;
BRepWrapper(const Shape& shape) : shape_(shape) {}
BRepWrapper(Shape&& shape) : shape_(std::move(shape)) {}
const Shape& get() const { return shape_; }
std::string name() const { return geometryName(get()) + "_Wrapper"; }
private:
......@@ -73,6 +74,12 @@ public:
, builder_()
{}
//! Constructor from a compound
BRepWrapper(Compound&& c)
: compound_(std::move(c))
, builder_()
{}
//! return the compound
const Compound& get() const
{ return compound_; }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment