58 return (
id_ & ECS_ID_FLAGS_MASK) == flecs::PAIR;
68 return !(
id_ & ECS_ID_FLAGS_MASK);
96 return (
id_ & ECS_ID_FLAGS_MASK) != 0;
107 return ECS_PAIR_FIRST(
id_) ==
first;
ecs_world_t world_t
World type.
char * ecs_id_str(const ecs_world_t *world, ecs_id_t component)
Convert a component ID to a string.
const char * ecs_id_flag_str(uint64_t component_flags)
Convert a component flag to a string.
ecs_id_t ecs_id_from_str(const ecs_world_t *world, const char *expr)
Convert a string to a component.
bool ecs_id_is_wildcard(ecs_id_t component)
Utility to check if a component is a wildcard.
Class that wraps around a flecs::id_t.
flecs::string str() const
Convert ID to string.
bool is_pair() const
Test if ID is a pair (has first, second).
flecs::entity entity() const
Return ID as entity (only allowed when ID is a valid entity).
flecs::world world() const
Get the world.
flecs::entity flags() const
Return ID flags set on ID.
flecs::entity remove_flags() const
Return ID without flags.
flecs::entity type_id() const
Return component type of ID.
flecs::entity add_flags(flecs::id_t flags) const
Return ID with flags added.
flecs::id_t id_
The raw ID value.
bool has_relation(flecs::id_t first) const
Test if ID has the specified first element.
bool has_flags(flecs::id_t flags) const
Test if ID has specified flags.
flecs::id_t raw_id() const
Return flecs::id_t value.
bool is_entity() const
Test if ID is an entity.
flecs::entity second() const
Get second element from a pair.
flecs::world_t * world_
World is optional, but guarantees that entity identifiers extracted from the ID are valid.
flecs::entity first() const
Get first element from a pair.
bool has_flags() const
Test if ID has any flags.
flecs::string flags_str() const
Convert flags of ID to string.
flecs::entity remove_generation() const
Return ID without generation.
bool is_wildcard() const
Test if ID is a wildcard.