24 #ifndef PPL_Coefficient_inlines_hh
25 #define PPL_Coefficient_inlines_hh 1
29 #ifdef PPL_CHECKED_INTEGERS
31 Bounded_Integer_Coefficient_Policy::handle_result(
Result r) {
37 #endif // PPL_CHECKED_INTEGERS
40 #if defined(PPL_CHECKED_INTEGERS) || defined(PPL_NATIVE_INTEGERS)
41 inline Coefficient_traits::const_reference
48 inline Coefficient_traits::const_reference
54 #endif // defined(PPL_CHECKED_INTEGERS) || defined(PPL_NATIVE_INTEGERS)
56 #ifdef PPL_GMP_INTEGERS
57 inline Coefficient_traits::const_reference
60 return *Coefficient_zero_p;
63 inline Coefficient_traits::const_reference
66 PPL_ASSERT(*Coefficient_one_p != 0);
67 return *Coefficient_one_p;
69 #endif // PPL_GMP_INTEGERS
73 #endif // !defined(PPL_Coefficient_inlines_hh)
int result_overflow(Result r)
void throw_result_exception(Result r)
Result
Possible outcomes of a checked arithmetic computation.
Not a number result class.
Result_Class result_class(Result r)
PPL_COEFFICIENT_TYPE Coefficient
An alias for easily naming the type of PPL coefficients.
Coefficient_traits::const_reference Coefficient_zero()
Returns a const reference to a Coefficient with value 0.
The entire library is confined to this namespace.
Coefficient_traits::const_reference Coefficient_one()
Returns a const reference to a Coefficient with value 1.