From b3a1503e70a04b17e8b9efebadf2d876491ce73e Mon Sep 17 00:00:00 2001 From: Tali Zvi Date: Tue, 13 May 2003 20:55:09 +0000 Subject: [PATCH] Added a reference toa hint that is used to insert curves into the status line. --- .../CGAL/Sweep_line_2/Pmwx_sweep_line_curve.h | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Packages/Arrangement/include/CGAL/Sweep_line_2/Pmwx_sweep_line_curve.h b/Packages/Arrangement/include/CGAL/Sweep_line_2/Pmwx_sweep_line_curve.h index 38ece881c9a..7c447bc23da 100644 --- a/Packages/Arrangement/include/CGAL/Sweep_line_2/Pmwx_sweep_line_curve.h +++ b/Packages/Arrangement/include/CGAL/Sweep_line_2/Pmwx_sweep_line_curve.h @@ -27,6 +27,8 @@ #ifndef CGAL_PMWX_SWEEP_LINE_CURVE_H #define CGAL_PMWX_SWEEP_LINE_CURVE_H +#include + #include #include #include @@ -57,6 +59,11 @@ public: typedef Sweep_line_subcurve Base; typedef Pmwx_sweep_line_curve Self; + typedef Status_line_curve_less_functor StatusLineCurveLess; + typedef std::set StatusLine; + typedef typename StatusLine::iterator StatusLineIter; + + typedef Pmwx_insert_info PmwxInsertInfo; typedef Pmwx_sweep_line_event Event; @@ -66,6 +73,16 @@ public: { } + void set_hint(StatusLineIter hint) + { + m_hint1 = hint; + } + + StatusLineIter get_hint() const + { + return m_hint1; + } + void setInsertInfo(PmwxInsertInfo *insertInfo) { m_insertInfo = insertInfo; } @@ -82,6 +99,7 @@ public: return m_lastEvent; } + private: /* the insert information of this curve */ @@ -90,8 +108,11 @@ private: /*! the last event that was handled on the curve */ Event *m_lastEvent; + /*! */ + StatusLineIter m_hint1; }; + CGAL_END_NAMESPACE #endif // CGAL_PMWX_SWEEP_LINE_CURVE_H