50 const std::string condition,
80 cl_event
_execute(
const std::vector<cl_event> events);
84 std::string _condition;
109 const std::string condition,
134 If(
const std::string
name,
const std::string condition,
bool once =
false);
161 cl_event
_execute(
const std::vector<cl_event> events);
177 End(
const std::string
name,
bool once =
false);
Base class for conditional tools like While or If.
Definition: Conditional.h:40
~Conditional()
Destructor.
Definition: Conditional.cpp:44
cl_event _execute(const std::vector< cl_event > events)
Definition: Conditional.cpp:95
virtual Tool * next_tool()
Definition: Conditional.cpp:87
const int scope_modifier()
Definition: Conditional.h:73
bool _result
Condition result.
Definition: Conditional.h:90
void setup()
Initialize the tool.
Definition: Conditional.cpp:47
Close the scope open by a previous conditional tool, like While or If.
Definition: Conditional.h:171
~End()
Destructor.
Definition: Conditional.cpp:184
const int scope_modifier()
Definition: Conditional.h:189
void setup()
Initialize the tool.
Definition: Conditional.cpp:187
Execute all the tools in its scope if the condition is fulfilled.
Definition: Conditional.h:125
void setup()
Initialize the tool.
Definition: Conditional.cpp:142
cl_event _execute(const std::vector< cl_event > events)
Definition: Conditional.cpp:169
~If()
Destructor.
Definition: Conditional.cpp:139
Tool * next_tool()
Definition: Conditional.cpp:151
Execute all the tools in its scope until the condition becomes unfulfilled.
Definition: Conditional.h:99
void setup()
Initialize the tool.
Definition: Conditional.cpp:126
~While()
Destructor.
Definition: Conditional.cpp:123
Main AQUAgpusph namespace.
Definition: ArgumentsManager.cpp:45