Stable query-slot identifier combining a slot index and generation.
More...
#include <query_common.h>
|
| | QueryHandle (QueryId id, uint32_t gen) |
| | Constructs a handle from query slot metadata.
|
| |
|
| QueryHandle (QueryHandle &&) noexcept=default |
| |
|
| QueryHandle (const QueryHandle &)=default |
| |
|
QueryHandle & | operator= (QueryHandle &&) noexcept=default |
| |
|
QueryHandle & | operator= (const QueryHandle &)=default |
| |
| GAIA_NODISCARD constexpr bool | operator== (const QueryHandle &other) const noexcept |
| | Compares packed query handles.
|
| |
| GAIA_NODISCARD constexpr bool | operator!= (const QueryHandle &other) const noexcept |
| | Compares packed query handles for inequality.
|
| |
| GAIA_NODISCARD auto | id () const |
| | Returns the query slot identifier.
|
| |
| GAIA_NODISCARD auto | gen () const |
| | Returns the query slot generation.
|
| |
| GAIA_NODISCARD auto | value () const |
| | Returns the packed handle representation.
|
| |
|
|
static constexpr uint32_t | IdMask = QueryIdBad |
| | Bit mask spanning the query-id portion of a packed handle.
|
| |
Stable query-slot identifier combining a slot index and generation.
◆ QueryHandle()
| gaia::ecs::QueryHandle::QueryHandle |
( |
QueryId |
id, |
|
|
uint32_t |
gen |
|
) |
| |
|
inline |
Constructs a handle from query slot metadata.
- Parameters
-
| id | Query slot identifier. |
| gen | Query slot generation. |
◆ gen()
| GAIA_NODISCARD auto gaia::ecs::QueryHandle::gen |
( |
| ) |
const |
|
inline |
Returns the query slot generation.
- Returns
- Generation stored in the handle.
◆ id()
| GAIA_NODISCARD auto gaia::ecs::QueryHandle::id |
( |
| ) |
const |
|
inline |
Returns the query slot identifier.
- Returns
- Query slot identifier stored in the handle.
◆ operator!=()
| GAIA_NODISCARD constexpr bool gaia::ecs::QueryHandle::operator!= |
( |
const QueryHandle & |
other | ) |
const |
|
inlineconstexprnoexcept |
Compares packed query handles for inequality.
- Parameters
-
- Returns
- True when slot identifier or generation differs.
◆ operator==()
| GAIA_NODISCARD constexpr bool gaia::ecs::QueryHandle::operator== |
( |
const QueryHandle & |
other | ) |
const |
|
inlineconstexprnoexcept |
Compares packed query handles.
- Parameters
-
- Returns
- True when slot identifier and generation match.
◆ value()
| GAIA_NODISCARD auto gaia::ecs::QueryHandle::value |
( |
| ) |
const |
|
inline |
Returns the packed handle representation.
- Returns
- Combined query identifier and generation bits.
The documentation for this struct was generated from the following file: