|
CeresEngine 0.2.0
A game development framework
|
The query executor is responsible for iterating over entities and filtering them based on a given predicate. More...
#include <CeresEngine/Entity/EntityManager.hpp>
Public Types | |
| using | Predicate = P |
| The predicate type. | |
Public Member Functions | |
| QueryExecutor (Predicate &&predicate) | |
| Creates a new query executor instance. | |
| Generator< const Entity > | operator() (const EntityManager &entityManager) const noexcept |
| Executes the query. | |
Private Attributes | |
| Predicate | mPredicate |
| The predicate to filter selected entities. | |
The query executor is responsible for iterating over entities and filtering them based on a given predicate.
Implementations can provide an optimized executor by specializing for predicate types.
| P | the predicate type |
The predicate type.
|
inlineexplicit |
Creates a new query executor instance.
| predicate | The predicate to filter selected entities |
|
noexcept |
Executes the query.
| entityManager | The entity manager to execute the query on |
|
private |
The predicate to filter selected entities.