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

# Class ansys::dpf::Interface

![][C++]
![][public]

[Interface](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-interface.md) specifies a set of constraints that an underlying implementation (operator or workflow) must respect.

## Members

* [get](#classansys-dpf-interface-1a2f04134d6869e0e2850b163098d7f60d)
* [getCacheInformation](#classansys-dpf-interface-1aa11f77e7c6afac065eed67320bc76152)
* [getExposedInputs](#classansys-dpf-interface-1ad95dea740aaabe8b28151116205d9015)
* [getExposedOutputs](#classansys-dpf-interface-1aae0d89447d85a705dad45f87fe5a6ddc)
* [getName](#classansys-dpf-interface-1aadad56bc25f8e1cfa01e776138e2a40e)
* [Interface](#classansys-dpf-interface-1a3f86c8753b44a5ff8ff372698a99f44f)
* [Interface](#classansys-dpf-interface-1ae7b77e9e0a3b3c9e0b6fb360bce69574)
* [Interface](#classansys-dpf-interface-1a886749ab22972009fb46b4369452b5a7)
* [isOptional](#classansys-dpf-interface-1a5ec662354dff0bc0c21efea29a50c135)
* [isToCache](#classansys-dpf-interface-1acdd838b3056830bb4e4f6beb8328d926)

## Public functions

### Function Interface

![][public]

```cpp theme={null}
ansys::dpf::Interface::Interface()=default
```

**Return type**:

### Function Interface

![][public]

```cpp theme={null}
ansys::dpf::Interface::Interface(const std::string &name, const std::vector< std::string > &exposedInputs, const std::vector< std::string > &exposedOutputs, const CacheInformation &cacheInformation=CacheInformation(), bool isOptional=false)
```

**Parameters**:

* const std::string & **name**
* const std::vector\< std::string > & **exposedInputs**
* const std::vector\< std::string > & **exposedOutputs**
* const [CacheInformation](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-cacheinformation.md) & **cacheInformation** = [CacheInformation](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-cacheinformation.md)()
* bool **isOptional** = false

**Return type**:

### Function Interface

![][public]

```cpp theme={null}
ansys::dpf::Interface::Interface(const DataTree &dt)
```

**Parameters**:

* const [DataTree](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-datatree.md) & **dt**

**Return type**:

### Function getName

![][public]
![][const]

```cpp theme={null}
std::string ansys::dpf::Interface::getName() const noexcept
```

**Return type**: std::string

### Function get

![][public]
![][const]

```cpp theme={null}
DataTree ansys::dpf::Interface::get() const
```

**Return type**: [DataTree](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-datatree.md)

### Function getExposedInputs

![][public]
![][const]

```cpp theme={null}
std::vector< std::string > ansys::dpf::Interface::getExposedInputs() const noexcept
```

**Return type**: std::vector\< std::string >

### Function getExposedOutputs

![][public]
![][const]

```cpp theme={null}
std::vector< std::string > ansys::dpf::Interface::getExposedOutputs() const noexcept
```

**Return type**: std::vector\< std::string >

### Function getCacheInformation

![][public]
![][const]

```cpp theme={null}
std::map< std::string, CacheInformation::LevelAndDestination > ansys::dpf::Interface::getCacheInformation() const
```

**Return type**: std::map\< std::string, CacheInformation::LevelAndDestination >

### Function isToCache

![][public]
![][const]

```cpp theme={null}
bool ansys::dpf::Interface::isToCache(const std::string &pinName) const noexcept
```

**Parameters**:

* const std::string & **pinName**

**Return type**: bool

### Function isOptional

![][public]
![][const]

```cpp theme={null}
bool ansys::dpf::Interface::isOptional() const noexcept
```

**Return type**: bool

[C++]: https://img.shields.io/badge/language-C%2B%2B-blue "C++"

[const]: https://img.shields.io/badge/-const-lightblue "const"

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[static]: https://img.shields.io/badge/-static-lightgrey "static"
