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

# sysc::OutputIntegerData Class Reference

Part of [C++ Interfaces for Participant Library](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs)

Provide a class for output integer data.

`#include <OutputIntegerData.hpp>`

## Public Member Functions

| Type | Name |
| - | - |
| | [OutputIntegerData](#aaff24bd17a31494539fe166a58c14a61) (const std::uint16\_t \*data, std::size\_t [size](#a066b9985cc448f197b0e247dfe11ea3c)) Provide a constructor for [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md), which provides read-only access to an array of unsigned 16-bit integers. |
| | [OutputIntegerData](#aac9c3dafa5cfd8b1c0faa8a0dfaf4b8b) (const std::vector\< std::uint16\_t > \&data) Provide an STL vector variation of constructor for [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md), which provides read-only access to an array of unsigned 16-bit integers. |
| | [OutputIntegerData](#a1b00e76dc5eb0ecaf543f43df90dbe1d) (const std::uint64\_t \*data, std::size\_t [size](#a066b9985cc448f197b0e247dfe11ea3c)) Provide a constructor for [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md), which provides read-only access to an array of unsigned 64-bit integers. |
| | [OutputIntegerData](#a6bb7fdf48c06f729b453d0cc476b0d51) (const std::vector\< std::uint64\_t > \&data) Provide an STL vector variation of constructor for [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md), which provides read-only access to an array of unsigned 64-bit integers. |
| | [OutputIntegerData](#a434b5d77b41e183c5e8c66a66feab677) (const std::int32\_t \*data, std::size\_t [size](#a066b9985cc448f197b0e247dfe11ea3c)) Provide a constructor for [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md), which provides read-only access to an array of 32-bit integers. |
| | [OutputIntegerData](#a77f661f442e22e6ef767046363675577) (const std::vector\< std::int32\_t > \&data) Provide an STL vector variation of constructor for [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md), which provides read-only access to an array of 32-bit integers. |
| | [OutputIntegerData](#a3e9b3743b43def94e796ce6ca2440bb5) (const std::int64\_t \*data, std::size\_t [size](#a066b9985cc448f197b0e247dfe11ea3c)) Provide a constructor for [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md), which provides read-only access to an array of 64-bit integers. |
| | [OutputIntegerData](#a0b95e5e0c9bd3d32a2896d4ef46751da) (const std::vector\< std::int64\_t > \&data) Provide an STL vector variation of constructor for [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md), which provides read-only access to an array of 64-bit integers. |
| | [OutputIntegerData](#a0e6a549839197abac135cae92a4bacc2) (const [OutputScalarData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputScalarData.md) \&data) Provide a constructor to convert [OutputScalarData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputScalarData.md) into [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md). |
| | [OutputIntegerData](#a22df364015b79855a8e7b7d7e2f5950a) ()=default Provide a default constructor. |
| | [OutputIntegerData](#adc76f136fc2140e796d82a5b28c7c11b) (const [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) &)=default Provide a copy-constructor. |
| | [OutputIntegerData](#a815f75642b0a3b4f607cefe02b114805) ([OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) &&)=default Provide a move-constructor. |
| [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) & | [operator=](#a6e2dbe8549ce9a6e5eab1191bfc2c9c8) (const [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) &)=default Provide a copy-assign operator. |
| [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) & | [operator=](#aea30a96b33149b9e5f0f76a6c11457e9) ([OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) &&)=default Provide a move-assign operator. |
|  std::size\_t | [size](#a066b9985cc448f197b0e247dfe11ea3c) () const noexcept Get the size of data. |
|  bool | [empty](#a8819c1e3b85cd5eccad2343fc2b3864b) () const noexcept Check if array “data” is empty. |
| [sysc::PrimitiveType](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gad3b1c73e4a63f4d292d65f3db875e844) | [getDataType](#a2518ac18b1229dcdcd3a6e8cb231ce31) () const noexcept Get the primitive type of data. |
| const void \* | [getData](#a5260a1044cbf48fc08861592f27ef830) () const noexcept Get the pointer to the data. |

## Detailed Description

Provide a class for output integer data.

Output integer data provides read-only access to an array of integer data.

Definition at line [25](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/OutputIntegerData_8hpp_source) of file [OutputIntegerData.hpp](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/OutputIntegerData_8hpp_source).

## Constructor & Destructor Documentation

### OutputIntegerData() \[1/8]

```cpp theme={null}
sysc::OutputIntegerData::OutputIntegerData(
    const std::uint16_t * data,
    std::size_t size
)
```

Provide a constructor for [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md), which provides read-only access to an array of unsigned 16-bit integers.

**Parameters**

| Name | Description |
| - | - |
| data | Pointer to the first index in the array of unsigned 16-bit integers. |
| size | Number of elements in the array of unsigned 16-bit integers. |

### OutputIntegerData() \[2/8]

```cpp theme={null}
sysc::OutputIntegerData::OutputIntegerData(const std::vector< std::uint16_t > & data)
```

Provide an STL vector variation of constructor for [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md), which provides read-only access to an array of unsigned 16-bit integers.

**Parameters**

| Name | Description |
| - | - |
| data | Reference to STL vector of unsigned 16-bit integers. |

### OutputIntegerData() \[3/8]

```cpp theme={null}
sysc::OutputIntegerData::OutputIntegerData(
    const std::uint64_t * data,
    std::size_t size
)
```

Provide a constructor for [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md), which provides read-only access to an array of unsigned 64-bit integers.

**Parameters**

| Name | Description |
| - | - |
| data | Pointer to the first index in the array of unsigned 64-bit integers. |
| size | Number of elements in the array of unsigned 64-bit integers. |

### OutputIntegerData() \[4/8]

```cpp theme={null}
sysc::OutputIntegerData::OutputIntegerData(const std::vector< std::uint64_t > & data)
```

Provide an STL vector variation of constructor for [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md), which provides read-only access to an array of unsigned 64-bit integers.

**Parameters**

| Name | Description |
| - | - |
| data | Reference to STL vector of unsigned 64-bit integers. |

### OutputIntegerData() \[5/8]

```cpp theme={null}
sysc::OutputIntegerData::OutputIntegerData(
    const std::int32_t * data,
    std::size_t size
)
```

Provide a constructor for [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md), which provides read-only access to an array of 32-bit integers.

**Parameters**

| Name | Description |
| - | - |
| data | Pointer to the first index in the array of unsigned 32-bit integers. |
| size | Number of elements in the array of unsigned 16-bit integers. |

### OutputIntegerData() \[6/8]

```cpp theme={null}
sysc::OutputIntegerData::OutputIntegerData(const std::vector< std::int32_t > & data)
```

Provide an STL vector variation of constructor for [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md), which provides read-only access to an array of 32-bit integers.

**Parameters**

| Name | Description |
| - | - |
| data | Reference to STL vector of 32-bit integers. |

### OutputIntegerData() \[7/8]

```cpp theme={null}
sysc::OutputIntegerData::OutputIntegerData(
    const std::int64_t * data,
    std::size_t size
)
```

Provide a constructor for [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md), which provides read-only access to an array of 64-bit integers.

**Parameters**

| Name | Description |
| - | - |
| data | Pointer to the first index in the array of unsigned 64-bit integers. |
| size | Number of elements in the array of unsigned 64-bit integers. |

### OutputIntegerData() \[8/8]

```cpp theme={null}
sysc::OutputIntegerData::OutputIntegerData(const std::vector< std::int64_t > & data)
```

Provide an STL vector variation of constructor for [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md), which provides read-only access to an array of 64-bit integers.

**Parameters**

| Name | Description |
| - | - |
| data | Reference to STL vector of 64-bit integers. |

## Member Function Documentation

### getData()

```cpp theme={null}
const void* sysc::OutputIntegerData::getData() const
```

`noexcept`

Get the pointer to the data.

For internal use only (no back-compatibility guarantee).

References [sysc::Int64](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/CommonTypes_8hpp_source).

### getDataType()

```cpp theme={null}
sysc::PrimitiveType sysc::OutputIntegerData::getDataType() const
```

`noexcept`

Get the primitive type of data.

For internal use only (no back-compatibility guarantee).
