Revert "Cell_attribute::get_nb_refs is public and not protected; CMap_cell_iterator copy contructor and operator= share also mark mmark_number"

This reverts commit 9aaab1e74a.

(pushed by error in master instead of in my branch)
This commit is contained in:
Guillaume Damiand 2013-04-23 21:00:36 +02:00
parent 9aaab1e74a
commit f58aa32242
2 changed files with 3 additions and 7 deletions

View File

@ -140,11 +140,11 @@ namespace CGAL {
--mrefcounting;
}
public:
/// Get the reference counting.
unsigned int get_nb_refs() const
{ return mrefcounting; }
public:
void * for_compact_container() const
{ return vp; }
void * & for_compact_container()

View File

@ -112,10 +112,7 @@ namespace CGAL {
CMap_cell_iterator(const Self& aiterator):
Ite(aiterator),
mcell_mark_number(aiterator.mcell_mark_number)
{
this->mmap->share_a_mark(this->mmark_number);
this->mmap->share_a_mark(this->mcell_mark_number);
}
{ this->mmap->share_a_mark(this->mcell_mark_number); }
/// Assignment operator.
Self& operator=(const Self& aiterator)
@ -123,7 +120,6 @@ namespace CGAL {
if (this != &aiterator)
{
Ite::operator=(aiterator);
this->mmap->share_a_mark(this->mmark_number);
this->mmap->share_a_mark(mcell_mark_number);
}
return *this;