ArrangementInputFormatter

A model for the ArrangementInputFormatter concept supports a set of functions that enable reading an arrangement from an input stream using a specific format.

Types

ArrangementInputFormatter::Arrangement_2
the type of arrangement to input.

typedef typename Arrangement_2::Point_2
Point_2; the point type.
typedef typename Arrangement_2::X_monotone_curve_2
X_monotone_curve_2; the x-monotone curve type.

typedef typename Arrangement_2::Size
Size;
typedef typename Arrangement_2::Vertex_handle
Vertex_handle;
typedef typename Arrangement_2::Halfedge_handle
Halfedge_handle;
typedef typename Arrangement_2::Face_handle
Face_handle;

Creation

ArrangementInputFormatter inf;
default constructor.


ArrangementInputFormatter inf ( std::istream& is);
constructs a formatter that reads from is.

void inf.set_in ( std::istream& is) directs inf to read from is.

Access Functions

std::istream& inf.in () returns the stream that inf reads from.
Precondition: inf is directed to a valid output stream.

Formatted Input Functions

void inf.read_arrangement_begin () reads a message indicating the beginning of the arrangement.
void inf.read_arrangement_end () reads a message indicating the end of the arrangement.

Size inf.read_size ( const char *label = NULL)
reads a size value, which is supposed to be preceeded by the given label.

void inf.read_vertices_begin () reads a message indicating the beginning of the vertex records.
void inf.read_vertices_end () reads a message indicating the end of the vertex records.

void inf.read_edges_begin () reads a message indicating the beginning of the edge records.
void inf.read_edges_end () reads a message indicating the end of the edge records.

void inf.read_faces_begin () reads a message indicating the beginning of the face records.
void inf.read_faces_end () reads a message indicating the end of the face records.

void inf.read_vertex_begin () reads a message indicating the beginning of a single vertex record.
void inf.read_vertex_end () reads a message indicating the end of a single vertex record.

std::size_t inf.read_vertex_index () reads and returns a vertex index.

void inf.read_point ( Point_2& p) reads a point.

void inf.read_vertex_data ( Vertex_handle v)
reads an auxiliary vertex-data object and associates it with the vertex v.

void inf.read_edge_begin () reads a message indicating the beginning of a single edge record.
void inf.read_edge_end () reads a message indicating the end of a single edge record.

std::size_t inf.read_halfedge_index () reads and returns halfedge index.

void inf.read_x_monotone_curve ( X_monotone_curve_2& c)
reads an x-monotone curve.

void inf.read_halfegde_data ( Halfedge_handle he)
reads an auxiliary halfedge-data object and associates it with the halfedge he.

void inf.read_face_begin () reads a message indicating the beginning of a single face record.
void inf.read_face_end () reads a message indicating the end of a single face record.

void inf.read_outer_ccb_begin () reads a message indicating the beginning of the outer CCB of the current face.
void inf.read_outer_ccb_end () reads a message indicating the end of the outer CCB of the current face.

void inf.read_holes_begin () reads a message indicating the beginning of the container of holes inside the current face.
void inf.read_holes_end () reads a message indicating the end of the container of holes inside the current face.

void inf.read_inner_ccb_begin () reads a message indicating the beginning of an inner CCB of the current face.
void inf.read_inner_ccb_end () reads a message indicating the end of an inner CCB of the current face.

void inf.read_ccb_halfedges_begin () reads a message indicating the beginning a connected component boundary.
void inf.read_ccb_halfedges_end () reads a message indicating the end of a connected component boundary.

void inf.read_isolated_vertices_begin ()
reads a message indicating the beginning of the container of isolated vertices inside the current face.
void inf.read_isolated_vertices_end () reads a message indicating the end of the container of isolated vertices inside the current face.

void inf.read_face_data ( Face_handle f)
reads an auxiliary face-data object and associates it with the face f.

Has Models

Arr_text_formatter<Arrangement>
Arr_face_extended_text_formatter<Arrangement>
Arr_extended_dcel_text_formatter<Arrangement>