|
| template<typename T> |
| constexpr T | operator| (T lhs, T rhs) |
| | operator | This operator returns the bitwise OR of two enum values of type T.
|
| template<typename T> |
| constexpr T | operator& (T lhs, T rhs) |
| | operator & This operator returns the bitwise AND of two enum values of type T.
|
| template<typename T> |
| constexpr T | operator>> (T lhs, T rhs) |
| | operator >> This operator returns the right shift of an enum value of type T by rhs positions.
|
| template<typename T> |
| constexpr T | operator<< (T lhs, T rhs) |
| | operator << This operator returns the left shift of an enum value of type T by rhs positions.
|
| template<typename T> |
| constexpr T | operator~ (T lhs) |
| | operator ~ This operator returns the bitwise complement of an enum value of type T.
|
| template<typename T> |
| constexpr T | operator^ (T lhs, T rhs) |
| | operator ^ This operator returns the bitwise XOR of two enum values of type T.
|
| template<class T> |
| uint32_t | static_type_hash_32 () noexcept |
| | static_type_hash_32 This function return hash code of the class T. For get more information see the std documentation.
|
| template<class T> |
| uint16_t | static_type_hash_16 () noexcept |
| | static_type_hash_16 This function return hash code of the class T. For get more information see the std documentation.
|
| template<class T> |
| uint8_t | static_type_hash_8 () noexcept |
| | static_type_hash_8 This function return hash code of the class T. For get more information see the std documentation.
|
| template<class T> |
| uint32_t | static_type_hash_32 (T &object) noexcept |
| | static_type_hash_32 This function return hash code of a T type using object.
|
| template<class T> |
| uint16_t | static_type_hash_16 (T &object) noexcept |
| | static_type_hash_16 This function return hash code of a T type using object.
|
| template<class T> |
| uint8_t | static_type_hash_8 (T &object) noexcept |
| | static_type_hash_8 This function return hash code of a T type using object.
|
| void QUASARAPPSHARED_EXPORT | randomArray (int size, QByteArray &result) |
| | randomArray This function return random arrat with size size
|
| template<class QHashType> |
| QHashType & | subtract (QHashType &left, const QHashType &right) |
| | Simplified subtraction operation for QHash.
|
| template<class QHashType> |
| QHashType & | unite (QHashType &left, const QHashType &right) |
| | Simplified union operation for QHash.
|
| template<class QHashType> |
| QHashType & | match (QHashType &left, const QHashType &right) |
| | Simplified match (intersection) operation for QHash.
|
template<class QHashType>
| QHashType & match |
( |
QHashType & | left, |
|
|
const QHashType & | right ) |
Simplified match (intersection) operation for QHash.
This function provides a convenient way to keep only the elements of one QHash whose keys are also present in another QHash. It's designed to simplify common QHash operations.
The function modifies the left QHash by removing all key-value pairs whose keys are NOT present in the right QHash. After the call left contains only the intersection of the keys of left and right.
If left and right share the same internal data (i.e., left.isSharedWith(right) returns true), the left hash is cleared entirely to prevent unpredictable behavior or unintended modifications to the shared data.
- Template Parameters
-
| QHashType | The type of the QHash (e.g., QHash<QString, int>). |
- Parameters
-
| left | A reference to the QHash to be modified. Elements whose keys are not present in right will be removed from this hash. |
| right | A constant reference to the QHash containing the keys to be matched against. |
- Returns
- A reference to the modified left QHash.
Definition at line 291 of file qaglobalutils.h.
template<class QHashType>
| QHashType & subtract |
( |
QHashType & | left, |
|
|
const QHashType & | right ) |
Simplified subtraction operation for QHash.
This function provides a convenient way to remove elements from one QHash based on keys present in another QHash. It's designed to simplify common QHash operations.
The function modifies the left QHash by removing all key-value pairs whose keys are present in the right QHash.
If left and right share the same internal data (i.e., left.isSharedWith(right) returns true), the left hash is cleared entirely to prevent unpredictable behavior or unintended modifications to the shared data. Otherwise, it iterates through right and removes corresponding keys from left.
- Template Parameters
-
| QHashType | The type of the QHash (e.g., QHash<QString, int>). |
- Parameters
-
| left | A reference to the QHash to be modified. Elements present in right will be removed from this hash. |
| right | A constant reference to the QHash containing keys to be removed from left. |
- Returns
- A reference to the modified left QHash.
Definition at line 229 of file qaglobalutils.h.
template<class QHashType>
| QHashType & unite |
( |
QHashType & | left, |
|
|
const QHashType & | right ) |
Simplified union operation for QHash.
This function provides a convenient way to unite the elements of two QHash objects, adding all elements from one to the other. It's designed to simplify common QHash operations.
The function modifies the left QHash by inserting all key-value pairs from the right QHash. If a key from right already exists in left, its corresponding value in left will be updated with the value from right.
This operation is skipped if left and right share the same internal data (i.e., left.isSharedWith(right) returns true) to avoid self-modification or infinite loops in cases of shared data.
- Template Parameters
-
| QHashType | The type of the QHash (e.g., QHash<QString, int>). |
- Parameters
-
| left | A reference to the QHash to be modified. Elements from right will be inserted into this hash. |
| right | A constant reference to the QHash whose elements will be added to left. |
- Returns
- A reference to the modified left QHash.
Definition at line 261 of file qaglobalutils.h.