ECSTASY
All in the name
Loading...
Searching...
No Matches
ecstasy::query::Query< First, Others > Class Template Reference

More high-level query class, wrapping the QueryImplementation. More...

#include <Query.hpp>

Inheritance diagram for ecstasy::query::Query< First, Others >:
Collaboration diagram for ecstasy::query::Query< First, Others >:

Public Member Functions

 Query (util::BitSet &mask, const std::tuple< First &, Others &... > &storages)
 Construct a new Query from a bitmask already computed and a storages list.
 
 Query (First &first, Others &...others)
 Construct a new Query from a list of storages.
 

Detailed Description

template<Queryable First, Queryable... Others>
class ecstasy::query::Query< First, Others >

More high-level query class, wrapping the QueryImplementation.

Template Parameters
FirstFirst queryable type.
OthersAll other queryable types.
Author
Andréas Leroux (andre.nosp@m.as.l.nosp@m.eroux.nosp@m.@epi.nosp@m.tech..nosp@m.eu)
Since
1.0.0 (2024-10-17)

Definition at line 604 of file Query.hpp.

Constructor & Destructor Documentation

◆ Query() [1/2]

template<Queryable First, Queryable... Others>
ecstasy::query::Query< First, Others >::Query ( util::BitSet mask,
const std::tuple< First &, Others &... > &  storages 
)
inline

Construct a new Query from a bitmask already computed and a storages list.

Parameters
[in]maskmask matching a precomputed query.
[in]storagesstorages containing requested data.
Author
Andréas Leroux (andre.nosp@m.as.l.nosp@m.eroux.nosp@m.@epi.nosp@m.tech..nosp@m.eu)
Since
1.0.0 (2024-10-17)

Definition at line 615 of file Query.hpp.

616 : QueryImplementation<util::meta::Traits<First, Others...>, util::meta::Traits<>>(mask, storages)
617 {
618 }
Empty parameter pack helper type.
Definition Traits.hpp:28

◆ Query() [2/2]

template<Queryable First, Queryable... Others>
ecstasy::query::Query< First, Others >::Query ( First &  first,
Others &...  others 
)
inline

Construct a new Query from a list of storages.

The mask is computed from the storages.

Parameters
[in]firstFirst storage.
[in]othersAll other storages.
Author
Andréas Leroux (andre.nosp@m.as.l.nosp@m.eroux.nosp@m.@epi.nosp@m.tech..nosp@m.eu)
Since
1.0.0 (2024-10-17)

Definition at line 629 of file Query.hpp.

630 : QueryImplementation<util::meta::Traits<First, Others...>, util::meta::Traits<>>(
631 first, std::forward<Others &>(others)...)
632 {
633 }

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