![]() |
Flecs v4.1
A fast entity component system (ECS) for C & C++
|
Class that wraps around a flecs::id_t. More...
#include <decl.hpp>
Public Member Functions | |
| id (flecs::id_t value) | |
| id (flecs::world_t *world, flecs::id_t value=0) | |
| id (flecs::world_t *world, flecs::id_t first, flecs::id_t second) | |
| id (flecs::world_t *world, const char *expr) | |
| id (flecs::id_t first, flecs::id_t second) | |
| id (const flecs::id &first, const flecs::id &second) | |
| bool | is_pair () const |
| Test if ID is a pair (has first, second). | |
| bool | is_wildcard () const |
| Test if ID is a wildcard. | |
| bool | is_entity () const |
| Test if ID is an entity. | |
| flecs::entity | entity () const |
| Return ID as entity (only allowed when ID is a valid entity). | |
| flecs::entity | add_flags (flecs::id_t flags) const |
| Return ID with flags added. | |
| flecs::entity | remove_flags (flecs::id_t flags) const |
| Return ID with flags removed. | |
| flecs::entity | remove_flags () const |
| Return ID without flags. | |
| flecs::entity | remove_generation () const |
| Return ID without generation. | |
| flecs::entity | type_id () const |
| Return component type of ID. | |
| bool | has_flags (flecs::id_t flags) const |
| Test if ID has specified flags. | |
| bool | has_flags () const |
| Test if ID has any flags. | |
| flecs::entity | flags () const |
| Return ID flags set on ID. | |
| bool | has_relation (flecs::id_t first) const |
| Test if ID has the specified first element. | |
| flecs::entity | first () const |
| Get first element from a pair. | |
| flecs::entity | second () const |
| Get second element from a pair. | |
| flecs::string | str () const |
| Convert ID to string. | |
| flecs::string | flags_str () const |
| Convert flags of ID to string. | |
| flecs::id_t | raw_id () const |
| Return flecs::id_t value. | |
| operator flecs::id_t () const | |
| flecs::world | world () const |
| Get the world. | |
Protected Attributes | |
| flecs::world_t * | world_ |
| World is optional, but guarantees that entity identifiers extracted from the ID are valid. | |
| flecs::id_t | id_ |
| The raw ID value. | |
Class that wraps around a flecs::id_t.
A flecs ID is an identifier that can be added to entities. IDs can be:
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Return flecs::id_t value.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |