Subject: CGAL users discussion list
List archive
- From: "Bart Janssens" <>
- To:
- Subject: Re: [cgal-discuss] HalfedgeDS_*::Vertex_handle in std::set and std::map?
- Date: Fri, 28 Sep 2007 10:14:07 +0200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=fVCQW3ndF/rtAkWbwlEc0wV8b+XI9iLm3VF7XFuNeNgZdhmZBuOY9wjxLiFGbtMBByKV30Iyn2N/JgWppT6KyyhAmtaKBNgG4rLKtbln2AD0HjMYtberoJwqDuv27hcIhuO5acZh71pUPoIFseYbhJjd6m5ky2JBzQRSeNy3mxU=
On 9/28/07, Tom Bobach
<>
wrote:
> Dear CGAL community,
>
> I am facing the problem that in the default halfedge data structure
> implementation there is no comparison operator defined for handles and
> iterators.
> This makes usage of Handles in std::set and std::map unnecessarily
> complicated. I am wondering if someone else faced this problem and if there
> is an easy, non-intrusive way to fix this.
I got around the problem using probably the least elegant, but easiest
solution: I dereferenced the handle, and then stored the address of
the resulting object in an std::map, i.e. map[&(*handle)] = blah;
regards,
--
Bart Janssens
- HalfedgeDS_*::Vertex_handle in std::set and std::map?, Tom Bobach, 09/28/2007
- Re: [cgal-discuss] HalfedgeDS_*::Vertex_handle in std::set and std::map?, Wesley Smith, 09/28/2007
- Re: [cgal-discuss] HalfedgeDS_*::Vertex_handle in std::set and std::map?, Stefan Schirra, 09/28/2007
- Re: [cgal-discuss] HalfedgeDS_*::Vertex_handle in std::set and std::map?, Tom Bobach, 09/28/2007
- Re: [cgal-discuss] HalfedgeDS_*::Vertex_handle in std::set and std::map?, Stefan Schirra, 09/28/2007
- Re: [cgal-discuss] HalfedgeDS_*::Vertex_handle in std::set and std::map?, Andreas Fabri, 09/28/2007
- Re: [cgal-discuss] HalfedgeDS_*::Vertex_handle in std::set and std::map?, Stefan Schirra, 09/28/2007
- Re: [cgal-discuss] HalfedgeDS_*::Vertex_handle in std::set and std::map?, Tom Bobach, 09/28/2007
- Re: [cgal-discuss] HalfedgeDS_*::Vertex_handle in std::set and std::map?, Bart Janssens, 09/28/2007
- Re: [cgal-discuss] HalfedgeDS_*::Vertex_handle in std::set and std::map?, Andreas Fabri, 09/28/2007
Archive powered by MHonArc 2.6.16.