PPL  1.2
checked.cc File Reference
#include "ppl-config.h"
#include "checked_defs.hh"
#include "C_Integer.hh"
Include dependency graph for checked.cc:

Go to the source code of this file.

Classes

struct  Parma_Polyhedra_Library::Checked::number_struct
 

Namespaces

 Parma_Polyhedra_Library
 The entire library is confined to this namespace.
 
 Parma_Polyhedra_Library::Checked
 Types and functions implementing checked numbers.
 

Functions

int Parma_Polyhedra_Library::Checked::get_digit (char c, unsigned int base=10)
 Returns the integer value associated with the ASCII code c, in the base base positional number system, if there is such an association; returns $-1$ otherwise. More...
 
bool Parma_Polyhedra_Library::Checked::sum_sign (bool &a_neg, unsigned long &a_mod, bool b_neg, unsigned long b_mod)
 Adds the number represented (in the modulus-and-sign representation) by b_neg and b_mod to the number represented by a_neg and a_mod, assigning the result to the latter. Returns false is the result cannot be represented; returns true otherwise. More...
 
Result Parma_Polyhedra_Library::Checked::parse_number_part (std::istream &is, number_struct &numer)
 Helper function for parse_number(): reads the numerator or denominator part of a number from is into numer, returning the appropriate Result value. More...
 
Result Parma_Polyhedra_Library::Checked::parse_number (std::istream &is, number_struct &numer, number_struct &denom)
 Reads a number from is writing it into numer, the numerator, and denom, the denominator; the appropriate Result value is returned. More...
 
Result Parma_Polyhedra_Library::Checked::input_mpq (mpq_class &to, std::istream &is)
 
std::string Parma_Polyhedra_Library::Checked::float_mpq_to_string (mpq_class &q)
 

Variables

Minus_Infinity Parma_Polyhedra_Library::MINUS_INFINITY
 
Plus_Infinity Parma_Polyhedra_Library::PLUS_INFINITY
 
Not_A_Number Parma_Polyhedra_Library::NOT_A_NUMBER
 
unsigned Parma_Polyhedra_Library::Checked::irrational_precision
 Holds the precision parameter used for irrational calculations. More...