diff options
author | fgodi <fgodi@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-05-26 08:49:36 +0000 |
---|---|---|
committer | fgodi <fgodi@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-05-26 08:49:36 +0000 |
commit | e0033c746444d46d0dfbd703e11e4a3a444059ae (patch) | |
tree | 8d4dbda98b3008d38c008cdbeac3dfb4af0b04fb /src | |
parent | 0b53f46b7ced798e7c1dcfeb3475672e0c2d2850 (diff) |
détails
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/bottleneckDistance@1208 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 360093cd6a67d08b98682362ec80271fb82dc2b2
Diffstat (limited to 'src')
-rw-r--r-- | src/Bipartite_graphs_matching/include/gudhi/Internal_point.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Bipartite_graphs_matching/include/gudhi/Internal_point.h b/src/Bipartite_graphs_matching/include/gudhi/Internal_point.h index 5d96ab93..6c9389b7 100644 --- a/src/Bipartite_graphs_matching/include/gudhi/Internal_point.h +++ b/src/Bipartite_graphs_matching/include/gudhi/Internal_point.h @@ -45,6 +45,22 @@ struct Internal_point { return (x() == p.x()) && (y() == p.y()) && (point_index==p.point_index); } bool operator!=(const Internal_point& p) const { return ! (*this == p); } +/* +Useless + friend void swap(Internal_point& a, Internal_point& b) + { + using std::swap; + double x_tmp = a.vec[0]; + double y_tmp = a.vec[1]; + int pi_tmp = a.point_index; + a.vec[0] = b.vec[0]; + a.vec[1] = b.vec[1]; + a.point_index = b.point_index; + b.vec[0] = x_tmp; + b.vec[1] = y_tmp; + b.point_index = pi_tmp; + } +*/ }; inline int null_point_index() { |