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

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

#include <Queryable.hpp>

Public Types

using type = thread_safe_queryable_t< Q, true >
 

Detailed Description

template<thread::Lockable Q>
struct ecstasy::query::queryable_qualifiers< Q, true >

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 268 of file Queryable.hpp.

Member Typedef Documentation

◆ type

template<thread::Lockable Q>
using ecstasy::query::queryable_qualifiers< Q, true >::type = thread_safe_queryable_t<Q, true>

Definition at line 269 of file Queryable.hpp.


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