CGAL::write

#include <CGAL/IO/Arr_iostream.h>

template<class Traits, class Dcel, class Formatter>
std::ostream&
write ( Arrangement_2<Traits,Dcel> arr,
std::ostream& os,
Formatter& formatter)
Writes the arrangement arr into the given output stream using a specific output format. formatter, which must be a model of the ArrangementOutputFormatter, defines the output format.

template<class Traits, class Dcel>
std::ostream& std::ostream& os << Arrangement_2<Traits,Dcel> arr
Writes the arrangement arr into the given output stream using the output format defined by the Arr_text_formatter class - that is, only the basic geometric and topological features of the arrangement are written, without any auxiliary data that may be attached to the DCEL features.

#include <CGAL/IO/Arr_with_history_iostream.h>

template<class Traits, class Dcel, class Formatter>
std::ostream&
write ( Arrangement_with_history_2<Traits,Dcel> arr,
std::ostream& os,
Formatter& formatter)
Writes the arrangement-with-history instance arr into the given output stream using a specific output format. formatter, which must be a model of the ArrWithHistoryOutputFormatter, defines the output format.

template<class Traits, class Dcel>
std::ostream& std::ostream& os << Arrangement_with_history_2<Traits,Dcel> arr
Writes the arrangement-with-history instance arr into the given output stream using the default output format.

See Also

read