QLEInteger 类提供独立于平台的小端整数。 更多...
头: | #include <QLEInteger> |
qmake: | QT += core |
Since: | Qt 5.10 |
该类在 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++ () |
QLEInteger<T> | operator++ ( int ) |
QLEInteger<T> & | operator+= (T i ) |
QLEInteger<T> & | operator-- () |
QLEInteger<T> | operator-- ( int ) |
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 ) |
QLEInteger<T> | max () |
QLEInteger<T> | min () |
模板参数
T
必须是 C++ 整数类型:
注意: Using this class may be slower than using native integers, so only use it when an exact endianness is needed.
构造 QLEInteger 采用给定 value .
[static]
QLEInteger
<
T
> QLEInteger::
max
()
Returns the maximum (finite) value representable by the numeric type T.
[static]
QLEInteger
<
T
> QLEInteger::
min
()
Returns the minimum (finite) value representable by the numeric type T.
Returns the value of this QLEInteger 作为本机整数。
返回
true
if the value of this
QLEInteger
is not equal to the value of
other
.
设置此 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.
Performs a prefix ++ (increment) on this QLEInteger and returns a reference to this object.
Performs a postfix ++ (increment) on this QLEInteger and returns a reference to this object.
添加 i 到此 QLEInteger and returns a reference to this object.
Performs a prefix -- (decrement) on this QLEInteger and returns a reference to this object.
Performs a postfix -- (decrement) on this QLEInteger and returns a reference to this object.
减去 i 从此 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.
赋值 i 到此 QLEInteger and returns a reference to this QLEInteger .
返回
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.