> ## 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 sysc::DataTransfer

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

**Definition**: `DataTransfer.hpp` (line 21)

Provide a class for a data transfer.

Data transfer specifies the source and target variables for mapping.

## Members

* [DataTransfer](#classsysc_1_1DataTransfer_1a9a4412f47dbd13ece79d35b0876ace13)
* [getSideOneVariable](#classsysc_1_1DataTransfer_1ab8142869f0ec725f8f3d06a73a043684)
* [getSideTwoVariable](#classsysc_1_1DataTransfer_1a482db261458815e4bb79c3f5a680738d)
* [getSourceSide](#classsysc_1_1DataTransfer_1a7788b20c57fe5479500101f705d0aaf8)
* [getSourceVariable](#classsysc_1_1DataTransfer_1aa60c024787bf5956a251bef61e75b1a2)
* [getTargetSide](#classsysc_1_1DataTransfer_1a737e25f50bae13a64f047a7b84d5e378)
* [getTargetVariable](#classsysc_1_1DataTransfer_1a4739ad73891b33eef85d5df8b4c6898b)
* [m\_sourceVariable](#classsysc_1_1DataTransfer_1a6ee52e13f6f319cb2834615dd0a2769a)
* [m\_targetSide](#classsysc_1_1DataTransfer_1a37cef8a76bd2a277bdc0884160cc4b57)
* [m\_targetVariable](#classsysc_1_1DataTransfer_1a3e549fdfc54ed56822a7aec8252debcf)

## Private attributes

### Variable m\_sourceVariable

![][private]

**Definition**: `DataTransfer.hpp` (line 56)

```cpp theme={null}
Variable sysc::DataTransfer::m_sourceVariable
```

**Type**: [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/classsysc_1_1Variable.md)

### Variable m\_targetVariable

![][private]

**Definition**: `DataTransfer.hpp` (line 57)

```cpp theme={null}
Variable sysc::DataTransfer::m_targetVariable
```

**Type**: [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/classsysc_1_1Variable.md)

### Variable m\_targetSide

![][private]

**Definition**: `DataTransfer.hpp` (line 58)

```cpp theme={null}
InterfaceSide sysc::DataTransfer::m_targetSide
```

**Type**: [InterfaceSide](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/namespacesysc#group__SystemCouplingParticipantAPIs_1gae8967650e49639319360bad6efc649a4)

## Public functions

### Function DataTransfer

![][public]

```cpp theme={null}
sysc::DataTransfer::DataTransfer(Variable sourceVariable, Variable targetVariable, enum InterfaceSide targetSide)
```

Provide a constructor for the [DataTransfer](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/classsysc_1_1DataTransfer.md) class.

**Parameters**:

* **sourceVariable**: - source variable.
* **targetVariable**: - target variable.
* **targetSide**: - target side.

**Parameters**:

* [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/classsysc_1_1Variable.md) **sourceVariable**
* [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/classsysc_1_1Variable.md) **targetVariable**
* enum [InterfaceSide](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/namespacesysc#group__SystemCouplingParticipantAPIs_1gae8967650e49639319360bad6efc649a4) **targetSide**

**Return type**:

### Function getSourceVariable

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

```cpp theme={null}
const Variable & sysc::DataTransfer::getSourceVariable() const noexcept
```

Get the source variable.

**Return type**: const [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/classsysc_1_1Variable.md) &

### Function getTargetVariable

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

```cpp theme={null}
const Variable & sysc::DataTransfer::getTargetVariable() const noexcept
```

Get the target variable.

**Return type**: const [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/classsysc_1_1Variable.md) &

**References**:

* [getTargetVariable](#classsysc_1_1DataTransfer_1a4739ad73891b33eef85d5df8b4c6898b)

**Referenced by**:

* [getTargetVariable](#classsysc_1_1DataTransfer_1a4739ad73891b33eef85d5df8b4c6898b)

### Function getSideOneVariable

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

```cpp theme={null}
const Variable & sysc::DataTransfer::getSideOneVariable() const noexcept
```

Get the variable on side one.

**Return type**: const [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/classsysc_1_1Variable.md) &

**References**:

* [getSideOneVariable](#classsysc_1_1DataTransfer_1ab8142869f0ec725f8f3d06a73a043684)

**Referenced by**:

* [getSideOneVariable](#classsysc_1_1DataTransfer_1ab8142869f0ec725f8f3d06a73a043684)

### Function getSideTwoVariable

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

```cpp theme={null}
const Variable & sysc::DataTransfer::getSideTwoVariable() const noexcept
```

Get the variable on side two.

**Return type**: const [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/classsysc_1_1Variable.md) &

**References**:

* [getSideTwoVariable](#classsysc_1_1DataTransfer_1a482db261458815e4bb79c3f5a680738d)

**Referenced by**:

* [getSideTwoVariable](#classsysc_1_1DataTransfer_1a482db261458815e4bb79c3f5a680738d)

### Function getTargetSide

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

```cpp theme={null}
InterfaceSide sysc::DataTransfer::getTargetSide() const noexcept
```

Get the source side.

**Return type**: [InterfaceSide](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/namespacesysc#group__SystemCouplingParticipantAPIs_1gae8967650e49639319360bad6efc649a4)

**References**:

* [getTargetSide](#classsysc_1_1DataTransfer_1a737e25f50bae13a64f047a7b84d5e378)

**Referenced by**:

* [getTargetSide](#classsysc_1_1DataTransfer_1a737e25f50bae13a64f047a7b84d5e378)

### Function getSourceSide

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

```cpp theme={null}
InterfaceSide sysc::DataTransfer::getSourceSide() const noexcept
```

Get the target side.

**Return type**: [InterfaceSide](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/namespacesysc#group__SystemCouplingParticipantAPIs_1gae8967650e49639319360bad6efc649a4)

**References**:

* [getSourceSide](#classsysc_1_1DataTransfer_1a7788b20c57fe5479500101f705d0aaf8)

**Referenced by**:

* [getSourceSide](#classsysc_1_1DataTransfer_1a7788b20c57fe5479500101f705d0aaf8)

[private]: https://img.shields.io/badge/-private-red "private"

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

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

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