diff --git a/Optimal_transportation_reconstruction_2/include/CGAL/OTR_2/Reconstruction_face_base_2.h b/Optimal_transportation_reconstruction_2/include/CGAL/OTR_2/Reconstruction_face_base_2.h index 39c994d671d..a1774c87556 100644 --- a/Optimal_transportation_reconstruction_2/include/CGAL/OTR_2/Reconstruction_face_base_2.h +++ b/Optimal_transportation_reconstruction_2/include/CGAL/OTR_2/Reconstruction_face_base_2.h @@ -17,6 +17,8 @@ #include #include +#include +#include #include @@ -62,6 +64,8 @@ private: FT m_relevance[3]; + std::size_t time_stamp_ = std::size_t(-2); + public: Reconstruction_face_base_2() { @@ -190,6 +194,18 @@ public: for (int i = 0; i < 3; ++i) clean_samples(i); } + + /// For the determinism of Compact_container iterators + ///@{ + typedef Tag_true Has_timestamp; + + std::size_t time_stamp() const { + return time_stamp_; + } + void set_time_stamp(const std::size_t& ts) { + time_stamp_ = ts; + } + ///@} }; //---------------STRUCT LESS FACE_HANDLE--------------------- diff --git a/Optimal_transportation_reconstruction_2/include/CGAL/OTR_2/Reconstruction_vertex_base_2.h b/Optimal_transportation_reconstruction_2/include/CGAL/OTR_2/Reconstruction_vertex_base_2.h index 7df7b10b047..4690b2baa33 100644 --- a/Optimal_transportation_reconstruction_2/include/CGAL/OTR_2/Reconstruction_vertex_base_2.h +++ b/Optimal_transportation_reconstruction_2/include/CGAL/OTR_2/Reconstruction_vertex_base_2.h @@ -16,6 +16,8 @@ #include +#include +#include #include namespace CGAL { @@ -53,6 +55,7 @@ private: int m_sample; Point m_relocated; FT m_relevance; + std::size_t time_stamp_ = std::size_t(-2); public: @@ -110,6 +113,18 @@ public: Point& relocated() { return m_relocated; } bool has_sample_assigned() const { return sample() != -1; } + + /// For the determinism of Compact_container iterators + ///@{ + typedef Tag_true Has_timestamp; + + std::size_t time_stamp() const { + return time_stamp_; + } + void set_time_stamp(const std::size_t& ts) { + time_stamp_ = ts; + } + ///@} }; //---------------STRUCT LESS VERTEX_HANDLE--------------------- template