ECSTASY
All in the name
Loading...
Searching...
No Matches
ecstasy::query::ThreadSafeQuery< Qs > Class Template Reference

More high-level query class, wrapping the QueryImplementation and locking all Lockable queryables. More...

#include <Query.hpp>

Inheritance diagram for ecstasy::query::ThreadSafeQuery< Qs >:
Collaboration diagram for ecstasy::query::ThreadSafeQuery< Qs >:

Public Member Functions

 ThreadSafeQuery (util::BitSet &mask, const std::tuple< Qs &... > &storages)
 Construct a new Thread Safe Query from a bitmask already computed and a storages list.
 
 ThreadSafeQuery (Qs &...others)
 Construct a new Thread Safe Query from a list of storages.
 

Detailed Description

template<Queryable... Qs>
class ecstasy::query::ThreadSafeQuery< Qs >

More high-level query class, wrapping the QueryImplementation and locking all Lockable queryables.

Template Parameters
QsAll 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 646 of file Query.hpp.

Constructor & Destructor Documentation

◆ ThreadSafeQuery() [1/2]

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

Construct a new Thread Safe 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 657 of file Query.hpp.

658 : QueryImplementation<util::meta::Traits<Qs...>, util::meta::Traits<>, true>(mask, storages)
659 {
660 }
Empty parameter pack helper type.
Definition Traits.hpp:28

◆ ThreadSafeQuery() [2/2]

template<Queryable... Qs>
ecstasy::query::ThreadSafeQuery< Qs >::ThreadSafeQuery ( Qs &...  others)
inline

Construct a new Thread Safe Query from a list of storages.

The mask is computed from the storages.

Parameters
[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 670 of file Query.hpp.

671 : QueryImplementation<util::meta::Traits<Qs...>, util::meta::Traits<>, true>(std::forward<Qs &>(others)...)
672 {
673 }

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