A base type for 128 bit unsigned integer values.
More...
#include <uint128_t.h>
Detailed Description
A base type for 128 bit unsigned integer values.
Definition at line 41 of file uint128_t.h.
Constructor & Destructor Documentation
lunchbox::uint128_t::uint128_t |
( |
const uint64_t |
low_ = 0 | ) |
|
|
inline |
Construct a new 128 bit integer with a default value.
- Version
- 1.0
Definition at line 48 of file uint128_t.h.
lunchbox::uint128_t::uint128_t |
( |
const uint64_t |
high_, |
|
|
const uint64_t |
low_ |
|
) |
| |
|
inlineexplicit |
Construct a new 128 bit integer with default values.
- Version
- 1.0
Definition at line 55 of file uint128_t.h.
lunchbox::uint128_t::uint128_t |
( |
const std::string & |
string | ) |
|
|
inlineexplicit |
Construct a new 128 bit integer from a string representation.
- Version
- 1.3.2
Definition at line 62 of file uint128_t.h.
Member Function Documentation
std::string lunchbox::uint128_t::getShortString |
( |
| ) |
const |
|
inline |
- Returns
- a short, but not necessarily unique, string of the value.
Definition at line 202 of file uint128_t.h.
std::string lunchbox::uint128_t::getString |
( |
| ) |
const |
|
inline |
- Returns
- the full string representation of the value.
Definition at line 212 of file uint128_t.h.
const uint64_t& lunchbox::uint128_t::high |
( |
| ) |
const |
|
inline |
uint64_t& lunchbox::uint128_t::high |
( |
| ) |
|
|
inline |
- Returns
- the reference to the high 64 bits of this 128 bit value.
Definition at line 199 of file uint128_t.h.
const uint64_t& lunchbox::uint128_t::low |
( |
| ) |
const |
|
inline |
uint64_t& lunchbox::uint128_t::low |
( |
| ) |
|
|
inline |
- Returns
- the reference to the lower 64 bits of this 128 bit value.
Definition at line 197 of file uint128_t.h.
bool lunchbox::uint128_t::operator!= |
( |
const uint128_t & |
rhs | ) |
const |
|
inline |
- Returns
- true if the values are different, false otherwise.
- Version
- 1.0
Definition at line 103 of file uint128_t.h.
uint128_t& lunchbox::uint128_t::operator++ |
( |
void |
| ) |
|
|
inline |
Increment the value.
- Version
- 1.0
Definition at line 161 of file uint128_t.h.
Add value and return the new value.
- Version
- 1.5.1
Definition at line 180 of file uint128_t.h.
uint128_t& lunchbox::uint128_t::operator-- |
( |
void |
| ) |
|
|
inline |
Decrement the value.
- Version
- 1.0
Definition at line 171 of file uint128_t.h.
bool lunchbox::uint128_t::operator< |
( |
const uint128_t & |
rhs | ) |
const |
|
inline |
- Returns
- true if this value is smaller than the RHS value.
- Version
- 1.0
Definition at line 110 of file uint128_t.h.
bool lunchbox::uint128_t::operator<= |
( |
const uint128_t & |
rhs | ) |
const |
|
inline |
- Returns
- true if this value is smaller or equal than the RHS value.
- Version
- 1.0
Definition at line 137 of file uint128_t.h.
Assign another 128 bit value.
- Version
- 1.0
Definition at line 66 of file uint128_t.h.
uint128_t& lunchbox::uint128_t::operator= |
( |
const uint64_t |
rhs | ) |
|
|
inline |
Assign another 64 bit value.
- Version
- 1.1.1
Definition at line 74 of file uint128_t.h.
uint128_t& lunchbox::uint128_t::operator= |
( |
const int |
rhs | ) |
|
|
inline |
uint128_t& lunchbox::uint128_t::operator= |
( |
const std::string & |
from | ) |
|
Assign an 128 bit value from a std::string.
- Version
- 1.0
Reimplemented in lunchbox::UUID.
bool lunchbox::uint128_t::operator== |
( |
const uint128_t & |
rhs | ) |
const |
|
inline |
- Returns
- true if the values are equal, false if not.
- Version
- 1.0
Definition at line 96 of file uint128_t.h.
bool lunchbox::uint128_t::operator> |
( |
const uint128_t & |
rhs | ) |
const |
|
inline |
- Returns
- true if this value is bigger than the rhs value.
- Version
- 1.0
Definition at line 123 of file uint128_t.h.
bool lunchbox::uint128_t::operator>= |
( |
const uint128_t & |
rhs | ) |
const |
|
inline |
- Returns
- true if this value is smaller or equal than the RHS value.
- Version
- 1.0
Definition at line 151 of file uint128_t.h.
template<class Archive >
void lunchbox::uint128_t::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
inline |
Serialize this object to a boost archive.
- Version
- 1.3.1
Definition at line 221 of file uint128_t.h.
References high(), and low().
The documentation for this class was generated from the following file: