|
| | iter (ecs_iter_t *it) |
| | Construct iterator from C iterator object.
|
| |
| row_iterator | begin () const |
| | Get an iterator to the beginning of the entity range.
|
| |
| row_iterator | end () const |
| | Get an iterator to the end of the entity range.
|
| |
| flecs::entity | system () const |
| | Get the system entity associated with the iterator.
|
| |
| flecs::entity | event () const |
| | Get the event entity associated with the iterator.
|
| |
| flecs::id | event_id () const |
| | Get the event ID associated with the iterator.
|
| |
| flecs::world | world () const |
| | Get the world associated with the iterator.
|
| |
| const flecs::iter_t * | c_ptr () const |
| | Get a pointer to the underlying C iterator object.
|
| |
| size_t | count () const |
| | Get the number of entities to iterate over.
|
| |
| ecs_ftime_t | delta_time () const |
| | Get the time elapsed since the last frame.
|
| |
| ecs_ftime_t | delta_system_time () const |
| | Get the time elapsed since the last system invocation.
|
| |
| flecs::type | type () const |
| | Get the type of the iterated table.
|
| |
| flecs::table | table () const |
| | Get the table for the current iterator result.
|
| |
| flecs::table | other_table () const |
| | Get the other table for the current iterator result.
|
| |
| flecs::table_range | range () const |
| | Get the table range for the current iterator result.
|
| |
| void * | ctx () |
| | Access ctx.
|
| |
| template<typename T > |
| T * | ctx () |
| | Access ctx.
|
| |
| void * | param () |
| | Access param.
|
| |
| template<typename T > |
| T * | param () |
| | Access param.
|
| |
| flecs::entity | entity (size_t row) const |
| | Obtain a mutable handle to the entity being iterated over.
|
| |
| bool | is_self (int8_t index) const |
| | Return whether the field is matched on self.
|
| |
| bool | is_set (int8_t index) const |
| | Return whether the field is set.
|
| |
| bool | is_readonly (int8_t index) const |
| | Return whether the field is readonly.
|
| |
| int32_t | field_count () const |
| | Number of fields in the iterator.
|
| |
| size_t | size (int8_t index) const |
| | Size of the field data type.
|
| |
| flecs::entity | src (int8_t index) const |
| | Obtain the field source (0 if This).
|
| |
| flecs::id | id (int8_t index) const |
| | Obtain the ID matched for the field.
|
| |
| flecs::id | pair (int8_t index) const |
| | Obtain the pair ID matched for the field.
|
| |
| int32_t | column_index (int8_t index) const |
| | Obtain the column index for the field.
|
| |
| int8_t | term_index () const |
| | Obtain the term that triggered an observer.
|
| |
| flecs::string | str () const |
| | Convert current iterator result to string.
|
| |
| template<typename T , typename A = actual_type_t<T>, if_t< is_const_v< T > > = 0> |
| flecs::field< A > | field (int8_t index) const |
| | Get read-only access to field data.
|
| |
| template<typename T , typename A = actual_type_t<T>, if_not_t< is_const_v< T > > = 0> |
| flecs::field< A > | field (int8_t index) const |
| | Get read/write access to field data.
|
| |
| flecs::untyped_field | field (int8_t index) const |
| | Get unchecked access to field data.
|
| |
| void * | field_at (int8_t index, size_t row) const |
| | Get pointer to field at row.
|
| |
| template<typename T , typename A = actual_type_t<T>, if_t< is_const_v< T > > = 0> |
| const A & | field_at (int8_t index, size_t row) const |
| | Get const reference to field at row.
|
| |
| template<typename T , typename A = actual_type_t<T>, if_not_t< is_const_v< T > > = 0> |
| A & | field_at (int8_t index, size_t row) const |
| | Get mutable reference to field at row.
|
| |
| flecs::field< const flecs::entity_t > | entities () const |
| | Get read-only access to entity IDs.
|
| |
| bool | changed () |
| | Check if the current table has changed since the last iteration.
|
| |
| void | skip () |
| | Skip current table.
|
| |
| uint64_t | group_id () const |
| | Return the group ID for the current table (grouped queries only).
|
| |
| flecs::entity | get_var (int var_id) const |
| | Get value of variable by ID.
|
| |
| flecs::entity | get_var (const char *name) const |
| | Get value of variable by name.
|
| |
| bool | next () |
| | Progress iterator.
|
| |
| void | each () |
| | Forward to each().
|
| |
| template<typename Func > |
| void | targets (int8_t index, const Func &func) |
| | Iterate targets for pair field.
|
| |
| void | fini () |
| | Free iterator resources.
|
| |
| flecs::string | to_json (flecs::iter_to_json_desc_t *desc=nullptr) |
| | Serialize an iterator result to JSON.
|
| |
Class for iterating over query results.
Definition at line 68 of file iter.hpp.