\( \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.7 - 2D Arrangements
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
ArrangementInputFormatter Concept Reference

Definition

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

Has Models:

CGAL::Arr_text_formatter<Arrangement>

CGAL::Arr_face_extended_text_formatter<Arrangement>

CGAL::Arr_extended_dcel_text_formatter<Arrangement>

Types

typedef unspecified_type Arrangement_2
 the type of arrangement to input. More...
 
typedef Arrangement_2::Point_2 Point_2
 the point type. More...
 
typedef
Arrangement_2::X_monotone_curve_2 
X_monotone_curve_2
 the \( x\)-monotone curve type. More...
 
typedef Arrangement_2::Size Size
 
typedef
Arrangement_2::Vertex_handle 
Vertex_handle
 
typedef
Arrangement_2::Halfedge_handle 
Halfedge_handle
 
typedef Arrangement_2::Face_handle Face_handle
 

Creation

 Arr_in_formatter ()
 default constructor. More...
 
 Arr_in_formatter (std::istream &is)
 constructs a formatter that reads from is. More...
 
void set_in (std::istream &is)
 directs inf to read from is. More...
 

Access Functions

std::istream & in ()
 returns the stream that inf reads from. More...
 

Formatted Input Functions

void read_arrangement_begin ()
 reads a message indicating the beginning of the arrangement. More...
 
void read_arrangement_end ()
 reads a message indicating the end of the arrangement. More...
 
Size read_size (const char *label=NULL)
 reads a size value, which is supposed to be preceded by the given label. More...
 
void read_vertices_begin ()
 reads a message indicating the beginning of the vertex records. More...
 
void read_vertices_end ()
 reads a message indicating the end of the vertex records. More...
 
void read_edges_begin ()
 reads a message indicating the beginning of the edge records. More...
 
void read_edges_end ()
 reads a message indicating the end of the edge records. More...
 
void read_faces_begin ()
 reads a message indicating the beginning of the face records. More...
 
void read_faces_end ()
 reads a message indicating the end of the face records. More...
 
void read_vertex_begin ()
 reads a message indicating the beginning of a single vertex record. More...
 
void read_vertex_end ()
 reads a message indicating the end of a single vertex record. More...
 
std::size_t read_vertex_index ()
 reads and returns a vertex index. More...
 
void read_point (Point_2 &p)
 reads a point. More...
 
void read_vertex_data (Vertex_handle v)
 reads an auxiliary vertex-data object and associates it with the vertex v. More...
 
void read_edge_begin ()
 reads a message indicating the beginning of a single edge record. More...
 
void read_edge_end ()
 reads a message indicating the end of a single edge record. More...
 
std::size_t read_halfedge_index ()
 reads and returns halfedge index. More...
 
void read_x_monotone_curve (X_monotone_curve_2 &c)
 reads an \( x\)-monotone curve. More...
 
void read_halfegde_data (Halfedge_handle he)
 reads an auxiliary halfedge-data object and associates it with the halfedge he. More...
 
void read_face_begin ()
 reads a message indicating the beginning of a single face record. More...
 
void read_face_end ()
 reads a message indicating the end of a single face record. More...
 
void read_outer_ccb_begin ()
 reads a message indicating the beginning of the outer CCB of the current face. More...
 
void read_outer_ccb_end ()
 reads a message indicating the end of the outer CCB of the current face. More...
 
void read_holes_begin ()
 reads a message indicating the beginning of the container of holes inside the current face. More...
 
void read_holes_end ()
 reads a message indicating the end of the container of holes inside the current face. More...
 
void read_inner_ccb_begin ()
 reads a message indicating the beginning of an inner CCB of the current face. More...
 
void read_inner_ccb_end ()
 reads a message indicating the end of an inner CCB of the current face. More...
 
void read_ccb_halfedges_begin ()
 reads a message indicating the beginning a connected component boundary. More...
 
void read_ccb_halfedges_end ()
 reads a message indicating the end of a connected component boundary. More...
 
void read_isolated_vertices_begin ()
 reads a message indicating the beginning of the container of isolated vertices inside the current face. More...
 
void read_isolated_vertices_end ()
 reads a message indicating the end of the container of isolated vertices inside the current face. More...
 
void read_face_data (Face_handle f)
 reads an auxiliary face-data object and associates it with the face f. More...
 

Member Typedef Documentation

the type of arrangement to input.

typedef Arrangement_2::Face_handle ArrangementInputFormatter::Face_handle
typedef Arrangement_2::Halfedge_handle ArrangementInputFormatter::Halfedge_handle
typedef Arrangement_2::Point_2 ArrangementInputFormatter::Point_2

the point type.

typedef Arrangement_2::Size ArrangementInputFormatter::Size
typedef Arrangement_2::Vertex_handle ArrangementInputFormatter::Vertex_handle
typedef Arrangement_2::X_monotone_curve_2 ArrangementInputFormatter::X_monotone_curve_2

the \( x\)-monotone curve type.

Member Function Documentation

ArrangementInputFormatter::Arr_in_formatter ( )

default constructor.

ArrangementInputFormatter::Arr_in_formatter ( std::istream &  is)

constructs a formatter that reads from is.

std::istream& ArrangementInputFormatter::in ( )

returns the stream that inf reads from.

Precondition
inf is directed to a valid output stream.
void ArrangementInputFormatter::read_arrangement_begin ( )

reads a message indicating the beginning of the arrangement.

void ArrangementInputFormatter::read_arrangement_end ( )

reads a message indicating the end of the arrangement.

void ArrangementInputFormatter::read_ccb_halfedges_begin ( )

reads a message indicating the beginning a connected component boundary.

void ArrangementInputFormatter::read_ccb_halfedges_end ( )

reads a message indicating the end of a connected component boundary.

void ArrangementInputFormatter::read_edge_begin ( )

reads a message indicating the beginning of a single edge record.

void ArrangementInputFormatter::read_edge_end ( )

reads a message indicating the end of a single edge record.

void ArrangementInputFormatter::read_edges_begin ( )

reads a message indicating the beginning of the edge records.

void ArrangementInputFormatter::read_edges_end ( )

reads a message indicating the end of the edge records.

void ArrangementInputFormatter::read_face_begin ( )

reads a message indicating the beginning of a single face record.

void ArrangementInputFormatter::read_face_data ( Face_handle  f)

reads an auxiliary face-data object and associates it with the face f.

void ArrangementInputFormatter::read_face_end ( )

reads a message indicating the end of a single face record.

void ArrangementInputFormatter::read_faces_begin ( )

reads a message indicating the beginning of the face records.

void ArrangementInputFormatter::read_faces_end ( )

reads a message indicating the end of the face records.

std::size_t ArrangementInputFormatter::read_halfedge_index ( )

reads and returns halfedge index.

void ArrangementInputFormatter::read_halfegde_data ( Halfedge_handle  he)

reads an auxiliary halfedge-data object and associates it with the halfedge he.

void ArrangementInputFormatter::read_holes_begin ( )

reads a message indicating the beginning of the container of holes inside the current face.

void ArrangementInputFormatter::read_holes_end ( )

reads a message indicating the end of the container of holes inside the current face.

void ArrangementInputFormatter::read_inner_ccb_begin ( )

reads a message indicating the beginning of an inner CCB of the current face.

void ArrangementInputFormatter::read_inner_ccb_end ( )

reads a message indicating the end of an inner CCB of the current face.

void ArrangementInputFormatter::read_isolated_vertices_begin ( )

reads a message indicating the beginning of the container of isolated vertices inside the current face.

void ArrangementInputFormatter::read_isolated_vertices_end ( )

reads a message indicating the end of the container of isolated vertices inside the current face.

void ArrangementInputFormatter::read_outer_ccb_begin ( )

reads a message indicating the beginning of the outer CCB of the current face.

void ArrangementInputFormatter::read_outer_ccb_end ( )

reads a message indicating the end of the outer CCB of the current face.

void ArrangementInputFormatter::read_point ( Point_2 p)

reads a point.

Size ArrangementInputFormatter::read_size ( const char *  label = NULL)

reads a size value, which is supposed to be preceded by the given label.

void ArrangementInputFormatter::read_vertex_begin ( )

reads a message indicating the beginning of a single vertex record.

void ArrangementInputFormatter::read_vertex_data ( Vertex_handle  v)

reads an auxiliary vertex-data object and associates it with the vertex v.

void ArrangementInputFormatter::read_vertex_end ( )

reads a message indicating the end of a single vertex record.

std::size_t ArrangementInputFormatter::read_vertex_index ( )

reads and returns a vertex index.

void ArrangementInputFormatter::read_vertices_begin ( )

reads a message indicating the beginning of the vertex records.

void ArrangementInputFormatter::read_vertices_end ( )

reads a message indicating the end of the vertex records.

void ArrangementInputFormatter::read_x_monotone_curve ( X_monotone_curve_2 c)

reads an \( x\)-monotone curve.

void ArrangementInputFormatter::set_in ( std::istream &  is)

directs inf to read from is.