Lunchbox
1.13.0
Multi-threaded C++ toolbox library for all application developers creating high-performance multi-threaded programs.
|
A base type for 128 bit unsigned integer values. More...
#include <uint128_t.h>
Public Member Functions | |
uint128_t (const unsigned long long low_=0) | |
Construct a new 128 bit integer with a default value. More... | |
uint128_t (const unsigned long low_) | |
Construct a new 128 bit integer with a default value. More... | |
uint128_t (const int low_) | |
Construct a new 128 bit integer with a default value. More... | |
uint128_t (const uint64_t high_, const uint64_t low_) | |
Construct a new 128 bit integer with default values. More... | |
uint128_t (const std::string &string) | |
Construct a new 128 bit integer from a string representation. More... | |
bool | isUUID () const |
uint128_t & | operator= (const lunchbox::uint128_t &rhs) |
Assign another 128 bit value. More... | |
uint128_t & | operator= (const uint64_t rhs) |
Assign another 64 bit value. More... | |
uint128_t & | operator= (const int rhs) |
Assign an integer value. More... | |
uint128_t & | operator= (const std::string &from) |
Assign an 128 bit value from a std::string. More... | |
bool | operator== (const lunchbox::uint128_t &rhs) const |
bool | operator!= (const lunchbox::uint128_t &rhs) const |
bool | operator== (const unsigned long long &low_) const |
bool | operator!= (const unsigned long long &low_) const |
bool | operator< (const lunchbox::uint128_t &rhs) const |
bool | operator> (const lunchbox::uint128_t &rhs) const |
bool | operator<= (const lunchbox::uint128_t &rhs) const |
bool | operator>= (const lunchbox::uint128_t &rhs) const |
uint128_t & | operator++ () |
Increment the value. More... | |
uint128_t & | operator-- () |
Decrement the value. More... | |
uint128_t & | operator+= (const lunchbox::uint128_t &rhs) |
Add value and return the new value. More... | |
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) |
Serialize this object to a boost archive. More... | |
A base type for 128 bit unsigned integer values.
Example:
Definition at line 46 of file uint128_t.h.
|
inlineexplicit |
Construct a new 128 bit integer with a default value.
Definition at line 53 of file uint128_t.h.
Referenced by operator!=(), and operator==().
|
inlineexplicit |
Construct a new 128 bit integer with a default value.
Definition at line 60 of file uint128_t.h.
|
inlineexplicit |
Construct a new 128 bit integer with a default value.
Definition at line 66 of file uint128_t.h.
|
inline |
Construct a new 128 bit integer with default values.
Definition at line 84 of file uint128_t.h.
|
inlineexplicit |
Construct a new 128 bit integer from a string representation.
Definition at line 91 of file uint128_t.h.
|
inline |
Definition at line 252 of file uint128_t.h.
|
inline |
Definition at line 262 of file uint128_t.h.
|
inline |
Definition at line 244 of file uint128_t.h.
Referenced by isUUID(), lunchbox::operator&(), lunchbox::operator+(), lunchbox::operator-(), lunchbox::operator|(), and serialize().
|
inline |
Definition at line 249 of file uint128_t.h.
|
inline |
Definition at line 99 of file uint128_t.h.
References high().
|
inline |
Definition at line 242 of file uint128_t.h.
Referenced by lunchbox::operator&(), lunchbox::operator+(), lunchbox::operator-(), lunchbox::operator|(), and serialize().
|
inline |
Definition at line 247 of file uint128_t.h.
|
inline |
Definition at line 139 of file uint128_t.h.
|
inline |
Definition at line 153 of file uint128_t.h.
References uint128_t().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 160 of file uint128_t.h.
|
inline |
Definition at line 187 of file uint128_t.h.
|
inline |
|
inline |
|
inline |
uint128_t& lunchbox::uint128_t::operator= | ( | const std::string & | from | ) |
Assign an 128 bit value from a std::string.
|
inline |
Definition at line 132 of file uint128_t.h.
|
inline |
Definition at line 146 of file uint128_t.h.
References uint128_t().
|
inline |
Definition at line 173 of file uint128_t.h.
|
inline |
Definition at line 201 of file uint128_t.h.
|
inline |
Serialize this object to a boost archive.
Definition at line 271 of file uint128_t.h.