Remove the maxid

This commit is contained in:
Guillaume Damiand 2021-10-19 20:16:43 +02:00
parent ffca80cf6e
commit 84ca88f8cc
1 changed files with 1 additions and 14 deletions

View File

@ -84,27 +84,14 @@ namespace CGAL {
const std::size_t& id() const const std::size_t& id() const
{ return m_id; } { return m_id; }
static const std::size_t& max_id()
{ return m_max_id; }
protected: protected:
void set_id(std::size_t id) void set_id(std::size_t id)
{ { m_id=id; }
m_id=id;
if (m_id+1>m_max_id) { m_max_id=m_id+1; }
}
static void reset_max_id()
{ m_max_id=0; }
protected: protected:
std::size_t m_id; ///< id of the cell std::size_t m_id; ///< id of the cell
static std::size_t m_max_id; ///< max id used (warning: never decreases)
}; };
template <class WithId>
std::size_t Add_id<WithId>::m_max_id=0;
/// If the tag WithId is false, we do not add id to cells. /// If the tag WithId is false, we do not add id to cells.
template <> template <>
class Add_id<Tag_false> class Add_id<Tag_false>