ECSTASY
All in the name
Loading...
Searching...
No Matches
ecstasy::query::queryable_qualifiers< Q, AutoLock > Struct Template Reference

Get the queryable type with the correct qualifiers. More...

#include <Queryable.hpp>

Public Types

using type = Q &
 

Detailed Description

template<Queryable Q, bool AutoLock = false>
struct ecstasy::query::queryable_qualifiers< Q, AutoLock >

Get the queryable type with the correct qualifiers.

By default this is a reference to the type Q. If Q match Lockable and AutoLock is true, then the type is a thread_safe_queryable_t<Q>. It is not a reference to the type because it will be implicitly constructed using the LockableView<Q> constructor (taking Q&). Meaning a ThreadSafeQuery will have LockableView<Q> in its storages but Q& in its constructor.

Template Parameters
QQueryable object.
AutoLockWhether the queryable should be locked while used or not.
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-04-04)

Definition at line 262 of file Queryable.hpp.

Member Typedef Documentation

◆ type

template<Queryable Q, bool AutoLock = false>
using ecstasy::query::queryable_qualifiers< Q, AutoLock >::type = Q &

Definition at line 263 of file Queryable.hpp.


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