> ## 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.

# ansys::dpf::OperatorSpecification Class Reference

`#include <dpf_api.h>`

Inheritance diagram for ansys::dpf::OperatorSpecification:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorSpecification.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=8e78d5053f277a2ff34d54095b91ad1e)

## Public Member Functions

| Type | Name |
| - | - |
| | **OperatorSpecification** ([OperatorSpecification](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorSpecification.md) const &) |
| | **OperatorSpecification** ([OperatorSpecification](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorSpecification.md) &&) noexcept |
| [OperatorSpecification](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorSpecification.md) & | **operator=** ([OperatorSpecification](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorSpecification.md) const &) |
| [OperatorSpecification](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorSpecification.md) & | **operator=** ([OperatorSpecification](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorSpecification.md) &&) noexcept |
| std::vector\< [PinDefinition](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1PinDefinition.md) > | [inputPins](#ab34a33daaef024443cebecd265786e18) () const |
| std::vector\< [PinDefinition](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1PinDefinition.md) > | [outputPins](#af1f0a429df6979e64b52713fc95e981a) () const |
| void | [setInputPins](#ac3e45d154d2904aedd470563c8d566b5) (std::vector\< [PinDefinition](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1PinDefinition.md) > const \&pins) |
| void | [setOutputPins](#a5a47b3bacdaf74b6039f73facd30a881) (std::vector\< [PinDefinition](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1PinDefinition.md) > const \&pins) |
| std::string | [getDocumentation](#a398ea2f358ea35f62384436d99ca2bbf) () const |
| void | [setDocumentation](#af2335159650a865b5c7eab060d85da07) (std::string const \&text) |
| std::string | [getProperty](#a2f4a8c5f7334cbddb79b610d90fe9fc2) (std::string const \&key) const |
| void | [setProperty](#aa931a524a869f2881c49bfef21f790d0) (std::string const \&key, std::string const \&value) |
| std::vector\< [ConfigOptionSpecification](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1ConfigOptionSpecification.md) > | [configOptions](#ad5b6239b64de0216aae2325f8936611c) () const |
| void | [addSupportedConfigOption](#ac608a98bb19ea5c878f2424e209f52d8) (std::string const \&option\_name, bool default\_value, std::string const \&documentation="") |
| void | [addSupportedConfigOption](#a69d4382377d7375074fa8da84f5c5732) (std::string const \&option\_name, int default\_value, std::string const \&documentation="") |
| void | [addSupportedConfigOption](#adcf58df937bb7bd6b2bb21b849ce7130) (std::string const \&option\_name, double default\_value, std::string const \&documentation="") |
|  void | **setVersion** (const SemanticVersion \&semver) |
|  SemanticVersion | **getVersion** () const |

> [accordion] Public Member Functions inherited from ansys::dpf::DpfTypes
>
> Public Member Functions inherited from [ansys::dpf::DpfTypes](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md)
>
> | Type | Name |
> | - | - |
> | virtual bool | [empty](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#a39cd546c42518e2332be8f287db95459) () const |
> | virtual bool | [hasInternalObject](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#ae198f89868d85c7db6dc1a934a1d3c15) () const |
> | virtual std::string | [describe](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#a9977945710983bc03d2940fa007847b2) () const |
> | so::API const \* | [callAPI](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#aea34d37e0c080126eff70db34bf46597) () const |
> | bool | [isOnCommonAPI](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#a9f9789ff61cc9d400a2a344830706b73) () const |
> | bool | [getClient](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#a968afd9daa0b0f13b65a2ac61369d73a) ([Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Client.md) \&client) const |
> | bool | [hasBeenMovedLocally](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#a1a5634202c15404b6b24e8f50e51cb66) () const |
> | bool | [isSameObject](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#aa64d5f8fcd7d85ad6ebf708494dbefd7) ([DpfTypes](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md) const \&rhs) const |

## Detailed Description

Definition of a new operator.

**See also**

[How-tos](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/group__group__4__how__tos)

## Member Function Documentation

### addSupportedConfigOption() \[1/3]

```cpp theme={null}
void ansys::dpf::OperatorSpecification::addSupportedConfigOption(
    std::string const & option_name,
    bool default_value,
    std::string const & documentation = ""
)
```

Add a supported config option to the operator. @See [OperatorConfig](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorConfig.md)

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | option\_name | @See [OperatorConfig::options](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorConfig.md#ae02e4297e6fa9030d1ff3179fefe04b5). |
| \[in] | default\_value | Default value. |
| \[in] | documentation | Description of the config option. If nothing is specified default values will be looked for. |

### addSupportedConfigOption() \[2/3]

```cpp theme={null}
void ansys::dpf::OperatorSpecification::addSupportedConfigOption(
    std::string const & option_name,
    double default_value,
    std::string const & documentation = ""
)
```

Add a supported config option to the operator. @See [OperatorConfig](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorConfig.md)

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | option\_name | @See [OperatorConfig::options](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorConfig.md#ae02e4297e6fa9030d1ff3179fefe04b5). |
| \[in] | default\_value | Default value. |
| \[in] | documentation | Description of the config option. If nothing is specified default values will be looked for. |

### addSupportedConfigOption() \[3/3]

```cpp theme={null}
void ansys::dpf::OperatorSpecification::addSupportedConfigOption(
    std::string const & option_name,
    int default_value,
    std::string const & documentation = ""
)
```

Add a supported config option to the operator. @See [OperatorConfig](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorConfig.md)

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | option\_name | @See [OperatorConfig::options](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1OperatorConfig.md#ae02e4297e6fa9030d1ff3179fefe04b5). |
| \[in] | default\_value | Default value. |
| \[in] | documentation | Description of the config option. If nothing is specified default values will be looked for. |

### configOptions()

```cpp theme={null}
std::vector< ConfigOptionSpecification > ansys::dpf::OperatorSpecification::configOptions() const
```

Gets the currently defined configuration options specifications.

**Returns**

Vector of operator configuration option specifications.

### getDocumentation()

```cpp theme={null}
std::string ansys::dpf::OperatorSpecification::getDocumentation() const
```

**Returns**

Description of operator.

### getProperty()

```cpp theme={null}
std::string ansys::dpf::OperatorSpecification::getProperty(std::string const & key) const
```

**Returns**

[Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Operator.md) property given by key.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | key | Key of property to get. |

### inputPins()

```cpp theme={null}
std::vector< PinDefinition > ansys::dpf::OperatorSpecification::inputPins() const
```

Gets the currently defined input pins of the operator.

**Returns**

Vector of input pin definitions.

### outputPins()

```cpp theme={null}
std::vector< PinDefinition > ansys::dpf::OperatorSpecification::outputPins() const
```

Gets the currently defined output pins of the operator.

**Returns**

Vector of output pin definitions.

### setDocumentation()

```cpp theme={null}
void ansys::dpf::OperatorSpecification::setDocumentation(std::string const & text)
```

Sets the description of operator.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | text | String describing the operator. |

### setInputPins()

```cpp theme={null}
void ansys::dpf::OperatorSpecification::setInputPins(
    std::vector< PinDefinition > const & pins
)
```

Sets the input pin definitions of the operator.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | pins | Vector of input pins. |

### setOutputPins()

```cpp theme={null}
void ansys::dpf::OperatorSpecification::setOutputPins(
    std::vector< PinDefinition > const & pins
)
```

Sets the output pin definitions of the operator.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | pins | Vector of input pins. |

### setProperty()

```cpp theme={null}
void ansys::dpf::OperatorSpecification::setProperty(
    std::string const & key,
    std::string const & value
)
```

Set property for given key.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | key | Key for which to set property. |
| \[in] | value | Property value. |
