QScxmlDataModel::ForeachLoopBody Class | Qt SCXML | Qt 6.11.1
Description: The ForeachLoopBody class represents a function to be executed on each iteration of an SCXML foreach loop.

- Qt 6.11
- Qt SCXML
- C++ Classes
- ForeachLoopBody
- Qt 6.11.1 Reference Documentation

# QScxmlDataModel::ForeachLoopBody Class

class QScxmlDataModel::ForeachLoopBody

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

- List of all members, including inherited members

## Public Functions

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

## Detailed Description

## Member Function Documentation

### ForeachLoopBody::ForeachLoopBody()

Creates a new foreach loop body.

### `[virtual noexcept]` 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`.