Xpace
Xpace::BigInt< SIZE > Class Template Reference

#include <integer.h>

Inheritance diagram for Xpace::BigInt< SIZE >:
Xpace::BigUint< SIZE >

Public Member Functions

 BigInt (int64=0)
 
template<size_t RS>
 BigInt (const BigInt< RS > &)
 
 BigInt (const BigUint< SIZE > &rhs)
 
 operator BigUint< SIZE > () const
 
bool operator== (const BigInt &) const
 
bool operator== (int) const
 
bool operator!= (const BigInt &) const
 
bool operator< (const BigInt &) const
 
bool operator> (const BigInt &) const
 
BigInt operator+ (const BigInt &rhs) const
 
BigInt operator+ (int64 n) const
 
BigInt operator- (const BigInt &rhs) const
 
BigInt operator* (uint32) const
 
BigInt operator/ (uint32) const
 
BigInt div (uint32, uint32 *rem) const
 
- Public Member Functions inherited from Xpace::BigUint< SIZE >
 BigUint (uint64=0)
 
template<size_t RS>
 BigUint (const BigUint< RS > &)
 
bool operator== (const BigUint< SIZE > &) const
 
bool operator== (uint) const
 
bool operator!= (const BigUint< SIZE > &) const
 
bool operator< (const BigUint< SIZE > &rhs) const
 
bool operator> (const BigUint< SIZE > &rhs) const
 
BigUint< SIZE > operator+ (const BigUint< SIZE > &) const
 
BigUint< SIZE > operator+ (uint64) const
 
BigUint< SIZE > operator- (const BigUint< SIZE > &) const
 
BigUint< SIZE > operator* (uint32) const
 
BigUint< SIZE > operator/ (uint32) const
 
BigUint< SIZE > div (uint32, uint32 *rem) const
 
uint64 operator[] (size_t) const
 
uint64operator[] (size_t)
 
const BytesRef get () const
 
void set (const BytesRef &)
 

Additional Inherited Members

- Protected Member Functions inherited from Xpace::BigUint< SIZE >
bool lt (const BigUint &) const
 
bool gt (const BigUint &) const
 
- Protected Attributes inherited from Xpace::BigUint< SIZE >
uint64 vals [SIZE]
 

Detailed Description

template<size_t SIZE>
class Xpace::BigInt< SIZE >

Definition at line 31 of file integer.h.

Constructor & Destructor Documentation

template<size_t SIZE>
Xpace::BigInt< SIZE >::BigInt ( int64  n = 0)
inline

Definition at line 636 of file integer.h.

References Xpace::BigUint< SIZE >::vals.

Referenced by Xpace::BigUint< SIZE >::set().

template<size_t SIZE>
template<size_t RS>
Xpace::BigInt< SIZE >::BigInt ( const BigInt< RS > &  rhs)
inline

Definition at line 646 of file integer.h.

References Xpace::BigUint< SIZE >::vals.

template<size_t SIZE>
Xpace::BigInt< SIZE >::BigInt ( const BigUint< SIZE > &  rhs)
inline

Definition at line 139 of file integer.h.

Member Function Documentation

template<size_t SIZE>
Xpace::BigInt< SIZE >::operator BigUint< SIZE > ( ) const
inline

Definition at line 145 of file integer.h.

References Xpace::BigUint< SIZE >::vals.

template<size_t SIZE>
bool Xpace::BigInt< SIZE >::operator== ( const BigInt< SIZE > &  rhs) const
inline

Definition at line 660 of file integer.h.

References Xpace::BigUint< SIZE >::vals.

template<size_t SIZE>
bool Xpace::BigInt< SIZE >::operator== ( int  rhs) const
inline

Definition at line 669 of file integer.h.

References Xpace::BigUint< SIZE >::vals.

template<size_t SIZE>
bool Xpace::BigInt< SIZE >::operator!= ( const BigInt< SIZE > &  rhs) const
inline

Definition at line 683 of file integer.h.

template<size_t SIZE>
bool Xpace::BigInt< SIZE >::operator< ( const BigInt< SIZE > &  rhs) const
inline

Definition at line 692 of file integer.h.

References Xpace::BigUint< SIZE >::lt().

template<size_t SIZE>
bool Xpace::BigInt< SIZE >::operator> ( const BigInt< SIZE > &  rhs) const
inline

Definition at line 701 of file integer.h.

References Xpace::BigUint< SIZE >::gt().

template<size_t SIZE>
BigInt Xpace::BigInt< SIZE >::operator+ ( const BigInt< SIZE > &  rhs) const
inline

Definition at line 169 of file integer.h.

template<size_t SIZE>
BigInt Xpace::BigInt< SIZE >::operator+ ( int64  n) const
inline

Definition at line 175 of file integer.h.

template<size_t SIZE>
BigInt Xpace::BigInt< SIZE >::operator- ( const BigInt< SIZE > &  rhs) const
inline
template<size_t SIZE>
BigInt< SIZE > Xpace::BigInt< SIZE >::operator* ( uint32  rhs) const
inline

Definition at line 710 of file integer.h.

template<size_t SIZE>
BigInt< SIZE > Xpace::BigInt< SIZE >::operator/ ( uint32  rhs) const
inline

Definition at line 722 of file integer.h.

References Xpace::BigUint< SIZE >::div(), and Xpace::BigInt< SIZE >::div().

template<size_t SIZE>
BigInt< SIZE > Xpace::BigInt< SIZE >::div ( uint32  rhs,
uint32 rem 
) const
inline

Definition at line 732 of file integer.h.

References Xpace::BigUint< SIZE >::div().

Referenced by Xpace::BigInt< SIZE >::operator/().


The documentation for this class was generated from the following file:

current as of Wed Jun 10 2026 12:00:06