Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bdldfp::Uint128 Class Reference

#include <bdldfp_uint128.h>

List of all members.

Public Member Functions

 Uint128 ()
 Uint128 (bsls::Types::Uint64 initialValue)
 Uint128 (bsls::Types::Uint64 initialHigh, bsls::Types::Uint64 initialLow)
 ~Uint128 ()
Uint128operator= (const Uint128 &rhs)
Uint128operator|= (const Uint128 &rhs)
Uint128operator&= (const Uint128 &rhs)
Uint128operator^= (const Uint128 &rhs)
Uint128operator>>= (int rhs)
Uint128operator<<= (int rhs)
void setHigh (bsls::Types::Uint64 value)
void setLow (bsls::Types::Uint64 value)
bsls::Types::Uint64 high () const
bsls::Types::Uint64 low () const

Detailed Description

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

See Component bdldfp_uint128


Constructor & Destructor Documentation

bdldfp::Uint128::Uint128 (  ) 

Create an Uint128 object having the value 0

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

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

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

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

bdldfp::Uint128::~Uint128 (  ) 

Destroy this object.


Member Function Documentation

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

Assign to this object the value of the specified rhs object, and return a reference providing modifiable access to this object.

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

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.

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

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.

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

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.

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

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.

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

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.

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

Set the high order bits of this integer to the specified value.

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

Set the low order bits of this integer to the specified value.

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

Return the high order bits of this integer.

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

Return the low order bits of this integer.


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