MEPP2 Project
Memory_comparator.h
Go to the documentation of this file.
1 // Copyright (c) 2012-2022 University of Lyon and CNRS (France).
2 // All rights reserved.
3 //
4 // This file is part of MEPP2; you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as
6 // published by the Free Software Foundation; either version 3 of
7 // the License, or (at your option) any later version.
8 //
9 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
10 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11 
12 #pragma once
13 
16 
17 namespace FEVV {
18 namespace Filters {
19 
23 template<typename HalfedgeGraph,
24  typename PointMap,
27  typename Geometry = typename FEVV::Geometry_traits<HalfedgeGraph> >
29 {
30  private:
32  public:
35  {
36  return _st.operator()(mem1.get_vkept(), mem2.get_vkept());
37  }
40  PointMap >
41  &st)
42  : _st(st)
43  {}
45 };
46 
50 template<typename HalfedgeGraph,
51  typename PointMap,
53  typename Geometry = typename FEVV::Geometry_traits<HalfedgeGraph>>
55 {
56  private:
58  public:
61  PointMap >
62  &st)
63  : _st(st)
64  {}
65 
67 
69  {
70  return _st.operator()(v1, v2);
71  }
72 
73 };
74 
75 } // namespace Filters
76 } // namespace FEVV
FEVV::Filters::Collapse_info::get_vkept
vertex_descriptor get_vkept() const
Definition: Collapse_info.h:84
FEVV::Filters::Memory_comparator::operator()
bool operator()(const FEVV::Filters::Collapse_info< HalfedgeGraph, PointMap > &mem1, const FEVV::Filters::Collapse_info< HalfedgeGraph, PointMap > &mem2) const
Definition: Memory_comparator.h:33
FEVV::Filters::Collapse_info< HalfedgeGraph, PointMap >
FEVV::Geometry_traits
Refer to Geometry_traits_documentation_dummy for further documentation on provided types and algorith...
Definition: Geometry_traits.h:162
FEVV::Comparator::Spanning_tree_vertex_edge_comparator< HalfedgeGraph, PointMap >
FEVV
Interfaces for plugins These interfaces will be used for different plugins.
Definition: Assert.h:16
FEVV::Filters::Vertex_span_comparator::_st
const FEVV::Comparator::Spanning_tree_vertex_edge_comparator< HalfedgeGraph, PointMap > & _st
Definition: Memory_comparator.h:57
FEVV::Filters::Memory_comparator::Memory_comparator
Memory_comparator(const FEVV::Comparator::Spanning_tree_vertex_edge_comparator< HalfedgeGraph, PointMap > &st)
Definition: Memory_comparator.h:38
FEVV::Filters::Vertex_span_comparator::Vertex_span_comparator
Vertex_span_comparator(const FEVV::Comparator::Spanning_tree_vertex_edge_comparator< HalfedgeGraph, PointMap > &st)
Definition: Memory_comparator.h:59
FEVV::Filters::Memory_comparator
Functor object to sort sequential container of Collapse_info objects. It is based on the Spanning_tre...
Definition: Memory_comparator.h:29
Collapse_info.h
msdm2::vertex_descriptor
boost::graph_traits< MeshT >::vertex_descriptor vertex_descriptor
Definition: msdm2_surfacemesh.h:33
FEVV::Filters::Vertex_span_comparator::operator()
bool operator()(vertex_descriptor v1, vertex_descriptor v2) const
Definition: Memory_comparator.h:68
FEVV::Filters::Memory_comparator::_st
const FEVV::Comparator::Spanning_tree_vertex_edge_comparator< HalfedgeGraph, PointMap > & _st
Definition: Memory_comparator.h:31
FEVV::Filters::Vertex_span_comparator
Functor object to sort sequential container of vertex_descriptor objects. It is based on the Spanning...
Definition: Memory_comparator.h:55
FEVV::Filters::Vertex_span_comparator::~Vertex_span_comparator
~Vertex_span_comparator()
Definition: Memory_comparator.h:66
Spanning_tree_vertex_edge_comparator.hpp
FEVV::Filters::Memory_comparator::~Memory_comparator
~Memory_comparator()
Definition: Memory_comparator.h:44
FEVV::DataStructures::AIF::AIFPoint
Definition: AIFProperties.h:31