Xpace
Xpace::BigUint< SIZE > Class Template Reference

#include <integer.h>

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

Public Member Functions

 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 &)
 

Protected Member Functions

bool lt (const BigUint &) const
 
bool gt (const BigUint &) const
 

Protected Attributes

uint64 vals [SIZE]
 

Friends

class BigInt< SIZE >
 

Detailed Description

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

Definition at line 34 of file integer.h.

Constructor & Destructor Documentation

template<size_t SIZE>
Xpace::BigUint< SIZE >::BigUint ( uint64  v = 0)
inline

Definition at line 357 of file integer.h.

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

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

Definition at line 368 of file integer.h.

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

Member Function Documentation

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

Definition at line 382 of file integer.h.

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

template<size_t SIZE>
bool Xpace::BigUint< SIZE >::operator== ( uint  rhs) const
inline

Definition at line 391 of file integer.h.

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

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

Definition at line 405 of file integer.h.

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

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

Definition at line 55 of file integer.h.

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

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

Definition at line 438 of file integer.h.

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

template<size_t SIZE>
BigUint< SIZE > Xpace::BigUint< SIZE >::operator+ ( uint64  n) const
inline

Definition at line 451 of file integer.h.

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

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

Definition at line 465 of file integer.h.

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

template<size_t SIZE>
BigUint< SIZE > Xpace::BigUint< SIZE >::operator* ( uint32  n) const
inline

Definition at line 478 of file integer.h.

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

template<size_t SIZE>
BigUint< SIZE > Xpace::BigUint< SIZE >::operator/ ( uint32  n) const
inline

Definition at line 549 of file integer.h.

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

template<size_t SIZE>
uint64 Xpace::BigUint< SIZE >::operator[] ( size_t  i) const
inline

Definition at line 559 of file integer.h.

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

template<size_t SIZE>
uint64 & Xpace::BigUint< SIZE >::operator[] ( size_t  i)
inline

Definition at line 568 of file integer.h.

References Xpace::BigUint< SIZE >::get(), and Xpace::BigUint< SIZE >::vals.

template<size_t SIZE>
const BytesRef Xpace::BigUint< SIZE >::get ( ) const
inline
template<size_t SIZE>
void Xpace::BigUint< SIZE >::set ( const BytesRef ref)
inline
template<size_t SIZE>
bool Xpace::BigUint< SIZE >::lt ( const BigUint< SIZE > &  rhs) const
inlineprotected
template<size_t SIZE>
bool Xpace::BigUint< SIZE >::gt ( const BigUint< SIZE > &  rhs) const
inlineprotected

Friends And Related Function Documentation

template<size_t SIZE>
friend class BigInt< SIZE >
friend

Definition at line 36 of file integer.h.

Member Data Documentation


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

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