#include <big_numbers.h>
Definition at line 157 of file big_numbers.h.
◆ big_natural_number() [1/3]
mcrl2::utilities::big_natural_number::big_natural_number |
( |
| ) |
|
|
inlineexplicit |
◆ big_natural_number() [2/3]
mcrl2::utilities::big_natural_number::big_natural_number |
( |
const std::size_t |
n | ) |
|
|
inlineexplicit |
◆ big_natural_number() [3/3]
mcrl2::utilities::big_natural_number::big_natural_number |
( |
const std::string & |
s | ) |
|
|
inline |
◆ add()
◆ clear()
void mcrl2::utilities::big_natural_number::clear |
( |
| ) |
|
|
inline |
Sets the number to zero.
This is more efficient than using an assignment x=0.
Definition at line 270 of file big_numbers.h.
◆ div_mod()
◆ divide_by()
std::size_t mcrl2::utilities::big_natural_number::divide_by |
( |
std::size_t |
n | ) |
|
|
inline |
◆ is_number()
bool mcrl2::utilities::big_natural_number::is_number |
( |
std::size_t |
n | ) |
const |
|
inline |
Returns whether this number equals a number of std::size_t.
This is more efficient than checking x==big_natural_number(1).
Definition at line 257 of file big_numbers.h.
◆ is_well_defined()
void mcrl2::utilities::big_natural_number::is_well_defined |
( |
| ) |
const |
|
inlineprotected |
◆ is_zero()
bool mcrl2::utilities::big_natural_number::is_zero |
( |
| ) |
const |
|
inline |
Returns whether this number equals zero.
This is more efficient than checking x==big_natural_number(0).
Definition at line 248 of file big_numbers.h.
◆ multiply()
◆ multiply_by()
void mcrl2::utilities::big_natural_number::multiply_by |
( |
std::size_t |
n, |
|
|
std::size_t |
carry |
|
) |
| |
|
inlineprotected |
◆ operator std::size_t()
mcrl2::utilities::big_natural_number::operator std::size_t |
( |
| ) |
const |
|
inlineexplicit |
◆ operator!=()
bool mcrl2::utilities::big_natural_number::operator!= |
( |
const big_natural_number & |
other | ) |
const |
|
inline |
◆ operator%()
◆ operator*()
◆ operator+()
◆ operator-()
◆ operator/()
◆ operator<()
bool mcrl2::utilities::big_natural_number::operator< |
( |
const big_natural_number & |
other | ) |
const |
|
inline |
◆ operator<=()
bool mcrl2::utilities::big_natural_number::operator<= |
( |
const big_natural_number & |
other | ) |
const |
|
inline |
◆ operator==()
bool mcrl2::utilities::big_natural_number::operator== |
( |
const big_natural_number & |
other | ) |
const |
|
inline |
◆ operator>()
bool mcrl2::utilities::big_natural_number::operator> |
( |
const big_natural_number & |
other | ) |
const |
|
inline |
◆ operator>=()
bool mcrl2::utilities::big_natural_number::operator>= |
( |
const big_natural_number & |
other | ) |
const |
|
inline |
◆ print_number()
void mcrl2::utilities::big_natural_number::print_number |
( |
const std::string & |
s | ) |
const |
|
inlineprotected |
◆ remove_significant_digits_that_are_zero()
void mcrl2::utilities::big_natural_number::remove_significant_digits_that_are_zero |
( |
| ) |
|
|
inlineprotected |
◆ subtract()
◆ swap
◆ m_number
std::vector<std::size_t> mcrl2::utilities::big_natural_number::m_number |
|
protected |
The documentation for this class was generated from the following file: