ForeachLoopBody Class | Qt SCXML 5.9

Qt 5.9 | Qt SCXML | C++ Classes | ForeachLoopBody

Qt 5.9.3 Reference Documentation

# ForeachLoopBody Class

(QScxmlDataModel::ForeachLoopBody)

The ForeachLoopBody class represents a function to be executed on each iteration of an SCXML foreach loop. More...

Header: | #include <ForeachLoopBody>
qmake: | QT += scxml
Since: | Qt 5.8

- List of all members, including inherited members

## Public Functions

virtual | ~ForeachLoopBody()
virtual void | run(bool *ok) = 0

## Detailed Description

The ForeachLoopBody class represents a function to be executed on each iteration of an SCXML foreach loop.

## Member Function Documentation

### `[virtual]` ForeachLoopBody::~ForeachLoopBody()

Destroys a foreach loop body.

### `[pure virtual]` void ForeachLoopBody::run(bool *ok)

This function is executed on each iteration. If the execution fails, ok is set to `false`, otherwise it is set to `true`.