BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdldfp::Uint128 Class Reference

#include <bdldfp_uint128.h>

Public Member Functions

 Uint128 ()
 Create an Uint128 object having the value 0
 
 Uint128 (bsls::Types::Uint64 initialValue)
 
 Uint128 (bsls::Types::Uint64 initialHigh, bsls::Types::Uint64 initialLow)
 
 ~Uint128 ()=default
 
Uint128operator= (const Uint128 &rhs)=default
 
Uint128operator|= (const Uint128 &rhs)
 
Uint128operator&= (const Uint128 &rhs)
 
Uint128operator^= (const Uint128 &rhs)
 
Uint128operator>>= (int rhs)
 
Uint128operator<<= (int rhs)
 
void setHigh (bsls::Types::Uint64 value)
 Set the high order bits of this integer to the specified value.
 
void setLow (bsls::Types::Uint64 value)
 Set the low order bits of this integer to the specified value.
 
bsls::Types::Uint64 high () const
 Return the high order bits of this integer.
 
bsls::Types::Uint64 low () const
 Return the low order bits of this integer.
 

Detailed Description

This value-semantic type represents a 128-bit integer, with host machine byte order.

See bdldfp_uint128

Constructor & Destructor Documentation

◆ Uint128() [1/3]

bdldfp::Uint128::Uint128 ( )
inline

◆ Uint128() [2/3]

bdldfp::Uint128::Uint128 ( bsls::Types::Uint64  initialValue)
inline

Create an Uint128 object having the 128-bit integer bit pattern of the value of the specified initialValue.

◆ Uint128() [3/3]

bdldfp::Uint128::Uint128 ( bsls::Types::Uint64  initialHigh,
bsls::Types::Uint64  initialLow 
)
inline

Create an Uint128 object having the 128-bit pattern specified by initialHigh..initialLow

◆ ~Uint128()

bdldfp::Uint128::~Uint128 ( )
default

Member Function Documentation

◆ high()

bsls::Types::Uint64 bdldfp::Uint128::high ( ) const
inline

◆ low()

bsls::Types::Uint64 bdldfp::Uint128::low ( ) const
inline

◆ operator&=()

Uint128 & bdldfp::Uint128::operator&= ( const Uint128 rhs)
inline

Set the value of this object to the value of a the bitwise and between this 128 bit integer and the specified rhs value, and return a reference providing mofifiable access to this object.

◆ operator<<=()

Uint128 & bdldfp::Uint128::operator<<= ( int  rhs)
inline

Set the value of this object to the value of a bitwise left shift of this 128 bit integer shifted by the specified rhs value, and return a reference providing mofifiable access to this object. The behavior is undefined unless 0 <= rhs < 128.

◆ operator=()

Uint128 & bdldfp::Uint128::operator= ( const Uint128 rhs)
default

◆ operator>>=()

Uint128 & bdldfp::Uint128::operator>>= ( int  rhs)
inline

Set the value of this object to the value of a bitwise right shift of this 128 bit integer shifted by the specified rhs value, and return a reference providing mofifiable access to this object. The behavior is undefined unless 0 <= rhs < 128.

◆ operator^=()

Uint128 & bdldfp::Uint128::operator^= ( const Uint128 rhs)
inline

Set the value of this object to the value of a the bitwise xor between this 128 bit integer and the specified rhs value, and return a reference providing mofifiable access to this object.

◆ operator|=()

Uint128 & bdldfp::Uint128::operator|= ( const Uint128 rhs)
inline

Set the value of this object to the value of a the bitwise or between this 128 bit integer and the specified rhs value, and return a reference providing mofifiable access to this object.

◆ setHigh()

void bdldfp::Uint128::setHigh ( bsls::Types::Uint64  value)
inline

◆ setLow()

void bdldfp::Uint128::setLow ( bsls::Types::Uint64  value)
inline

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