Struct ecs_filter_t


#include <include/flecs.h>

struct ecs_filter_t


Filters alllow for ad-hoc quick filtering of entity tables.

A filter allows for uncached, ad hoc iteration over ECS data

Mentioned in


Lines 481-497 in include/flecs.h.

struct ecs_filter_t {
    ecs_header_t hdr;

    ecs_term_t *terms;         /* Array containing terms for filter */
    int32_t term_count;        /* Number of elements in terms array */
    int32_t field_count;       /* Number of fields in iterator for filter */

    bool owned;                /* Is filter object owned by filter */
    bool terms_owned;          /* Is terms array owned by filter */

    ecs_flags32_t flags;       /* Filter flags */

    char *name;                /* Name of filter (optional) */
    char *variable_names[1];   /* Array with variable names */

    ecs_iterable_t iterable;   /* Iterable mixin */