The QBEInteger class provides platform-independent big-endian integers. More...
Header: | #include <QBEInteger> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
Since: | Qt 5.10 |
QBEInteger(T value) | |
T | operator T() const |
bool | operator!=(QBEInteger<T> other) const |
QBEInteger<T> & | operator%=(T i) |
QBEInteger<T> & | operator&=(T i) |
QBEInteger<T> & | operator*=(T i) |
QBEInteger<T> & | operator++() |
QBEInteger<T> | operator++(int) |
QBEInteger<T> & | operator+=(T i) |
QBEInteger<T> & | operator--() |
QBEInteger<T> | operator--(int) |
QBEInteger<T> & | operator-=(T i) |
QBEInteger<T> & | operator/=(T i) |
QBEInteger<T> & | operator<<=(T i) |
QBEInteger<T> & | operator=(T i) |
bool | operator==(QBEInteger<T> other) const |
QBEInteger<T> & | operator>>=(T i) |
QBEInteger<T> & | operator^=(T i) |
QBEInteger<T> & | operator|=(T i) |
The template parameter T
must be a C++ integer type:
Note: Using this class may be slower than using native integers, so only use it when an exact endianness is needed.
Constructs a QBEInteger with the given value.
[static]
QBEInteger<T> QBEInteger::max()Returns the maximum (finite) value representable by the numeric type T.
[static]
QBEInteger<T> QBEInteger::min()Returns the minimum (finite) value representable by the numeric type T.
Returns the value of this QBEInteger as a native integer.
Returns true
if the value of this QBEInteger is not equal to the value of other.
Sets this QBEInteger to the remainder of a division by i and returns a reference to this object.
Performs a bitwise AND with i onto this QBEInteger and returns a reference to this object.
Multiplies i with this QBEInteger and returns a reference to this object.
Performs a prefix ++ (increment) on this QBEInteger and returns a reference to this object.
Performs a postfix ++ (increment) on this QBEInteger and returns a reference to this object.
Adds i to this QBEInteger and returns a reference to this object.
Performs a prefix -- (decrement) on this QBEInteger and returns a reference to this object.
Performs a postfix -- (decrement) on this QBEInteger and returns a reference to this object.
Subtracts i from this QBEInteger and returns a reference to this object.
Divides this QBEInteger with i and returns a reference to this object.
Performs a right-shift by i on this QBEInteger and returns a reference to this object.
Assigns i to this QBEInteger and returns a reference to this QBEInteger.
Returns true
if the value of this QBEInteger is equal to the value of other.
Performs a left-shift by i on this QBEInteger and returns a reference to this object.
Performs a bitwise XOR with i onto this QBEInteger and returns a reference to this object.
Performs a bitwise OR with i onto this QBEInteger and returns a reference to this object.