Photon Editor Library
2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
TQueryPerformer.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
EditorCore/Query/fwd.h
"
4
5
#include <atomic>
6
7
namespace
ph::editor
8
{
9
10
template
<
typename
Target>
11
class
TQueryPerformer
12
{
13
public
:
14
using
TargetType
= Target;
15
16
virtual
~TQueryPerformer
();
17
21
virtual
bool
performQuery
(Target& target) = 0;
22
27
bool
isReady
()
const
;
28
29
void
cancel
();
30
31
private
:
32
friend
TQuery<Target, TQueryPerformer>
;
33
38
void
queryDone();
39
40
bool
isCanceled()
const
;
41
42
std::atomic_flag m_readyFlag;
43
std::atomic_flag m_cancelFlag;
44
};
45
46
}
// end namespace ph::editor
47
48
#include "
EditorCore/Query/TQueryPerformer.ipp
"
fwd.h
TQueryPerformer.ipp
ph::editor::TQuery
Definition
TQuery.h:29
ph::editor::TQueryPerformer
Definition
TQueryPerformer.h:12
ph::editor::TQueryPerformer::TargetType
Target TargetType
Definition
TQueryPerformer.h:14
ph::editor::TQueryPerformer::performQuery
virtual bool performQuery(Target &target)=0
ph::editor::TQueryPerformer::~TQueryPerformer
virtual ~TQueryPerformer()
ph::editor::TQueryPerformer::isReady
bool isReady() const
Whether the query was finished and the result is ready.
Definition
TQueryPerformer.ipp:12
ph::editor::TQueryPerformer::cancel
void cancel()
Definition
TQueryPerformer.ipp:26
ph::editor
Definition
ph_editor.h:10
Source
EditorCore
Query
TQueryPerformer.h
Generated by
1.11.0