Arcane  v3.16.8.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
Référence de la classe internal::BigInteger
+ Graphe de collaboration de internal::BigInteger:

Types publics

typedef uint64_t Type
 

Fonctions membres publiques

 BigInteger (const BigInteger &rhs)
 
 BigInteger (uint64_t u)
 
template<typename Ch>
 BigInteger (const Ch *decimals, size_t length)
 
BigIntegeroperator= (const BigInteger &rhs)
 
BigIntegeroperator= (uint64_t u)
 
BigIntegeroperator+= (uint64_t u)
 
BigIntegeroperator*= (uint64_t u)
 
BigIntegeroperator*= (uint32_t u)
 
BigIntegeroperator<<= (size_t shift)
 
bool operator== (const BigInteger &rhs) const
 
bool operator== (const Type rhs) const
 
BigIntegerMultiplyPow5 (unsigned exp)
 
bool Difference (const BigInteger &rhs, BigInteger *out) const
 
int Compare (const BigInteger &rhs) const
 
size_t GetCount () const
 
Type GetDigit (size_t index) const
 
bool IsZero () const
 

Fonctions membres privées

template<typename Ch>
void AppendDecimal64 (const Ch *begin, const Ch *end)
 
void PushBack (Type digit)
 

Fonctions membres privées statiques

template<typename Ch>
static uint64_t ParseUint64 (const Ch *begin, const Ch *end)
 
static uint64_t MulAdd64 (uint64_t a, uint64_t b, uint64_t k, uint64_t *outHigh)
 

Attributs privés

Type digits_ [kCapacity]
 
size_t count_
 

Attributs privés statiques

static const size_t kBitCount = 3328
 
static const size_t kCapacity = kBitCount / sizeof(Type)
 
static const size_t kTypeBit = sizeof(Type) * 8
 

Description détaillée

Définition à la ligne 33 du fichier biginteger.h.

Documentation des définitions de type membres

◆ Type

typedef uint64_t internal::BigInteger::Type

Définition à la ligne 35 du fichier biginteger.h.

Documentation des constructeurs et destructeur

◆ BigInteger() [1/3]

internal::BigInteger::BigInteger ( const BigInteger & rhs)
inline

Définition à la ligne 37 du fichier biginteger.h.

◆ BigInteger() [2/3]

internal::BigInteger::BigInteger ( uint64_t u)
inlineexplicit

Définition à la ligne 41 du fichier biginteger.h.

◆ BigInteger() [3/3]

template<typename Ch>
internal::BigInteger::BigInteger ( const Ch * decimals,
size_t length )
inline

Définition à la ligne 46 du fichier biginteger.h.

Documentation des fonctions membres

◆ AppendDecimal64()

template<typename Ch>
void internal::BigInteger::AppendDecimal64 ( const Ch * begin,
const Ch * end )
inlineprivate

Définition à la ligne 231 du fichier biginteger.h.

◆ Compare()

int internal::BigInteger::Compare ( const BigInteger & rhs) const
inline

Définition à la ligne 214 du fichier biginteger.h.

◆ Difference()

bool internal::BigInteger::Difference ( const BigInteger & rhs,
BigInteger * out ) const
inline

Définition à la ligne 192 du fichier biginteger.h.

◆ GetCount()

size_t internal::BigInteger::GetCount ( ) const
inline

Définition à la ligne 225 du fichier biginteger.h.

◆ GetDigit()

Type internal::BigInteger::GetDigit ( size_t index) const
inline

Définition à la ligne 226 du fichier biginteger.h.

◆ IsZero()

bool internal::BigInteger::IsZero ( ) const
inline

Définition à la ligne 227 du fichier biginteger.h.

◆ MulAdd64()

static uint64_t internal::BigInteger::MulAdd64 ( uint64_t a,
uint64_t b,
uint64_t k,
uint64_t * outHigh )
inlinestaticprivate

Définition à la ligne 257 du fichier biginteger.h.

◆ MultiplyPow5()

BigInteger & internal::BigInteger::MultiplyPow5 ( unsigned exp)
inline

Définition à la ligne 168 du fichier biginteger.h.

◆ operator*=() [1/2]

BigInteger & internal::BigInteger::operator*= ( uint32_t u)
inline

Définition à la ligne 111 du fichier biginteger.h.

◆ operator*=() [2/2]

BigInteger & internal::BigInteger::operator*= ( uint64_t u)
inline

Définition à la ligne 93 du fichier biginteger.h.

◆ operator+=()

BigInteger & internal::BigInteger::operator+= ( uint64_t u)
inline

Définition à la ligne 76 du fichier biginteger.h.

◆ operator<<=()

BigInteger & internal::BigInteger::operator<<= ( size_t shift)
inline

Définition à la ligne 134 du fichier biginteger.h.

◆ operator=() [1/2]

BigInteger & internal::BigInteger::operator= ( const BigInteger & rhs)
inline

Définition à la ligne 61 du fichier biginteger.h.

◆ operator=() [2/2]

BigInteger & internal::BigInteger::operator= ( uint64_t u)
inline

Définition à la ligne 70 du fichier biginteger.h.

◆ operator==() [1/2]

bool internal::BigInteger::operator== ( const BigInteger & rhs) const
inline

Définition à la ligne 160 du fichier biginteger.h.

◆ operator==() [2/2]

bool internal::BigInteger::operator== ( const Type rhs) const
inline

Définition à la ligne 164 du fichier biginteger.h.

◆ ParseUint64()

template<typename Ch>
static uint64_t internal::BigInteger::ParseUint64 ( const Ch * begin,
const Ch * end )
inlinestaticprivate

Définition à la ligne 247 du fichier biginteger.h.

◆ PushBack()

void internal::BigInteger::PushBack ( Type digit)
inlineprivate

Définition à la ligne 241 du fichier biginteger.h.

Documentation des données membres

◆ count_

size_t internal::BigInteger::count_
private

Définition à la ligne 292 du fichier biginteger.h.

◆ digits_

Type internal::BigInteger::digits_[kCapacity]
private

Définition à la ligne 291 du fichier biginteger.h.

◆ kBitCount

const size_t internal::BigInteger::kBitCount = 3328
staticprivate

Définition à la ligne 287 du fichier biginteger.h.

◆ kCapacity

const size_t internal::BigInteger::kCapacity = kBitCount / sizeof(Type)
staticprivate

Définition à la ligne 288 du fichier biginteger.h.

◆ kTypeBit

const size_t internal::BigInteger::kTypeBit = sizeof(Type) * 8
staticprivate

Définition à la ligne 289 du fichier biginteger.h.


La documentation de cette classe a été générée à partir du fichier suivant :