-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7423 from lrineau/Triangulation_3-fix_simplex_tra…
…verser-GF Triangulation_3: Fix a bug in tr.segment_traverser_simplices()
- Loading branch information
Showing
11 changed files
with
1,143 additions
and
745 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Copyright (c) 2023 GeometryFactory Sarl (France). | ||
// All rights reserved. | ||
// | ||
// $URL$ | ||
// $Id$ | ||
// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial | ||
// | ||
// Author(s) : Laurent Rineau | ||
|
||
#ifndef CGAL_BASE_WITH_TIME_STAMP_H | ||
#define CGAL_BASE_WITH_TIME_STAMP_H | ||
|
||
#include <CGAL/tags.h> // for Tag_true | ||
#include <cstdint> // for std::size_t | ||
#include <utility> // for std::forward | ||
|
||
namespace CGAL { | ||
|
||
template <typename Base> | ||
class Base_with_time_stamp : public Base { | ||
std::size_t time_stamp_ = -1; | ||
public: | ||
using Base::Base; | ||
|
||
Base_with_time_stamp(const Base_with_time_stamp& other) : | ||
Base(other), | ||
time_stamp_(other.time_stamp_) | ||
{} | ||
|
||
typedef CGAL::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; | ||
} | ||
|
||
template < class TDS > | ||
struct Rebind_TDS { | ||
typedef typename Base::template Rebind_TDS<TDS>::Other Base2; | ||
typedef Base_with_time_stamp<Base2> Other; | ||
}; | ||
}; | ||
|
||
} // namespace CGAL | ||
|
||
#endif // CGAL_BASE_WITH_TIME_STAMP_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.