C(++)ECCO
C++ Error Control COding: a header-only library for ECC simulations and experiments, modeling complete coding systems across arbitrary finite fields and complex inter-field relationships - Christian Senger <senger@inue.uni-stuttgart.de>
Loading...
Searching...
No Matches
InfInt.hpp File Reference
#include <climits>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <vector>
#include <exception>
Include dependency graph for InfInt.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  InfIntException
class  InfInt
struct  InfIntHasher

Namespaces

namespace  std

Macros

#define LONG_LONG_MIN   LLONG_MIN
#define LONG_LONG_MAX   LLONG_MAX
#define ULONG_LONG_MAX   ULLONG_MAX
#define INFINT_USE_EXCEPTIONS

Typedefs

typedef int ELEM_TYPE
typedef long long PRODUCT_TYPE

Functions

static div_t my_div (int num, int denom)
static ldiv_t my_ldiv (long num, long denom)
static lldiv_t my_lldiv (long long num, long long denom)
std::istream & operator>> (std::istream &s, InfInt &n)
std::ostream & operator<< (std::ostream &s, const InfInt &n)
std::string std::to_string (const InfInt &val)

Variables

static const ELEM_TYPE BASE = 1000000000
static const ELEM_TYPE UPPER_BOUND = 999999999
static const ELEM_TYPE DIGIT_COUNT = 9
static const int powersOfTen [] = {1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000}

Macro Definition Documentation

◆ INFINT_USE_EXCEPTIONS

#define INFINT_USE_EXCEPTIONS

Definition at line 60 of file InfInt.hpp.

◆ LONG_LONG_MAX

#define LONG_LONG_MAX   LLONG_MAX

Definition at line 53 of file InfInt.hpp.

◆ LONG_LONG_MIN

#define LONG_LONG_MIN   LLONG_MIN

Definition at line 49 of file InfInt.hpp.

◆ ULONG_LONG_MAX

#define ULONG_LONG_MAX   ULLONG_MAX

Definition at line 57 of file InfInt.hpp.

Typedef Documentation

◆ ELEM_TYPE

typedef int ELEM_TYPE

Definition at line 66 of file InfInt.hpp.

◆ PRODUCT_TYPE

typedef long long PRODUCT_TYPE

Definition at line 67 of file InfInt.hpp.

Function Documentation

◆ my_div()

div_t my_div ( int num,
int denom )
inlinestatic

Definition at line 92 of file InfInt.hpp.

Here is the caller graph for this function:

◆ my_ldiv()

ldiv_t my_ldiv ( long num,
long denom )
inlinestatic

Definition at line 99 of file InfInt.hpp.

Here is the caller graph for this function:

◆ my_lldiv()

lldiv_t my_lldiv ( long long num,
long long denom )
inlinestatic

Definition at line 106 of file InfInt.hpp.

Here is the caller graph for this function:

◆ operator<<()

std::ostream & operator<< ( std::ostream & s,
const InfInt & n )
inline

Definition at line 1177 of file InfInt.hpp.

◆ operator>>()

std::istream & operator>> ( std::istream & s,
InfInt & n )
inline

Definition at line 1169 of file InfInt.hpp.

Variable Documentation

◆ BASE

const ELEM_TYPE BASE = 1000000000
static

Definition at line 68 of file InfInt.hpp.

◆ DIGIT_COUNT

const ELEM_TYPE DIGIT_COUNT = 9
static

Definition at line 70 of file InfInt.hpp.

◆ powersOfTen

const int powersOfTen[] = {1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000}
static

Definition at line 71 of file InfInt.hpp.

◆ UPPER_BOUND

const ELEM_TYPE UPPER_BOUND = 999999999
static

Definition at line 69 of file InfInt.hpp.