|
DUDS
|
Distributed Update of Data from Something
|
Wraps an integer to allow the Boost multiprecision library to provide insertion and extraction operators, and to provide Boost serialization support that will produce the same result, while using either a native integer type or a Boost multiprecision type. More...
#include <Int128.hpp>
Public Attributes | |
| I | value |
Private Member Functions | |
| BOOST_SERIALIZATION_SPLIT_MEMBER () | |
| template<class A > | |
| void | load (A &a, const unsigned int) |
| template<class A > | |
| void | save (A &a, const unsigned int) const |
| Serialize the unit data. More... | |
Friends | |
| class | boost::serialization::access |
| Serialization support. More... | |
| std::ostream & | operator<< (std::ostream &os, LargeIntWrapper const &b) |
| std::istream & | operator>> (std::istream &is, LargeIntWrapper &b) |
Wraps an integer to allow the Boost multiprecision library to provide insertion and extraction operators, and to provide Boost serialization support that will produce the same result, while using either a native integer type or a Boost multiprecision type.
This is intended to allow the use of gcc's __int128 type on 64-bit targets and boost::multiprecision::int128_t on 32-bit targets, while allowing the integer in serialized form to be exchanged between the targets. For larger integers, it makes more sense to use something like Boost multiprecision on all targets.
| I | The underlying integer type used for storage. |
| M | The Boost multiprecision type used for stream I/O. This parameter may be the same as I. |
Definition at line 85 of file Int128.hpp.
|
default |
|
default |
|
inline |
Definition at line 97 of file Int128.hpp.
|
private |
Referenced by duds::data::LargeIntWrapper< I, M >::load().
|
inlineprivate |
Definition at line 191 of file Int128.hpp.
|
inline |
Definition at line 122 of file Int128.hpp.
|
inline |
Definition at line 149 of file Int128.hpp.
|
inline |
Definition at line 164 of file Int128.hpp.
|
inline |
Definition at line 143 of file Int128.hpp.
|
inline |
Definition at line 158 of file Int128.hpp.
|
inline |
Definition at line 137 of file Int128.hpp.
|
inline |
Definition at line 152 of file Int128.hpp.
|
inline |
Definition at line 140 of file Int128.hpp.
|
inline |
Definition at line 155 of file Int128.hpp.
|
inline |
Definition at line 146 of file Int128.hpp.
|
inline |
Definition at line 161 of file Int128.hpp.
|
inline |
Definition at line 128 of file Int128.hpp.
|
inline |
Definition at line 134 of file Int128.hpp.
|
inline |
Definition at line 103 of file Int128.hpp.
|
inline |
Definition at line 115 of file Int128.hpp.
|
inline |
Definition at line 119 of file Int128.hpp.
|
inline |
Definition at line 125 of file Int128.hpp.
|
inline |
Definition at line 131 of file Int128.hpp.
|
inlineprivate |
Serialize the unit data.
Definition at line 184 of file Int128.hpp.
|
friend |
Serialization support.
Definition at line 177 of file Int128.hpp.
|
friend |
Definition at line 170 of file Int128.hpp.
|
friend |
Definition at line 167 of file Int128.hpp.
| I duds::data::LargeIntWrapper< I, M >::value |
Definition at line 92 of file Int128.hpp.
Referenced by duds::data::LargeIntWrapper< I, M >::operator!=(), duds::data::LargeIntWrapper< I, M >::operator%(), duds::data::LargeIntWrapper< I, M >::operator%=(), duds::data::GenericValueNumericVisitor< N >::operator()(), duds::data::LargeIntWrapper< I, M >::operator*(), duds::data::LargeIntWrapper< I, M >::operator*=(), duds::data::LargeIntWrapper< I, M >::operator+(), duds::data::LargeIntWrapper< I, M >::operator+=(), duds::data::LargeIntWrapper< I, M >::operator-(), duds::data::LargeIntWrapper< I, M >::operator-=(), duds::data::LargeIntWrapper< I, M >::operator/(), duds::data::LargeIntWrapper< I, M >::operator/=(), duds::data::LargeIntWrapper< I, M >::operator<(), duds::data::LargeIntWrapper< I, M >::operator<=(), duds::data::LargeIntWrapper< I, M >::operator=(), duds::data::LargeIntWrapper< I, M >::operator==(), duds::data::LargeIntWrapper< I, M >::operator>(), and duds::data::LargeIntWrapper< I, M >::operator>=().