\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)

CGAL 4.8 - 2D Arrangements

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
List of all members
CGAL::Arr_curve_data_traits_2< Tr, XData, Mrg, CData, Cnv >::Curve_2 Class Reference

`#include <CGAL/Arr_curve_data_traits_2.h>`

## Inherits from

Base_curve_2.

## Definition

The `Curve_2` class nested within the curve-data traits extends the `Base_traits_2::Curve_2` type with an extra data field of type `Data`.

## Creation
| Curve_2 ()
| default constructor.
| Curve_2 (const Base_curve_2 &base)
| constructs curve from the given `base` curve with uninitialized data field.
| Curve_2 (const Base_curve_2 &base, const Data &data)
| constructs curve from the given `base` curve with an attached `data` field.

## Access Functions
const Curve_data & | data () const
| returns the data field (a non-const version, which returns a reference to the data object, is also available).
void | set_data (const Curve_data &data)
| sets the data field.