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

# Structure sysc::OutputScalarData

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

**Definition**: `OutputScalarData.hpp` (line 23)

Provide a class for output scalar data.

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

## Members

* [empty](#structsysc_1_1OutputScalarData_1a840f69a7825eb32e1e8c63b3e208be83)
* [getData](#structsysc_1_1OutputScalarData_1a910febd1f11952e4f383b5fcc8803e2f)
* [getDataType](#structsysc_1_1OutputScalarData_1a7c8066141c2c20a9e0a1e6bbc088891c)
* [m\_data](#structsysc_1_1OutputScalarData_1a4334fce9994c8ed8815e768a14836d10)
* [m\_dataType](#structsysc_1_1OutputScalarData_1a324acb489f8e8c6f30aed11ecde238b3)
* [m\_size](#structsysc_1_1OutputScalarData_1a80e28ceb755427e85357d037c0c04990)
* [operator=](#structsysc_1_1OutputScalarData_1a86e22000419560ec9ebef3ef9c65cb3b)
* [operator=](#structsysc_1_1OutputScalarData_1a144fc672c397e2fad5d533686015dcf7)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a0c295be497ed08e0e9831b54731edb06)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1ab5c5cda94b99e246dc238885e8ab0a7e)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1ad0f7ad860a57401cd183e8c689ef7514)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a5ed2f8ce333e14641f2254f542b97ff9)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a81966c06b45df17fcb3039e8e0e6e839)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1ae3fe5b13c079f1f417966373da0d0f1a)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a97c1234dee15d9fc662f8f339543fdde)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a8ce242f8370551d3b45586b4d292585e)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1af9ac21cfcac5b9870d58a526aaa8c10c)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a66895325f9405302665064f2d988f024)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a302c60d8c198a99c635fbdf9432bb9c2)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a4bfbce8b70e9015ad5f8b97d9feef0c9)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1aaf3b08dff47cd5902d6ca62f0872312f)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a1dbc9822f6ac6d63df34c6816aeef47c)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a19925345654472e8bdbe3fa8e9b23fb5)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1ac930e62aa94851cf608aaa2cc6346867)
* [size](#structsysc_1_1OutputScalarData_1a75c7feb1b7eb4af572352c9ccabc7960)

## Private attributes

### Variable m\_dataType

![][private]

**Definition**: `OutputScalarData.hpp` (line 261)

```cpp theme={null}
sysc::PrimitiveType sysc::OutputScalarData::m_dataType {[sysc::Double](group__SystemCouplingParticipantAPIs.md#group__SystemCouplingParticipantAPIs_1ggad3b1c73e4a63f4d292d65f3db875e844a29843d2c1bb5760f768dcc066dac1ac1)}
```

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

### Variable m\_data

![][private]

**Definition**: `OutputScalarData.hpp` (line 262)

```cpp theme={null}
const void* sysc::OutputScalarData::m_data {nullptr}
```

**Type**: const void \*

### Variable m\_size

![][private]

**Definition**: `OutputScalarData.hpp` (line 263)

```cpp theme={null}
std::size_t sysc::OutputScalarData::m_size {0}
```

**Type**: std::size\_t

## Public functions

### Function OutputScalarData

![][public]

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

Provide a constructor for output scalar data.

**Parameters**:

* **data**: - pointer to the double-precision array of data.
* **size**: - number of elements in the array.

**Parameters**:

* const double \* **data**
* std::size\_t **size**

**Return type**:

**References**:

* [sysc::Double](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/group__SystemCouplingParticipantAPIs.md#group__SystemCouplingParticipantAPIs_1ggad3b1c73e4a63f4d292d65f3db875e844a29843d2c1bb5760f768dcc066dac1ac1)
* [size](#structsysc_1_1OutputScalarData_1a75c7feb1b7eb4af572352c9ccabc7960)

**Referenced by**:

* [operator=](#structsysc_1_1OutputScalarData_1a86e22000419560ec9ebef3ef9c65cb3b)
* [operator=](#structsysc_1_1OutputScalarData_1a144fc672c397e2fad5d533686015dcf7)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a1dbc9822f6ac6d63df34c6816aeef47c)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a19925345654472e8bdbe3fa8e9b23fb5)

### Function OutputScalarData

![][public]

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

Provide a constructor for output scalar data.

**Parameters**:

* **data**: - pointer to the single-precision array of data.
* **size**: - number of elements in the array.

**Parameters**:

* const float \* **data**
* std::size\_t **size**

**Return type**:

**References**:

* [sysc::Float](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/group__SystemCouplingParticipantAPIs.md#group__SystemCouplingParticipantAPIs_1ggad3b1c73e4a63f4d292d65f3db875e844af25f11e4d5a18405d2880727956e3c06)
* [size](#structsysc_1_1OutputScalarData_1a75c7feb1b7eb4af572352c9ccabc7960)

### Function OutputScalarData

![][public]

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

Provide a constructor for output scalar data.

**Parameters**:

* **data**: Reference to STL vector of doubles.

**Parameters**:

* const std::vector\< double > & **data**

**Return type**:

**References**:

* [sysc::Double](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/group__SystemCouplingParticipantAPIs.md#group__SystemCouplingParticipantAPIs_1ggad3b1c73e4a63f4d292d65f3db875e844a29843d2c1bb5760f768dcc066dac1ac1)
* [size](#structsysc_1_1OutputScalarData_1a75c7feb1b7eb4af572352c9ccabc7960)

### Function OutputScalarData

![][public]

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

Provide a constructor for output scalar data.

**Parameters**:

* **data**: Reference to STL vector of floats.

**Parameters**:

* const std::vector\< float > & **data**

**Return type**:

**References**:

* [sysc::Float](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/group__SystemCouplingParticipantAPIs.md#group__SystemCouplingParticipantAPIs_1ggad3b1c73e4a63f4d292d65f3db875e844af25f11e4d5a18405d2880727956e3c06)
* [size](#structsysc_1_1OutputScalarData_1a75c7feb1b7eb4af572352c9ccabc7960)

### Function OutputScalarData

![][public]

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

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

**Parameters**:

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

**Parameters**:

* const std::uint16\_t \* **data**
* std::size\_t **size**

**Return type**:

**References**:

* [size](#structsysc_1_1OutputScalarData_1a75c7feb1b7eb4af572352c9ccabc7960)
* [sysc::UnsignedInt16](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/group__SystemCouplingParticipantAPIs.md#group__SystemCouplingParticipantAPIs_1ggad3b1c73e4a63f4d292d65f3db875e844aa75e06a552b1c3cbfd131efe80431fa0)

### Function OutputScalarData

![][public]

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

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

**Parameters**:

* **data**: Reference to STL vector of unsigned 16-bit integers.

**Parameters**:

* const std::vector\< std::uint16\_t > & **data**

**Return type**:

**References**:

* [size](#structsysc_1_1OutputScalarData_1a75c7feb1b7eb4af572352c9ccabc7960)
* [sysc::UnsignedInt16](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/group__SystemCouplingParticipantAPIs.md#group__SystemCouplingParticipantAPIs_1ggad3b1c73e4a63f4d292d65f3db875e844aa75e06a552b1c3cbfd131efe80431fa0)

### Function OutputScalarData

![][public]

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

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

**Parameters**:

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

**Parameters**:

* const std::uint64\_t \* **data**
* std::size\_t **size**

**Return type**:

**References**:

* [size](#structsysc_1_1OutputScalarData_1a75c7feb1b7eb4af572352c9ccabc7960)
* [sysc::UnsignedInt64](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/group__SystemCouplingParticipantAPIs.md#group__SystemCouplingParticipantAPIs_1ggad3b1c73e4a63f4d292d65f3db875e844a89e71558fbcaabe137d0bcf04df90462)

### Function OutputScalarData

![][public]

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

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

**Parameters**:

* **data**: Reference to STL vector of unsigned 64-bit integers.

**Parameters**:

* const std::vector\< std::uint64\_t > & **data**

**Return type**:

**References**:

* [size](#structsysc_1_1OutputScalarData_1a75c7feb1b7eb4af572352c9ccabc7960)
* [sysc::UnsignedInt64](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/group__SystemCouplingParticipantAPIs.md#group__SystemCouplingParticipantAPIs_1ggad3b1c73e4a63f4d292d65f3db875e844a89e71558fbcaabe137d0bcf04df90462)

### Function OutputScalarData

![][public]

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

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

**Parameters**:

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

**Parameters**:

* const std::int32\_t \* **data**
* std::size\_t **size**

**Return type**:

**References**:

* [sysc::Int32](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/group__SystemCouplingParticipantAPIs.md#group__SystemCouplingParticipantAPIs_1ggad3b1c73e4a63f4d292d65f3db875e844a65168a2fa10ccf906e55b9ae11f4d98d)
* [size](#structsysc_1_1OutputScalarData_1a75c7feb1b7eb4af572352c9ccabc7960)

### Function OutputScalarData

![][public]

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

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

**Parameters**:

* **data**: Reference to STL vector of 32-bit integers.

**Parameters**:

* const std::vector\< std::int32\_t > & **data**

**Return type**:

**References**:

* [sysc::Int32](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/group__SystemCouplingParticipantAPIs.md#group__SystemCouplingParticipantAPIs_1ggad3b1c73e4a63f4d292d65f3db875e844a65168a2fa10ccf906e55b9ae11f4d98d)
* [size](#structsysc_1_1OutputScalarData_1a75c7feb1b7eb4af572352c9ccabc7960)

### Function OutputScalarData

![][public]

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

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

**Parameters**:

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

**Parameters**:

* const std::int64\_t \* **data**
* std::size\_t **size**

**Return type**:

**References**:

* [sysc::Int64](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/group__SystemCouplingParticipantAPIs.md#group__SystemCouplingParticipantAPIs_1ggad3b1c73e4a63f4d292d65f3db875e844a7280672fe5e965512085d9837dbacf7f)
* [size](#structsysc_1_1OutputScalarData_1a75c7feb1b7eb4af572352c9ccabc7960)

### Function OutputScalarData

![][public]

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

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

**Parameters**:

* **data**: Reference to STL vector of 64-bit integers.

**Parameters**:

* const std::vector\< std::int64\_t > & **data**

**Return type**:

**References**:

* [sysc::Int64](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/group__SystemCouplingParticipantAPIs.md#group__SystemCouplingParticipantAPIs_1ggad3b1c73e4a63f4d292d65f3db875e844a7280672fe5e965512085d9837dbacf7f)
* [size](#structsysc_1_1OutputScalarData_1a75c7feb1b7eb4af572352c9ccabc7960)

### Function OutputScalarData

![][public]

```cpp theme={null}
sysc::OutputScalarData::OutputScalarData()=default
```

Provide a default constructor.

**Return type**:

### Function OutputScalarData

![][public]

```cpp theme={null}
sysc::OutputScalarData::OutputScalarData(const OutputScalarData &)=default
```

Provide a copy-constructor.

**Parameters**:

* const [OutputScalarData](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/structsysc_1_1OutputScalarData.md) &

**Return type**:

**References**:

* [OutputScalarData](#structsysc_1_1OutputScalarData_1a0c295be497ed08e0e9831b54731edb06)

### Function OutputScalarData

![][public]

```cpp theme={null}
sysc::OutputScalarData::OutputScalarData(OutputScalarData &&)=default
```

Provide a move-constructor.

**Parameters**:

* [OutputScalarData](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/structsysc_1_1OutputScalarData.md) &&

**Return type**:

**References**:

* [OutputScalarData](#structsysc_1_1OutputScalarData_1a0c295be497ed08e0e9831b54731edb06)

### Function operator=

![][public]

```cpp theme={null}
OutputScalarData & sysc::OutputScalarData::operator=(const OutputScalarData &)=default
```

Provide a copy-assign operator.

**Parameters**:

* const [OutputScalarData](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/structsysc_1_1OutputScalarData.md) &

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

**References**:

* [OutputScalarData](#structsysc_1_1OutputScalarData_1a0c295be497ed08e0e9831b54731edb06)

### Function operator=

![][public]

```cpp theme={null}
OutputScalarData & sysc::OutputScalarData::operator=(OutputScalarData &&)=default
```

Provide a move-assign operator.

**Parameters**:

* [OutputScalarData](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/structsysc_1_1OutputScalarData.md) &&

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

**References**:

* [OutputScalarData](#structsysc_1_1OutputScalarData_1a0c295be497ed08e0e9831b54731edb06)

### Function OutputScalarData

![][public]

```cpp theme={null}
sysc::OutputScalarData::OutputScalarData(InputScalarData data)
```

Provide a constructor from input scalar data.

**Parameters**:

* [InputScalarData](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/structsysc_1_1InputScalarData.md) **data**

**Return type**:

**References**:

* [getData](#structsysc_1_1OutputScalarData_1a910febd1f11952e4f383b5fcc8803e2f)
* [getDataType](#structsysc_1_1OutputScalarData_1a7c8066141c2c20a9e0a1e6bbc088891c)
* [size](#structsysc_1_1OutputScalarData_1a75c7feb1b7eb4af572352c9ccabc7960)

### Function size

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

```cpp theme={null}
std::size_t sysc::OutputScalarData::size() const noexcept
```

Get the size of data.

**Return type**: std::size\_t

**Referenced by**:

* [OutputScalarData](#structsysc_1_1OutputScalarData_1a0c295be497ed08e0e9831b54731edb06)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1ab5c5cda94b99e246dc238885e8ab0a7e)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1af9ac21cfcac5b9870d58a526aaa8c10c)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a302c60d8c198a99c635fbdf9432bb9c2)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a81966c06b45df17fcb3039e8e0e6e839)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a97c1234dee15d9fc662f8f339543fdde)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1ad0f7ad860a57401cd183e8c689ef7514)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a5ed2f8ce333e14641f2254f542b97ff9)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a66895325f9405302665064f2d988f024)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a4bfbce8b70e9015ad5f8b97d9feef0c9)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1ae3fe5b13c079f1f417966373da0d0f1a)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1a8ce242f8370551d3b45586b4d292585e)
* [OutputScalarData](#structsysc_1_1OutputScalarData_1ac930e62aa94851cf608aaa2cc6346867)

### Function empty

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

```cpp theme={null}
bool sysc::OutputScalarData::empty() const noexcept
```

Check if array "data" is empty.

**Return type**: bool

### Function getDataType

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

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

Get the primitive type of data.

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

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

**Referenced by**:

* [OutputScalarData](#structsysc_1_1OutputScalarData_1ac930e62aa94851cf608aaa2cc6346867)

### Function getData

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

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

Get the pointer to the data.

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

**Return type**: const void \*

**Referenced by**:

* [OutputScalarData](#structsysc_1_1OutputScalarData_1ac930e62aa94851cf608aaa2cc6346867)

[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++"
