This is the documentation for Enlighten.
class Geo PackedKeyValuePair
template<typename KeyType, typename ValueType, Geo::u32>
class Geo::PackedKeyValuePair
Represents a key and value that are convertible to unsigned integer.
The key and value are packed into a single 32-bit register. The value is packed into N low bits and the key is packed into the remaining high bits.
Parameters
Variables
Name | Description |
|---|---|
Geo::u32 m_Packed | Two unsigned integer values. Value is packed into N low bits. Key is packed into the remaining high bits. |
Functions
Name | Description |
|---|---|
Returns the key. | |
Returns the packed key and value. | |
Returns the value. | |
Construct from packed key and value. | |
Construct from key and value, each using only the appropriate number of bits. | |
Set the key. | |
Set the value. |
Friends
Name | Description |
|---|---|
friend bool operator!=(PackedKeyValuePair left, PackedKeyValuePair right) | Returns true if operands are not equal. |
friend bool operator<(PackedKeyValuePair left, PackedKeyValuePair right) | Returns true if the left operand is ordered before the right operand. |
friend bool operator==(PackedKeyValuePair left, PackedKeyValuePair right) | Returns true if operands are equal. |
KeyType Geo::PackedKeyValuePair< KeyType, ValueType, N >::GetKey
public: KeyType GetKey() const
Returns the key.
Geo::u32 Geo::PackedKeyValuePair< KeyType, ValueType, N >::GetPacked
public: Geo::u32 GetPacked() const
Returns the packed key and value.