#include <loop_node.h>
Definition at line 12 of file loop_node.h.
The configuration type used to determine which type of configuration this instance is.
Enumerator |
---|
ALWAYS |
Looping infinitely has been selected.
The config instance can be cast to AlwaysLoopNodeConfig
|
COUNTER |
Looping a certain number of times has been selected.
The config instance can be cast to CounterLoopNodeConfig
|
EXPRESSION |
Looping as long as the evaluation of an expression is true has been selected.
The config instance can be cast to ExpressionLoopNodeConfig
|
Definition at line 19 of file loop_node.h.
arcs::aubo_scope::LoopNode::LoopNode |
( |
LoopNode & |
f | ) |
|
arcs::aubo_scope::LoopNode::LoopNode |
( |
LoopNode && |
f | ) |
|
virtual arcs::aubo_scope::LoopNode::~LoopNode |
( |
| ) |
|
|
virtual |
arcs::aubo_scope::LoopNode::LoopNode |
( |
| ) |
|
|
private |
ConfigType arcs::aubo_scope::LoopNode::getConfigType |
( |
| ) |
|
This method returns the type of configuration.
Cast this instance appropriately to have access to specific getters.
- Returns
- the type of this config.
ExpressionPtr arcs::aubo_scope::LoopNode::getExpression |
( |
| ) |
|
int arcs::aubo_scope::LoopNode::getLoopCount |
( |
| ) |
|
VariablePtr arcs::aubo_scope::LoopNode::getLoopCountVariable |
( |
| ) |
|
bool arcs::aubo_scope::LoopNode::isEvaluateContinously |
( |
| ) |
|
- Returns
true
if the expression will be evaluated continuously during the looping (i.e. the loop can be interrupted anytime during its execution), otherwise false
and the expression will be evaluated once per loop iteration.
void arcs::aubo_scope::LoopNode::setConfigType |
( |
ConfigType |
type | ) |
|
void arcs::aubo_scope::LoopNode::setEvaluateContinously |
( |
bool |
cont | ) |
|
void arcs::aubo_scope::LoopNode::setExpression |
( |
ExpressionPtr |
expression | ) |
|
Create a loop expression configuration.
- Parameters
-
expression | the expression whose evaluation must be true to continue looping, not null . |
evaluateContinuously | if true the expression will be evaluated continuously during the looping (i.e. the loop can be interrupted anytime during its execution), otherwise false and the expression will be evaluated once per loop iteration. |
- Returns
- the configuration.
void arcs::aubo_scope::LoopNode::setLoopCount |
( |
int |
loop_count | ) |
|
Creates a loop counter configuration.
- Parameters
-
loopCount | the number of iterations through the loop node. |
errorHandler | error handler for handling validation. If using ErrorHandler#AUTO_CORRECT this will clamp the value to the nearest valid loop count value. |
- Returns
- the configuration.
void arcs::aubo_scope::LoopNode::setLoopCountVariable |
( |
VariablePtr |
var | ) |
|
- Returns
- the variable for storing the loop count
void* arcs::aubo_scope::LoopNode::d_ { nullptr } |
|
private |
The documentation for this class was generated from the following file:
- include/aubo_caps/domain/program/nodes/builtin/loop_node.h