~ubuntu-branches/debian/stretch/cgal/stretch

« back to all changes in this revision

Viewing changes to include/CGAL/Segment_Delaunay_graph_2.h

  • Committer: Package Import Robot
  • Author(s): Joachim Reichel
  • Date: 2014-04-05 10:56:43 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20140405105643-jgnrpu2thtx23zfs
Tags: 4.4-1
* New upstream release.
* Remove patches do-not-link-example-with-qt4-support-library.patch and
  fix_jet_fitting_3.patch (applied upstream).

Show diffs side-by-side

added added

removed removed

Lines of Context:
522
522
  }
523
523
 
524
524
  template <class IndicesIterator>
525
 
  std::size_t insert_segments( std::vector<Point_2>& points,
 
525
  std::size_t insert_segments( const std::vector<Point_2>& points,
526
526
                               IndicesIterator indices_first,
527
527
                               IndicesIterator indices_beyond )
528
528
  {
537
537
              std::back_inserter(vertex_indices));
538
538
 
539
539
    size_type n = this->number_of_vertices();
540
 
    Spatial_sort_traits_adapter_2<Gt, Point_2*> sort_traits(&(points[0]));
 
540
    Spatial_sort_traits_adapter_2<Gt,const Point_2*> sort_traits(&(points[0]));
541
541
 
542
542
    spatial_sort(vertex_indices.begin(), vertex_indices.end(), sort_traits);
543
543
 
590
590
    return segment.target();
591
591
  }
592
592
 
593
 
  template <class Segment_2>
594
593
  static const Point_2& get_source(const Site_2& segment){
595
594
    return segment.source_of_supporting_site();
596
595
  }
597
 
  template <class Segment_2>
 
596
 
598
597
  static const Point_2& get_target(const Site_2& segment){
599
598
    return segment.target_of_supporting_site();
600
599
  }