|
|
World * | m_world = nullptr |
| |
|
QueryCache * | m_pCache = nullptr |
| | QueryImpl cache (stable pointer to parent world's query cache)
|
| |
|
QueryInfo * | m_pInfo = nullptr |
| | Hot cached query pointer. Validated against m_identity.handle before use.
|
| |
|
QueryInfo * | m_pOwnedInfo = nullptr |
| | Locally-owned query plan used when the query does not use cache-backed storage.
|
| |
|
QueryIdentity | m_identity {} |
| | Query identity.
|
| |
|
bool | m_destroyed = false |
| |
◆ cache_query_info()
| void gaia::ecs::detail::QueryImplStorage::cache_query_info |
( |
QueryInfo & |
queryInfo | ) |
|
|
inline |
Caches the hot QueryInfo pointer locally.
- Parameters
-
◆ has_owned_query_info()
| GAIA_NODISCARD bool gaia::ecs::detail::QueryImplStorage::has_owned_query_info |
( |
| ) |
const |
|
inline |
Returns whether storage owns a local QueryInfo instance.
- Returns
- True if a local QueryInfo exists. False otherwise.
◆ init()
| void gaia::ecs::detail::QueryImplStorage::init |
( |
World * |
world, |
|
|
QueryCache * |
queryCache |
|
) |
| |
|
inline |
Initializes storage against a world and query cache.
- Parameters
-
| world | World owning the query. |
| queryCache | Query cache owned by the world. |
◆ init_owned_query_info()
| void gaia::ecs::detail::QueryImplStorage::init_owned_query_info |
( |
QueryInfo && |
queryInfo | ) |
|
|
inline |
Stores a locally-owned QueryInfo, replacing the old one if present.
- Parameters
-
| queryInfo | Query info to store. |
◆ is_cached()
| GAIA_NODISCARD bool gaia::ecs::detail::QueryImplStorage::is_cached |
( |
| ) |
const |
|
inline |
Returns whether the query is found in the query cache.
- Returns
- True if the query is found in the query cache. False otherwise.
◆ is_initialized()
| GAIA_NODISCARD bool gaia::ecs::detail::QueryImplStorage::is_initialized |
( |
| ) |
const |
|
inline |
Returns whether the query is ready to be used.
- Returns
- True if the query is ready to be used. False otherwise.
◆ owned_query_info()
| GAIA_NODISCARD QueryInfo & gaia::ecs::detail::QueryImplStorage::owned_query_info |
( |
| ) |
|
|
inline |
◆ ser_buffer()
| GAIA_NODISCARD QuerySerBuffer & gaia::ecs::detail::QueryImplStorage::ser_buffer |
( |
| ) |
|
|
inline |
Returns the serialized command buffer for this query.
- Returns
- Serialized command buffer.
◆ try_del_from_cache()
| GAIA_NODISCARD bool gaia::ecs::detail::QueryImplStorage::try_del_from_cache |
( |
| ) |
|
|
inline |
Tries to delete the query from the query cache.
- Returns
- False.
◆ try_query_info_fast()
| GAIA_NODISCARD QueryInfo * gaia::ecs::detail::QueryImplStorage::try_query_info_fast |
( |
| ) |
const |
|
inline |
Returns the cached QueryInfo pointer when the fast-path cache is still valid.
- Returns
- Cached QueryInfo pointer or nullptr.
◆ world()
| GAIA_NODISCARD World * gaia::ecs::detail::QueryImplStorage::world |
( |
| ) |
|
|
inline |
Returns the world associated with this query storage.
- Returns
- World associated with this query storage.
The documentation for this struct was generated from the following file:
- /home/runner/work/gaia-ecs/gaia-ecs/include/gaia/ecs/query.h