#include <Numeric.h>
Definition at line 21 of file Numeric.h.
◆ Numeric() [1/8]
smtrat::lra::Numeric::Numeric |
( |
| ) |
|
◆ Numeric() [2/8]
smtrat::lra::Numeric::Numeric |
( |
const Rational & |
_value | ) |
|
Constructing from a Rational.
- Parameters
-
Definition at line 26 of file Numeric.cpp.
◆ Numeric() [3/8]
smtrat::lra::Numeric::Numeric |
( |
int |
_value | ) |
|
Constructing from an integer.
- Parameters
-
Definition at line 34 of file Numeric.cpp.
◆ Numeric() [4/8]
smtrat::lra::Numeric::Numeric |
( |
unsigned int |
_value | ) |
|
Constructing from an unsigned integer.
- Parameters
-
_value | The unsigned integer |
Definition at line 42 of file Numeric.cpp.
◆ Numeric() [5/8]
smtrat::lra::Numeric::Numeric |
( |
long |
_value | ) |
|
Constructing from a long integer.
- Parameters
-
_value | The unsigned long integer. |
Definition at line 50 of file Numeric.cpp.
◆ Numeric() [6/8]
smtrat::lra::Numeric::Numeric |
( |
unsigned long |
_value | ) |
|
Constructing from an unsigned long integer.
- Parameters
-
_value | The unsigned long integer. |
Definition at line 58 of file Numeric.cpp.
◆ Numeric() [7/8]
smtrat::lra::Numeric::Numeric |
( |
const char * |
_value | ) |
|
Constructing from a char array.
- Parameters
-
Definition at line 66 of file Numeric.cpp.
◆ Numeric() [8/8]
smtrat::lra::Numeric::Numeric |
( |
const Numeric & |
_value | ) |
|
Copy constructor.
- Parameters
-
Definition at line 74 of file Numeric.cpp.
◆ ~Numeric()
smtrat::lra::Numeric::~Numeric |
( |
| ) |
|
◆ content()
const Rational& smtrat::lra::Numeric::content |
( |
| ) |
const |
|
inline |
◆ denom()
Numeric smtrat::lra::Numeric::denom |
( |
| ) |
const |
◆ floor()
Numeric smtrat::lra::Numeric::floor |
( |
| ) |
const |
◆ is_integer()
bool smtrat::lra::Numeric::is_integer |
( |
| ) |
const |
◆ is_negative()
bool smtrat::lra::Numeric::is_negative |
( |
| ) |
const |
- Returns
- true, if this Numeric corresponds to a positive rational number; false, otherwise.
Definition at line 248 of file Numeric.cpp.
◆ is_positive()
bool smtrat::lra::Numeric::is_positive |
( |
| ) |
const |
Checks whether this Numeric corresponds to a positive rational number.
- Returns
- True, if this Numeric corresponds to a positive rational number; False, otherwise.
Definition at line 239 of file Numeric.cpp.
◆ is_zero()
bool smtrat::lra::Numeric::is_zero |
( |
| ) |
const |
- Returns
- true, if this Numeric corresponds to zero; false, otherwise.
Definition at line 257 of file Numeric.cpp.
◆ numer()
Numeric smtrat::lra::Numeric::numer |
( |
| ) |
const |
◆ operator!=()
bool smtrat::lra::Numeric::operator!= |
( |
const Numeric & |
_value | ) |
const |
Compares whether this Numeric and the given one are not equal.
- Parameters
-
- Returns
- True, if the two Numerics are not equal; False, otherwise.
Definition at line 161 of file Numeric.cpp.
◆ operator<()
bool smtrat::lra::Numeric::operator< |
( |
const Numeric & |
_value | ) |
const |
Compares whether this Numeric is less than the given one.
- Parameters
-
- Returns
- True, if this Numeric is less than the given one; False, otherwise.
Definition at line 172 of file Numeric.cpp.
◆ operator<=()
bool smtrat::lra::Numeric::operator<= |
( |
const Numeric & |
_value | ) |
const |
Compares whether this Numeric is less or equal than the given one.
- Parameters
-
- Returns
- True, if this Numeric is less or equal than the given one; False, otherwise.
Definition at line 183 of file Numeric.cpp.
◆ operator=() [1/6]
Numeric & smtrat::lra::Numeric::operator= |
( |
const char * |
_value | ) |
|
Cast from a char array.
- Parameters
-
- Returns
- The corresponding Numeric.
Definition at line 128 of file Numeric.cpp.
◆ operator=() [2/6]
Cast from a char array.
- Parameters
-
- Returns
- The corresponding Numeric.
Definition at line 138 of file Numeric.cpp.
◆ operator=() [3/6]
Numeric & smtrat::lra::Numeric::operator= |
( |
int |
_value | ) |
|
Cast from an integer.
- Parameters
-
- Returns
- The corresponding Numeric.
Definition at line 88 of file Numeric.cpp.
◆ operator=() [4/6]
Numeric & smtrat::lra::Numeric::operator= |
( |
long |
_value | ) |
|
Cast from a long integer.
- Parameters
-
- Returns
- The corresponding Numeric.
Definition at line 108 of file Numeric.cpp.
◆ operator=() [5/6]
Numeric & smtrat::lra::Numeric::operator= |
( |
unsigned int |
_value | ) |
|
Cast from an unsigned inteeger.
- Parameters
-
_value | The unsigned integer. |
- Returns
- The corresponding Numeric.
Definition at line 98 of file Numeric.cpp.
◆ operator=() [6/6]
Numeric & smtrat::lra::Numeric::operator= |
( |
unsigned long |
_value | ) |
|
Cast from an unsigned long integer.
- Parameters
-
_value | The unsigned long integer. |
- Returns
- The corresponding Numeric.
Definition at line 118 of file Numeric.cpp.
◆ operator==()
bool smtrat::lra::Numeric::operator== |
( |
const Numeric & |
_value | ) |
const |
Compares whether this Numeric and the given one are equal.
- Parameters
-
- Returns
- True, if the two Numerics are equal; False, otherwise.
Definition at line 150 of file Numeric.cpp.
◆ operator>()
bool smtrat::lra::Numeric::operator> |
( |
const Numeric & |
_value | ) |
const |
Compares whether this Numeric is greater than the given one.
- Parameters
-
- Returns
- True, if this Numeric is greater than the given one; False, otherwise.
Definition at line 194 of file Numeric.cpp.
◆ operator>=()
bool smtrat::lra::Numeric::operator>= |
( |
const Numeric & |
_value | ) |
const |
Compares whether this Numeric is greater or equal than the given one.
- Parameters
-
- Returns
- True, if this Numeric is greater or equal than the given one; False, otherwise.
Definition at line 205 of file Numeric.cpp.
◆ rContent()
Rational& smtrat::lra::Numeric::rContent |
( |
| ) |
|
|
inline |
◆ mContent
Rational* smtrat::lra::Numeric::mContent |
|
private |
The documentation for this class was generated from the following files: