![]() |
A model of FractionTraits is associated with a type Type.
In case the associated type is a Fraction, a model of FractionTraits provides the relevant functionality for decomposing and re-composing as well as the numerator and denominator type.
#include <CGAL/Fraction_traits.h>
| FractionTraits::Type | |
|
the associated type
| |
| FractionTraits::Is_fraction | |
|
Tag indicating whether the associated type is a fraction and can be
decomposed into a numerator and denominator. This is either CGAL::Tag_true or CGAL::Tag_false.
| |
| FractionTraits::Numerator_type | |
|
The type to represent the numerator.
This is undefined in case the associated type is not a fraction.
| |
| FractionTraits::Denominator_type | |
|
The (simpler) type to represent the denominator.
This is undefined in case the associated type is not a fraction.
| |
In case Type is not a Fraction all functors are Null_functor.
| FractionTraits::Decompose | |
|
A model of FractionTraits::Decompose.
| |
| FractionTraits::Compose | |
|
A model of FractionTraits::Compose.
| |
| FractionTraits::Common_factor | |
|
A model of FractionTraits::CommonFactor.
| |