CGAL 5.1 - Algebraic Foundations
FractionTraits Class Reference

#include <Concepts/FractionTraits.h>

Definition

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.

Has Models:
CGAL::Fraction_traits<T>
See also
FractionTraits_::Decompose
FractionTraits_::Compose
FractionTraits_::CommonFactor

Types

typedef unspecified_type Type
 The associated type. More...
 
typedef unspecified_type Is_fraction
 Tag indicating whether the associated type is a fraction and can be decomposed into a numerator and denominator. More...
 
typedef unspecified_type Numerator_type
 The type to represent the numerator. More...
 
typedef unspecified_type Denominator_type
 The (simpler) type to represent the denominator. More...
 

Functors

In case Type is not a Fraction all functors are Null_functor.

typedef unspecified_type Compose
 A model of FractionTraits_::Compose. More...
 
typedef unspecified_type Decompose
 A model of FractionTraits_::Decompose. More...
 
typedef unspecified_type Common_factor
 A model of FractionTraits_::CommonFactor. More...
 

Member Typedef Documentation

◆ Common_factor

typedef unspecified_type FractionTraits::Common_factor

◆ Compose

typedef unspecified_type FractionTraits::Compose

◆ Decompose

typedef unspecified_type FractionTraits::Decompose

◆ Denominator_type

typedef unspecified_type FractionTraits::Denominator_type

The (simpler) type to represent the denominator.

This is undefined in case the associated type is not a fraction.

◆ Is_fraction

typedef unspecified_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.

◆ Numerator_type

typedef unspecified_type FractionTraits::Numerator_type

The type to represent the numerator.

This is undefined in case the associated type is not a fraction.

◆ Type

typedef unspecified_type FractionTraits::Type

The associated type.