CGAL 4.4 - 2D Arrangements
|
#include <CGAL/Arr_curve_data_traits_2.h>
Base_x_monotone_curve_2.
The X_monotone_curve_2
class nested within the curve-data traits extends the Base_traits_2::X_monotone_curve_2
type with an extra data field.
Creation | |
X_monotone_curve_2 () | |
default constructor. More... | |
X_monotone_curve_2 (const Base_x_monotone_curve_2 &base) | |
constructs an \( x\)-monotone curve from the given base curve with uninitialized data field. More... | |
X_monotone_curve_2 (const Base_x_monotone_curve_2 &base, const X_monotone_curve_data &data) | |
constructs an \( x\)-monotone curve from the given base \( x\)-monotone curve with an attached data field. More... | |
Access Functions | |
const X_monotone_curve_data & | data () const |
returns the field (a non-const version, which returns a reference to the data object, is also available). More... | |
void | set_data (const X_monotone_curve_data &data) |
sets the data field. More... | |
CGAL::Arr_curve_data_traits_2< Tr, XData, Mrg, CData, Cnv >::X_monotone_curve_2::X_monotone_curve_2 | ( | ) |
default constructor.
CGAL::Arr_curve_data_traits_2< Tr, XData, Mrg, CData, Cnv >::X_monotone_curve_2::X_monotone_curve_2 | ( | const Base_x_monotone_curve_2 & | base | ) |
constructs an \( x\)-monotone curve from the given base
curve with uninitialized data field.
CGAL::Arr_curve_data_traits_2< Tr, XData, Mrg, CData, Cnv >::X_monotone_curve_2::X_monotone_curve_2 | ( | const Base_x_monotone_curve_2 & | base, |
const X_monotone_curve_data & | data | ||
) |
constructs an \( x\)-monotone curve from the given base
\( x\)-monotone curve with an attached data
field.
const X_monotone_curve_data& CGAL::Arr_curve_data_traits_2< Tr, XData, Mrg, CData, Cnv >::X_monotone_curve_2::data | ( | ) | const |
returns the field (a non-const version, which returns a reference to the data object, is also available).
void CGAL::Arr_curve_data_traits_2< Tr, XData, Mrg, CData, Cnv >::X_monotone_curve_2::set_data | ( | const X_monotone_curve_data & | data | ) |
sets the data field.