CGAL::read

#include <CGAL/IO/Arr_iostream.h>

template<class Traits, class Dcel, class Formatter>
std::istream&
read ( Arrangement_2<Traits,Dcel>& arr,
std::istream& is,
Formatter& formatter)
Reads the arrangement arr from the given input stream using a specific input format. formatter, which must be a model of the ArrangementInputFormatter, defines the input format.

template<class Traits, class Dcel>
std::istream& std::ostream& is >> Arrangement_2<Traits,Dcel>& arr
Reads the arrangement arr from the given input stream using the input format defined by the Arr_text_formatter class - that is, only the basic geometric and topological features of the arrangement are read and no auxiliary data is attached to the DCEL features.

#include <CGAL/IO/Arr_with_history_iostream.h>

template<class Traits, class Dcel, class Formatter>
std::istream&
read ( Arrangement_with_history_2<Traits,Dcel>& arr,
std::istream& is,
Formatter& formatter)
Reads the arrangement-with-history instance arr from the given input stream using a specific input format. formatter, which must be a model of the ArrWithHistoryInputFormatter, defines the input format.

template<class Traits, class Dcel>
std::istream& std::ostream& is >> Arrangement_with_history_2<Traits,Dcel>& arr
Reads the arrangement-with-history instance arr from the given input stream using the default input format.

See Also

write