QLEInteger Class
template <typename T> class QLEIntegerLa classe QLEInteger fornisce interi in formato little-endian indipendenti dalla piattaforma. Maggiori informazioni...
| Intestazione: | #include <QLEInteger> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
| qmake: | QT += core |
Funzioni pubbliche
| QLEInteger(T value) | |
| 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) |
Membri pubblici statici
Descrizione dettagliata
QLEInteger<T> memorizza un valore intero nell'ordine dei byte little-endian, dove T specifica il tipo intero C++ sottostante. Il parametro del modello T deve essere un tipo intero C++:
- 8 bit: char, signed char, unsigned char, qint8, quint8
- 16 bit: short, unsigned short, qint16, quint16, char16_t
- 32 bit: int, unsigned int, qint32, quint32, char32_t
- 64 bit: long long, unsigned long long, qint64, quint64
- dimensione specifica della piattaforma: long, unsigned long
- dimensioni del puntatore: qintptr, quintptr, qptrdiff
Nota: l'uso di questa classe potrebbe risultare più lento rispetto all'uso di interi nativi, pertanto utilizzarla solo quando è richiesta un'endianità esatta.
Documentazione delle funzioni membro
[explicit constexpr] QLEInteger::QLEInteger(T value)
Crea un oggetto QLEInteger con il valore specificato in ` value`.
[static constexpr] QLEInteger<T> QLEInteger::max()
Restituisce il valore massimo (finito) rappresentabile dal tipo numerico T.
[static constexpr] QLEInteger<T> QLEInteger::min()
Restituisce il valore minimo (finito) rappresentabile dal tipo numerico T.
QLEInteger::operator T() const
Restituisce il valore di questo oggetto ` QLEInteger ` come numero intero nativo.
bool QLEInteger::operator!=(QLEInteger<T> other) const
Restituisce " true " se il valore di questo " QLEInteger " non è uguale al valore di " other".
QLEInteger<T> &QLEInteger::operator%=(T i)
Imposta questo oggetto ` QLEInteger ` sul resto della divisione di ` i ` e restituisce un riferimento a tale oggetto.
QLEInteger<T> &QLEInteger::operator&=(T i)
Esegue un'operazione AND bit a bit con i su questo QLEInteger e restituisce un riferimento a questo oggetto.
QLEInteger<T> &QLEInteger::operator*=(T i)
Moltiplica ` i ` per ` QLEInteger ` e restituisce un riferimento a questo oggetto.
QLEInteger<T> &QLEInteger::operator++()
Esegue un'operazione di " ++ " (incremento) sul prefisso di questo oggetto " QLEInteger " e restituisce un riferimento a tale oggetto.
QLEInteger<T> QLEInteger::operator++(int)
Esegue un'operazione di incremento ( ++ ) postfissa su questo oggetto ` QLEInteger ` e restituisce un riferimento a tale oggetto.
QLEInteger<T> &QLEInteger::operator+=(T i)
Aggiunge un oggetto ` i ` a questo ` QLEInteger ` e restituisce un riferimento a tale oggetto.
QLEInteger<T> &QLEInteger::operator--()
Esegue un'operazione di prefisso " -- " (decremento) su questo oggetto ` QLEInteger ` e restituisce un riferimento a tale oggetto.
QLEInteger<T> QLEInteger::operator--(int)
Esegue un'operazione di decremento ( -- ) postfissa su questo oggetto ` QLEInteger ` e restituisce un riferimento a tale oggetto.
QLEInteger<T> &QLEInteger::operator-=(T i)
Sottrae ` i ` da ` QLEInteger ` e restituisce un riferimento a questo oggetto.
QLEInteger<T> &QLEInteger::operator/=(T i)
Divide questo QLEInteger con i e restituisce un riferimento a questo oggetto.
QLEInteger<T> &QLEInteger::operator<<=(T i)
Esegue uno spostamento a destra di i su questo QLEInteger e restituisce un riferimento a questo oggetto.
QLEInteger<T> &QLEInteger::operator=(T i)
Assegna i a questo QLEInteger e restituisce un riferimento a questo QLEInteger.
bool QLEInteger::operator==(QLEInteger<T> other) const
Restituisce “ true ” se il valore di “ QLEInteger ” è uguale al valore di “ other ”.
QLEInteger<T> &QLEInteger::operator>>=(T i)
Esegue uno spostamento a sinistra di i su questo QLEInteger e restituisce un riferimento a questo oggetto.
QLEInteger<T> &QLEInteger::operator^=(T i)
Esegue un'operazione XOR bit a bit con i su questo QLEInteger e restituisce un riferimento a questo oggetto.
QLEInteger<T> &QLEInteger::operator|=(T i)
Esegue un'operazione OR bit a bit con i su questo QLEInteger e restituisce un riferimento a questo oggetto.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.