> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# composite:scope_generator

**Version: 0.0.0**

## Description

Generator operator that returns an element chunk each time generator\_counteris modified until all elements have been handled.

## Inputs

| Input | Name | Expected type(s) | Description |
| - | - | - | - |
| **Pin 0** Required | generator\_counter | [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#standard-types) | Increment this input to get the next element scope for output element\_scoping . |
| **Pin 1** | element\_scoping | [`scoping`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#scoping) | Element scoping |
| **Pin 3** | stream\_provider | [`streams_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#streams-container) | stream\_provider of the result file. Required if no explicit element scope is providedor the result definition contains Named Selections. |
| **Pin 4** | data\_sources | [`data_sources`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#data-sources) | Composite data sources |
| **Pin 402** | data\_tree | [`abstract_data_tree`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#data-tree) | Configuration containing the following keys: max\_chunk\_size (int) and named\_selections (\[string])) |

## Outputs

| Output | Name | Expected type(s) | Description |
| - | - | - | - |
| **Pin 0** | element\_scoping | [`scoping`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#scoping) | Element scoping for current chunk. |
| **Pin 1** | is\_finished | [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#standard-types) | Returns true if generator has returned all the requested elements. In this case the output of pin element\_scoping is empty. |

## Configurations

| Name | Expected type(s) | Default value | Description |
| - | - | - | - |
| **mutex** | [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#standard-types) | false | If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads. |

## Scripting

**Category**: composite

**Plugin**: composite

**Scripting name**: scope\_generator

**Full name**: composite.scope\_generator

**Internal name**: composite::scope\_generator

**License**: None

## Changelog

* Version 0.0.0: Initial release.
