The QLEInteger class provides platform-independent little-endian integers. More...
Header: | #include <QLEInteger> |
qmake: | QT += core |
Since: | Qt 5.10 |
QLEInteger(T value) | |
T | operator T() const |
bool | operator!=(QLEInteger<T> other) const |
QLEInteger<T> & | operator%=(T i) |
QLEInteger<T> & | operator&=(T i) |
QLEInteger<T> & | operator*=(T i) |
QLEInteger<T> & | operator+=(T i) |
QLEInteger<T> & | operator-=(T i) |
QLEInteger<T> & | operator/=(T i) |
QLEInteger<T> & | operator<<=(T i) |
QLEInteger<T> & | operator=(T i) |
bool | operator==(QLEInteger<T> other) const |
QLEInteger<T> & | operator>>=(T i) |
QLEInteger<T> & | operator^=(T i) |
QLEInteger<T> & | operator|=(T i) |
The QLEInteger class provides platform-independent little-endian integers.
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 endian is needed.
Constructs a QLEInteger with the given value.
Returns the value of this QLEInteger as a native integer.
Returns true
if the value of this QLEInteger is not equal to the value of other.
Sets this QLEInteger to the remainder of a division by i and returns a reference to this object.
Performs a bitwise AND with i onto this QLEInteger and returns a reference to this object.
Multiplies i with this QLEInteger and returns a reference to this object.
Adds i to this QLEInteger and returns a reference to this object.
Subtracts i from this QLEInteger and returns a reference to this object.
Divides this QLEInteger with i and returns a reference to this object.
Performs a right-shift by i on this QLEInteger and returns a reference to this object.
Assigns i to this QLEInteger and returns a reference to this QLEInteger.
Returns true
if the value of this QLEInteger is equal to the value of other.
Performs a left-shift by i on this QLEInteger and returns a reference to this object.
Performs a bitwise XOR with i onto this QLEInteger and returns a reference to this object.
Performs a bitwise OR with i onto this QLEInteger and returns a reference to this object.