Lunchbox
1.6.0
|
A base type for 128 bit unsigned integer values. More...
#include <uint128_t.h>
Public Member Functions | |
uint128_t (const uint64_t low_=0) | |
Construct a new 128 bit integer with a default value. | |
uint128_t (const uint64_t high_, const uint64_t low_) | |
Construct a new 128 bit integer with default values. | |
uint128_t (const std::string &string) | |
Construct a new 128 bit integer from a string representation. | |
uint128_t & | operator= (const uint128_t &rhs) |
Assign another 128 bit value. | |
uint128_t & | operator= (const uint64_t rhs) |
Assign another 64 bit value. | |
uint128_t & | operator= (const std::string &from) |
Assign an 128 bit value from a std::string. | |
bool | operator== (const uint128_t &rhs) const |
bool | operator!= (const uint128_t &rhs) const |
bool | operator< (const uint128_t &rhs) const |
bool | operator> (const uint128_t &rhs) const |
bool | operator<= (const uint128_t &rhs) const |
bool | operator>= (const uint128_t &rhs) const |
uint128_t & | operator++ () |
Increment the value. | |
uint128_t & | operator-- () |
Decrement the value. | |
uint128_t & | operator+= (const uint128_t &rhs) |
Add value and return the new value. | |
const uint64_t & | low () const |
const uint64_t & | high () const |
uint64_t & | low () |
uint64_t & | high () |
std::string | getShortString () const |
std::string | getString () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Serialize this object to a boost archive. | |
Static Public Attributes | |
static const uint128_t | ZERO |
The NULL value. |
A base type for 128 bit unsigned integer values.
Definition at line 41 of file uint128_t.h.
lunchbox::uint128_t::uint128_t | ( | const uint64_t | low_ = 0 | ) | [inline] |
Construct a new 128 bit integer with a default value.
Definition at line 48 of file uint128_t.h.
lunchbox::uint128_t::uint128_t | ( | const uint64_t | high_, |
const uint64_t | low_ | ||
) | [inline, explicit] |
Construct a new 128 bit integer with default values.
Definition at line 55 of file uint128_t.h.
lunchbox::uint128_t::uint128_t | ( | const std::string & | string | ) | [inline, explicit] |
Construct a new 128 bit integer from a string representation.
Definition at line 62 of file uint128_t.h.
std::string lunchbox::uint128_t::getShortString | ( | ) | const [inline] |
Definition at line 194 of file uint128_t.h.
std::string lunchbox::uint128_t::getString | ( | ) | const [inline] |
Definition at line 204 of file uint128_t.h.
const uint64_t& lunchbox::uint128_t::high | ( | ) | const [inline] |
Definition at line 186 of file uint128_t.h.
Referenced by lunchbox::UUID::isGenerated(), lunchbox::operator&(), lunchbox::operator+(), lunchbox::operator-(), lunchbox::operator|(), and serialize().
uint64_t& lunchbox::uint128_t::high | ( | ) | [inline] |
Definition at line 191 of file uint128_t.h.
const uint64_t& lunchbox::uint128_t::low | ( | ) | const [inline] |
Definition at line 184 of file uint128_t.h.
Referenced by lunchbox::operator&(), lunchbox::operator+(), lunchbox::operator-(), lunchbox::operator|(), and serialize().
uint64_t& lunchbox::uint128_t::low | ( | ) | [inline] |
Definition at line 189 of file uint128_t.h.
bool lunchbox::uint128_t::operator!= | ( | const uint128_t & | rhs | ) | const [inline] |
Definition at line 95 of file uint128_t.h.
uint128_t& lunchbox::uint128_t::operator++ | ( | void | ) | [inline] |
uint128_t& lunchbox::uint128_t::operator-- | ( | void | ) | [inline] |
bool lunchbox::uint128_t::operator< | ( | const uint128_t & | rhs | ) | const [inline] |
Definition at line 102 of file uint128_t.h.
bool lunchbox::uint128_t::operator<= | ( | const uint128_t & | rhs | ) | const [inline] |
Definition at line 129 of file uint128_t.h.
uint128_t& lunchbox::uint128_t::operator= | ( | const uint64_t | rhs | ) | [inline] |
uint128_t& lunchbox::uint128_t::operator= | ( | const std::string & | from | ) |
bool lunchbox::uint128_t::operator== | ( | const uint128_t & | rhs | ) | const [inline] |
Definition at line 88 of file uint128_t.h.
bool lunchbox::uint128_t::operator> | ( | const uint128_t & | rhs | ) | const [inline] |
Definition at line 115 of file uint128_t.h.
bool lunchbox::uint128_t::operator>= | ( | const uint128_t & | rhs | ) | const [inline] |
Definition at line 143 of file uint128_t.h.
void lunchbox::uint128_t::serialize | ( | Archive & | ar, |
const unsigned int | version | ||
) | [inline] |
Serialize this object to a boost archive.
Definition at line 213 of file uint128_t.h.
const uint128_t lunchbox::uint128_t::ZERO [static] |