mirror of https://github.com/CGAL/cgal
Remove sizing of hash tables in copy constructors, size just grows
This commit is contained in:
parent
0a8ef644c2
commit
16bed97ec5
|
|
@ -118,7 +118,6 @@ public:
|
|||
chained_map_item lookup(std::size_t x) const;
|
||||
chained_map_item first_item() const;
|
||||
chained_map_item next_item(chained_map_item it) const;
|
||||
std::size_t size() const;
|
||||
void statistics() const;
|
||||
};
|
||||
|
||||
|
|
@ -386,10 +385,6 @@ chained_map<T, Allocator>::next_item(chained_map_item it) const
|
|||
return (it < free ? it : 0);
|
||||
}
|
||||
|
||||
template <typename T, typename Allocator>
|
||||
std::size_t chained_map<T, Allocator>::size() const
|
||||
{ return table_size; }
|
||||
|
||||
template <typename T, typename Allocator>
|
||||
void chained_map<T, Allocator>::statistics() const
|
||||
{ std::cout << "table_size: " << table_size <<"\n";
|
||||
|
|
|
|||
|
|
@ -113,8 +113,6 @@ public:
|
|||
return first2;
|
||||
}
|
||||
|
||||
std::size_t size() const { return m_map.size(); }
|
||||
|
||||
void statistics() const { m_map.statistics(); }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -126,11 +126,6 @@ sets the table size.
|
|||
*/
|
||||
void reserve(std::size_t table_size);
|
||||
|
||||
/*!
|
||||
gets the table size.
|
||||
*/
|
||||
std::size_t size();
|
||||
|
||||
/*!
|
||||
|
||||
resets `*this` to the injective function from `Key` to the
|
||||
|
|
|
|||
|
|
@ -438,7 +438,7 @@ public:
|
|||
~SNC_structure() { CGAL_NEF_TRACEN("~SNC_structure: clearing "<<this); clear(); }
|
||||
|
||||
SNC_structure(const Self& D) :
|
||||
boundary_item_(boost::none, D.boundary_item_.size()), sm_boundary_item_(boost::none, D.sm_boundary_item_.size()),
|
||||
boundary_item_(boost::none), sm_boundary_item_(boost::none),
|
||||
vertices_(D.vertices_), halfedges_(D.halfedges_),
|
||||
halffacets_(D.halffacets_), volumes_(D.volumes_),
|
||||
shalfedges_(D.shalfedges_), shalfloops_(D.shalfloops_),
|
||||
|
|
@ -450,9 +450,7 @@ public:
|
|||
return *this;
|
||||
clear();
|
||||
boundary_item_.clear(boost::none);
|
||||
boundary_item_.reserve(D.boundary_item_.size());
|
||||
sm_boundary_item_.clear(boost::none);
|
||||
sm_boundary_item_.reserve(D.sm_boundary_item_.size());
|
||||
vertices_ = D.vertices_;
|
||||
halfedges_ = D.halfedges_;
|
||||
halffacets_ = D.halffacets_;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ class Generic_handle_map : public
|
|||
public:
|
||||
Generic_handle_map() : Base() {}
|
||||
Generic_handle_map(I i) : Base(i) {}
|
||||
Generic_handle_map(I i, std::size_t n) : Base(i,n) {}
|
||||
|
||||
template <class H>
|
||||
const I& operator[](H h) const
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ public:
|
|||
);
|
||||
}
|
||||
|
||||
Sphere_map(const Self& D) : boundary_item_(boost::none, D.boundary_item_.size()),
|
||||
Sphere_map(const Self& D) : boundary_item_(boost::none),
|
||||
svertices_(D.svertices_),
|
||||
sedges_(D.sedges_),
|
||||
sfaces_(D.sfaces_),
|
||||
|
|
@ -248,7 +248,6 @@ public:
|
|||
Self& operator=(const Self& D)
|
||||
{ if ( this == &D ) return *this;
|
||||
clear();
|
||||
boundary_item_.reserve(D.boundary_item_.size());
|
||||
svertices_ = D.svertices_;
|
||||
sfaces_ = D.sfaces_;
|
||||
sedges_ = D.sedges_;
|
||||
|
|
|
|||
Loading…
Reference in New Issue