Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] HalfedgeDS_*::Vertex_handle in std::set and std::map?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] HalfedgeDS_*::Vertex_handle in std::set and std::map?


Chronological Thread 
  • From: Stefan Schirra <>
  • To:
  • Subject: Re: [cgal-discuss] HalfedgeDS_*::Vertex_handle in std::set and std::map?
  • Date: Fri, 28 Sep 2007 10:10:12 +0200

Tom Bobach wrote:

@ Stefan:
Is there a way to iterate over the elements in the hashmap? This is what I need the std::set for - collect a bunch of handles. The chained_map used in the Unique_hash_map supports some rudimetary iteration, yet I cannot access it.

To be honest, I don't know. Apparently, there is nothing like that in the public interface. I guess, I would use a list of all the handles stored in the hash map and store the list position of an element in the hash map as well. Gives you both, iteration and (almost) constant time checking for "being defined".

best regards

Stefan




Archive powered by MHonArc 2.6.16.

Top of Page