UInteger< N > Class Template Reference

#include <integer.h>

Public Types

using Half = UInteger< N/2 >
 

Public Member Functions

 UInteger ()
 
 UInteger (Half low)
 
 UInteger (Half high, Half low)
 
UInteger< N *2 > operator* (const UInteger &other) const
 
Bool operator< (const UInteger &other) const
 
Bool operator== (const UInteger &other) const
 
 MAXON_OPERATOR_COMPARISON (UInteger)
 
void AddMixed (const Half &half)
 
Bool AddLowToHigh (const UInteger &value)
 
void AddHigh (const UInteger &value)
 
Bool Add (const UInteger &value)
 
Bool Inc ()
 
UIntegeroperator++ ()
 
UIntegeroperator++ (int)
 

Private Attributes

Half _low
 
Half _high
 

Member Typedef Documentation

◆ Half

using Half = UInteger<N / 2>

Constructor & Destructor Documentation

◆ UInteger() [1/3]

UInteger ( )

◆ UInteger() [2/3]

UInteger ( Half  low)
explicit

◆ UInteger() [3/3]

UInteger ( Half  high,
Half  low 
)

Member Function Documentation

◆ operator*()

UInteger<N * 2> operator* ( const UInteger< N > &  other) const

◆ operator<()

Bool operator< ( const UInteger< N > &  other) const

◆ operator==()

Bool operator== ( const UInteger< N > &  other) const

◆ MAXON_OPERATOR_COMPARISON()

MAXON_OPERATOR_COMPARISON ( UInteger< N >  )

◆ AddMixed()

void AddMixed ( const Half half)

◆ AddLowToHigh()

Bool AddLowToHigh ( const UInteger< N > &  value)

◆ AddHigh()

void AddHigh ( const UInteger< N > &  value)

◆ Add()

Bool Add ( const UInteger< N > &  value)

◆ Inc()

Bool Inc ( )

◆ operator++() [1/2]

UInteger& operator++ ( )

◆ operator++() [2/2]

UInteger& operator++ ( int  )

Member Data Documentation

◆ _low

Half _low
private

◆ _high

Half _high
private