Dune Core Modules (2.4.1)
Dune::bigunsignedint< k > Class Template Reference
Portable very large unsigned integers. More...
#include <dune/common/bigunsignedint.hh>
Public Member Functions | |
bigunsignedint () | |
Construct uninitialized. | |
template<typename Signed > | |
bigunsignedint (Signed x, typename std::enable_if< std::is_integral< Signed >::value &&std::is_signed< Signed >::value >::type *=0) | |
Construct from signed int. | |
bigunsignedint (std::uintmax_t x) | |
Construct from unsigned int. | |
void | print (std::ostream &s) const |
Print number in hex notation. | |
bigunsignedint< k > | operator+ (const bigunsignedint< k > &x) const |
add | |
bigunsignedint< k > | operator- (const bigunsignedint< k > &x) const |
subtract | |
bigunsignedint< k > | operator* (const bigunsignedint< k > &x) const |
multiply | |
bigunsignedint< k > & | operator++ () |
prefix increment | |
bigunsignedint< k > | operator/ (const bigunsignedint< k > &x) const |
bigunsignedint< k > | operator% (const bigunsignedint< k > &x) const |
bigunsignedint< k > | operator& (const bigunsignedint< k > &x) const |
bitwise and | |
bigunsignedint< k > | operator^ (const bigunsignedint< k > &x) const |
bitwise exor | |
bigunsignedint< k > | operator| (const bigunsignedint< k > &x) const |
bitwise or | |
bigunsignedint< k > | operator~ () const |
bitwise komplement | |
bigunsignedint< k > | operator<< (int i) const |
left shift1/ | |
bigunsignedint< k > | operator>> (int i) const |
right shift | |
bool | operator< (const bigunsignedint< k > &x) const |
less than | |
bool | operator<= (const bigunsignedint< k > &x) const |
less than or equal | |
bool | operator> (const bigunsignedint< k > &x) const |
greater than | |
bool | operator>= (const bigunsignedint< k > &x) const |
greater or equal | |
bool | operator== (const bigunsignedint< k > &x) const |
equal | |
bool | operator!= (const bigunsignedint< k > &x) const |
not equal | |
std::uint_least32_t | touint () const |
export to other types | |
double | todouble () const |
Convert to a double. More... | |
Detailed Description
template<int k>
class Dune::bigunsignedint< k >
class Dune::bigunsignedint< k >
Portable very large unsigned integers.
Implements (arbitrarily) large unsigned integers to be used as global ids in some grid managers. Size is a template parameter.
- Template Parameters
-
k Number of bits of the integer type
The documentation for this class was generated from the following file:
- dune/common/bigunsignedint.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 21, 23:30, 2024)