EnTT 3.13.0
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
entt::basic_collector<> Struct Reference

Collector. More...

#include <observer.hpp>

Static Public Member Functions

template<typename... AllOf, typename... NoneOf>
static constexpr auto group (exclude_t< NoneOf... >=exclude_t{}) noexcept
 Adds a grouping matcher to the collector.
 
template<typename AnyOf >
static constexpr auto update () noexcept
 Adds an observing matcher to the collector.
 

Detailed Description

Collector.

A collector contains a set of rules (literally, matchers) to use to track entities.
Its main purpose is to generate a descriptor that allows an observer to know how to connect to a registry.

Definition at line 38 of file observer.hpp.

Member Function Documentation

◆ group()

template<typename... AllOf, typename... NoneOf>
static constexpr auto entt::basic_collector<>::group ( exclude_t< NoneOf... >  = exclude_t{})
inlinestaticconstexprnoexcept

Adds a grouping matcher to the collector.

Template Parameters
AllOfTypes of components tracked by the matcher.
NoneOfTypes of components used to filter out entities.
Returns
The updated collector.

Definition at line 46 of file observer.hpp.

◆ update()

template<typename AnyOf >
static constexpr auto entt::basic_collector<>::update ( )
inlinestaticconstexprnoexcept

Adds an observing matcher to the collector.

Template Parameters
AnyOfType of component for which changes should be detected.
Returns
The updated collector.

Definition at line 56 of file observer.hpp.


The documentation for this struct was generated from the following file: