Skip to content

Commit

Permalink
Merge pull request #1033 from Geode-solutions/fix/move-merger
Browse files Browse the repository at this point in the history
fix(Merger): allow to move merger
  • Loading branch information
MelchiorSchuh authored Oct 22, 2024
2 parents 4ea7ce0 + 228ef99 commit 8bcee66
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/geode/mesh/helpers/detail/curve_merger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ namespace geode
EdgedCurveMerger( absl::Span< const std::reference_wrapper<
const EdgedCurve< dimension > > > curves,
double epsilon );
EdgedCurveMerger( EdgedCurveMerger&& ) noexcept;
~EdgedCurveMerger();

[[nodiscard]] std::unique_ptr< EdgedCurve< dimension > > merge();
Expand Down
1 change: 1 addition & 0 deletions include/geode/mesh/helpers/detail/point_set_merger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ namespace geode
PointSetMerger( absl::Span< const std::reference_wrapper<
const PointSet< dimension > > > pointsets,
double epsilon );
PointSetMerger( PointSetMerger&& ) noexcept;
~PointSetMerger();

[[nodiscard]] std::unique_ptr< PointSet< dimension > > merge();
Expand Down
1 change: 1 addition & 0 deletions include/geode/mesh/helpers/detail/solid_merger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ namespace geode
SolidMeshMerger( absl::Span< const std::reference_wrapper<
const SolidMesh< dimension > > > solids,
double epsilon );
SolidMeshMerger( SolidMeshMerger&& ) noexcept;
~SolidMeshMerger();

[[nodiscard]] std::unique_ptr< SolidMesh< dimension > > merge();
Expand Down
1 change: 1 addition & 0 deletions include/geode/mesh/helpers/detail/surface_merger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ namespace geode
SurfaceMeshMerger( absl::Span< const std::reference_wrapper<
const SurfaceMesh< dimension > > > surfaces,
double epsilon );
SurfaceMeshMerger( SurfaceMeshMerger&& ) noexcept;
~SurfaceMeshMerger();

[[nodiscard]] std::unique_ptr< SurfaceMesh< dimension > > merge();
Expand Down
1 change: 1 addition & 0 deletions include/geode/mesh/helpers/detail/vertex_merger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ namespace geode
VertexMerger(
absl::Span< const std::reference_wrapper< const Mesh > > meshes,
double epsilon );
VertexMerger( VertexMerger&& ) noexcept;
~VertexMerger();

[[nodiscard]] absl::Span<
Expand Down
4 changes: 4 additions & 0 deletions src/geode/mesh/helpers/detail/curve_merger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ namespace geode
{
}

template < index_t dimension >
EdgedCurveMerger< dimension >::EdgedCurveMerger(
EdgedCurveMerger&& ) noexcept = default;

template < index_t dimension >
EdgedCurveMerger< dimension >::~EdgedCurveMerger() = default;

Expand Down
4 changes: 4 additions & 0 deletions src/geode/mesh/helpers/detail/point_set_merger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ namespace geode
{
}

template < index_t dimension >
PointSetMerger< dimension >::PointSetMerger(
PointSetMerger&& ) noexcept = default;

template < index_t dimension >
PointSetMerger< dimension >::~PointSetMerger() = default;

Expand Down
4 changes: 4 additions & 0 deletions src/geode/mesh/helpers/detail/solid_merger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ namespace geode
{
}

template < index_t dimension >
SolidMeshMerger< dimension >::SolidMeshMerger(
SolidMeshMerger&& ) noexcept = default;

template < index_t dimension >
SolidMeshMerger< dimension >::~SolidMeshMerger() = default;

Expand Down
4 changes: 4 additions & 0 deletions src/geode/mesh/helpers/detail/surface_merger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ namespace geode
{
}

template < index_t dimension >
SurfaceMeshMerger< dimension >::SurfaceMeshMerger(
SurfaceMeshMerger&& ) noexcept = default;

template < index_t dimension >
SurfaceMeshMerger< dimension >::~SurfaceMeshMerger() = default;

Expand Down
3 changes: 3 additions & 0 deletions src/geode/mesh/helpers/detail/vertex_merger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ namespace geode
{
}

template < typename Mesh >
VertexMerger< Mesh >::VertexMerger( VertexMerger&& ) noexcept = default;

template < typename Mesh >
VertexMerger< Mesh >::~VertexMerger() = default;

Expand Down

0 comments on commit 8bcee66

Please sign in to comment.