![]() |
This is a debugging tool which is useful when dealing with number types.
NT1 and NT2 must be models of some number type concept. Comparator has to be a model of a binary predicate taking NT1 as first argument, and NT2 as second. The Comparator parameter has a default value which is a functor calling operator== between the two arguments.
#include <CGAL/Number_type_checker.h>
| |
introduces an uninitialized variable c.
| |
| |
introduces the integral value i.
| |
| |
introduces the floating point value d.
| |
| |
introduces a variable storing the pair n1, n2.
|
Some operations have a particular behavior documented here.
|
| returns a const reference to the object of type NT1. |
|
| returns a const reference to the object of type NT2. |
|
| returns a reference to the object of type NT1. |
|
| returns a reference to the object of type NT2. |
|
| calls the Comparator binary predicate on the two stored objects and returns its result. |
|
| |
returns to_double(c.n1()). No particular check is made here. | ||
| ||
| ||
returns to_interval(c.n1()). No particular check is made here. | ||
|
| |
writes c.n1() to the ostream out. | ||
|
| |
reads an NT1 from in, then converts it to an NT2, so a conversion from NT1 to NT2 is required here. |