Next: , Previous: Point Data Members, Up: Point Reference


22.2 Typedefs and Utility Structures

— typedef: point_pair first second

Synonymous with pair<Point, Point>.

— struct: bool_point b pt

b is a bool and pt is a Point. bool_point also contains two constructors and an assignment operator, described below.

— Default constructor: void bool_point (void)

Creates a bool_point and sets b to false and pt to INVALID_POINT.

— Default constructor: void bool_point (bool bb, const Point& ppt)

Creates a bool_point and sets b to bb and pt to ppt.

— Assignment operator: void bool_point::operator= (const bool_point& bp)

Sets b to bp.b and pt to bp.pt.

— typedef: bool_point_pair first second

Synonymous with pair <bool_point, bool_point>.

— struct: bool_point_quadruple first second third fourth

This structure contains four bool_points. It also has two constructors and an assignment operator, described below.

— Default constructor: void bool_point_quadruple (void)

Creates a bool_point_quadruple, and sets first, second, third, and fourth all to INVALID_BOOL_POINT.

— Constructor: void bool_point_quadruple (bool_point a, bool_point b, bool_point c, bool_point d)

Creates a bool_point_quadruple and sets first to a, second to b, third to c, and fourth to d.

— Assignment operator: void bool_point_quadruple::operator= (const bool_point_quadruple& arg)

Makes *this a copy of arg.

— struct: bool_real_point b r pt

b is a bool, r is a real, and pt is a Point. bool_real_point also contains three constructors and an assignment operator, described below.

— Default constructor: void bool_real_point (void)

Creates a bool_real_point and sets b to false, r to INVALID_REAL and pt to INVALID_POINT.

— Copy constructor: void bool_real_point (const bool_real_point& brp)

Creates a bool_real_point and sets b to brp.b, r to brp.r, and pt to brp.pt.

— Constructor: void bool_real_point (const bool& bb, const real& rr, const Point& ppt)

Creates a bool_real_point and sets b to bb, r to rr, and pt to ppt.

— Assignment operator: void bool_real_point::operator= (const bool_real_point& brp)

Makes *this a copy of brp.