> ## 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::OutputVectorData 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 vector data.

`#include <OutputVectorData.hpp>`

## Public Member Functions

| Type | Name |
| - | - |
| | [OutputVectorData](#a5baa242c692e4c981534a3c4e3492ea4) (const double \*data, std::size\_t [size](#a785bd4cc2083bb890f1892c373facb33)) Provide a constructor for output vector data with compact storage. |
| | [OutputVectorData](#abed71ad1966f16f00f9596603c23446d) (const double \*data, std::size\_t [size](#a785bd4cc2083bb890f1892c373facb33), [Dimension](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga47c8e4142175574918b84d336780cc7c) dimension) Provide a constructor for 2D output vector data with compact storage. |
| | [OutputVectorData](#aef88547a7694874f7fbf7956130e0066) (const float \*data, std::size\_t [size](#a785bd4cc2083bb890f1892c373facb33)) Provide a constructor for output vector data with compact storage. |
| | [OutputVectorData](#abb58544d6fe421936606fc665e8ab548) (const float \*data, std::size\_t [size](#a785bd4cc2083bb890f1892c373facb33), [Dimension](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga47c8e4142175574918b84d336780cc7c) dimension) Provide a constructor for 2D output vector data with compact storage. |
| | [OutputVectorData](#a3f50f1e64c99ce81d0c0f3ba1df8461e) (const std::vector\< double > \&data) Provide a constructor for output vector data with compact storage. |
| | [OutputVectorData](#a5e3662f00e1637635bfc861cf22bd5c9) (const std::vector\< double > \&data, [Dimension](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga47c8e4142175574918b84d336780cc7c) dimension) Provide a constructor for 2D output vector data with compact storage. |
| | [OutputVectorData](#a030b346cb0d19cb872edc91e2e9c15e5) (const std::vector\< float > \&data) Provide a constructor for output vector data with compact storage. |
| | [OutputVectorData](#a406d3ea15f90374c6e4c2c5a4a06f98e) (const std::vector\< float > \&data, [Dimension](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga47c8e4142175574918b84d336780cc7c) dimension) Provide a constructor for 2D output vector data with compact storage. |
| | [OutputVectorData](#aebefd421a4e0e4b13715ab2cb140bc9b) (const double \*data0, const double \*data1, const double \*data2, std::size\_t [size](#a785bd4cc2083bb890f1892c373facb33)) Create an output vector data access object with split storage. |
| | [OutputVectorData](#a79b9a2aa856cebaad7eba43bba1e7b4e) (const double \*data0, const double \*data1, std::size\_t [size](#a785bd4cc2083bb890f1892c373facb33)) Create an 2D output vector data access object with split storage. |
| | [OutputVectorData](#a5d46caaf7a323c14dec7eef78370eef2) (const float \*data0, const float \*data1, const float \*data2, std::size\_t [size](#a785bd4cc2083bb890f1892c373facb33)) Create an output vector data access object with split storage. |
| | [OutputVectorData](#a36e46b23e95000c56a5672ac14e5e59c) (const float \*data0, const float \*data1, std::size\_t [size](#a785bd4cc2083bb890f1892c373facb33)) Create an 2D output vector data access object with split storage. |
| | [OutputVectorData](#ae242e3a4ecaf21e98161eeb9b76ddd96) (const std::vector\< double > \&data0, const std::vector\< double > \&data1, const std::vector\< double > \&data2) Create an output vector data access object with split storage. |
| | [OutputVectorData](#a22be92b580e7c0066b685727e37e136d) (const std::vector\< double > \&data0, const std::vector\< double > \&data1) Create an 2D output vector data access object with split storage. |
| | [OutputVectorData](#aca273abdb13cb319c0a62fd1e1a3a6de) (const std::vector\< float > \&data0, const std::vector\< float > \&data1, const std::vector\< float > \&data2) Create an output vector data access object with split storage. |
| | [OutputVectorData](#a4f336e55e4dbce34271fb0c287e7efaa) (const std::vector\< float > \&data0, const std::vector\< float > \&data1) Create an 2D output vector data access object with split storage. |
| | [OutputVectorData](#a9ec5428be66a6df185dd3ed80b0eb64e) ()=default Provide a default constructor. |
| | [OutputVectorData](#a25c63d3cb6b341e0f60e4b952340eaf8) (const [OutputVectorData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputVectorData.md) &)=default Provide a copy-constructor. |
| | [OutputVectorData](#acd5db0cd2504d1bc6c933d0108982287) ([OutputVectorData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputVectorData.md) &&)=default Provide a move-constructor. |
| [OutputVectorData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputVectorData.md) & | [operator=](#ac8771e17bc6fbfce48d354ef0b8976a9) (const [OutputVectorData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputVectorData.md) &)=default Provide a copy-assign operator. |
| [OutputVectorData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputVectorData.md) & | [operator=](#a6247d77c62de13b7a92abbf157cef85d) ([OutputVectorData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputVectorData.md) &&)=default Provide a move-assign operator. |
|  std::size\_t | [size](#a785bd4cc2083bb890f1892c373facb33) () const noexcept Get the size of data. |
|  bool | [empty](#ad6bc7562925ae28572cd41e890d95c2c) () 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](#a17e8aa13a07402bd901c14b52e4645a1) () const noexcept Get the primitive type of data. |
| bool | [isSplitVector](#a4ec5da13d8806b713d25d12f2c2385e8) () const noexcept Query whether it's a split or compact vector layout. |
| const void \* | [getData0](#a2faceb69c66ff2345844961532a3310a) () const noexcept Get pointer to data0. |
| const void \* | [getData1](#ac123a2afc965bec10383c7308045e4fd) () const noexcept Get pointer to data1. |
| const void \* | [getData2](#a280ae2fcfb4d72ba97a85e1d5ab40656) () const noexcept Get pointer to data2. |
| [Dimension](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga47c8e4142175574918b84d336780cc7c) | [getDimension](#a22aafd281edba30114f84de2d01fac6b) () const noexcept Get the Dimension object. |

## Detailed Description

Provide a class for output vector data.

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

The size is the total number of vectors, not the total number of components, i.e. if all data is stored in one contiguous array, then size is 1/3 the size of that array.

Definition at line [27](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/OutputVectorData_8hpp_source) of file [OutputVectorData.hpp](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/OutputVectorData_8hpp_source).

## Constructor & Destructor Documentation

### OutputVectorData() \[1/16]

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

Provide a constructor for output vector data with compact storage.

**Parameters**

| Name | Description |
| - | - |
| data | - pointer to the array of double-precision data. |
| size | - number of vectors. |

### OutputVectorData() \[2/16]

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

Provide a constructor for 2D output vector data with compact storage.

**Parameters**

| Name | Description |
| - | - |
| data | - pointer to the array of double-precision data. |
| size | - number of vectors. |
| dimension | - dimension of double-precision vector data. |

### OutputVectorData() \[3/16]

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

Provide a constructor for output vector data with compact storage.

**Parameters**

| Name | Description |
| - | - |
| data | - pointer to the array of single-precision data. |
| size | - number of vectors. |

### OutputVectorData() \[4/16]

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

Provide a constructor for 2D output vector data with compact storage.

**Parameters**

| Name | Description |
| - | - |
| data | - pointer to the array of single-precision data. |
| size | - number of vectors. |
| dimension | - dimension of single-precision vector data. |

### OutputVectorData() \[5/16]

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

Provide a constructor for output vector data with compact storage.

**Parameters**

| Name | Description |
| - | - |
| data | - reference to the STL vector of double-precision data. |

### OutputVectorData() \[6/16]

```cpp theme={null}
sysc::OutputVectorData::OutputVectorData(
    const std::vector< double > & data,
    Dimension dimension
)
```

Provide a constructor for 2D output vector data with compact storage.

**Parameters**

| Name | Description |
| - | - |
| data | - reference to the STL vector of double-precision data. |
| dimension | - dimension of double-precision vector data. |

### OutputVectorData() \[7/16]

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

Provide a constructor for output vector data with compact storage.

**Parameters**

| Name | Description |
| - | - |
| data | - reference to the STL vector of single-precision data. |

### OutputVectorData() \[8/16]

```cpp theme={null}
sysc::OutputVectorData::OutputVectorData(
    const std::vector< float > & data,
    Dimension dimension
)
```

Provide a constructor for 2D output vector data with compact storage.

**Parameters**

| Name | Description |
| - | - |
| data | - reference to the STL vector of single-precision data. |
| dimension | - dimension of single-precision vector data. |

### OutputVectorData() \[9/16]

```cpp theme={null}
sysc::OutputVectorData::OutputVectorData(
    const double * data0,
    const double * data1,
    const double * data2,
    std::size_t size
)
```

Create an output vector data access object with split storage.

**Parameters**

| Name | Description |
| - | - |
| data0 | - pointer to the first array of double-precision data. |
| data1 | - pointer to the second array of double-precision data. |
| data2 | - pointer to the third array of double-precision data. |
| size | - number of vectors. |

### OutputVectorData() \[10/16]

```cpp theme={null}
sysc::OutputVectorData::OutputVectorData(
    const double * data0,
    const double * data1,
    std::size_t size
)
```

Create an 2D output vector data access object with split storage.

**Parameters**

| Name | Description |
| - | - |
| data0 | - pointer to the first array of double-precision data. |
| data1 | - pointer to the second array of double-precision data. |
| size | - number of vectors. |

### OutputVectorData() \[11/16]

```cpp theme={null}
sysc::OutputVectorData::OutputVectorData(
    const float * data0,
    const float * data1,
    const float * data2,
    std::size_t size
)
```

Create an output vector data access object with split storage.

**Parameters**

| Name | Description |
| - | - |
| data0 | - pointer to the first array of single-precision data. |
| data1 | - pointer to the second array of single-precision data. |
| data2 | - pointer to the third array of single-precision data. |
| size | - number of vectors. |

### OutputVectorData() \[12/16]

```cpp theme={null}
sysc::OutputVectorData::OutputVectorData(
    const float * data0,
    const float * data1,
    std::size_t size
)
```

Create an 2D output vector data access object with split storage.

**Parameters**

| Name | Description |
| - | - |
| data0 | - pointer to the first array of single-precision data. |
| data1 | - pointer to the second array of single-precision data. |
| size | - number of vectors. |

### OutputVectorData() \[13/16]

```cpp theme={null}
sysc::OutputVectorData::OutputVectorData(
    const std::vector< double > & data0,
    const std::vector< double > & data1,
    const std::vector< double > & data2
)
```

Create an output vector data access object with split storage.

**Parameters**

| Name | Description |
| - | - |
| data0 | - reference to the first STL vector of double-precision data. |
| data1 | - reference to the second STL vector of double-precision data. |
| data2 | - reference to the third STL vector of double-precision data. |

### OutputVectorData() \[14/16]

```cpp theme={null}
sysc::OutputVectorData::OutputVectorData(
    const std::vector< double > & data0,
    const std::vector< double > & data1
)
```

Create an 2D output vector data access object with split storage.

**Parameters**

| Name | Description |
| - | - |
| data0 | - reference to the first STL vector of double-precision data. |
| data1 | - reference to the second STL vector of double-precision data. |

### OutputVectorData() \[15/16]

```cpp theme={null}
sysc::OutputVectorData::OutputVectorData(
    const std::vector< float > & data0,
    const std::vector< float > & data1,
    const std::vector< float > & data2
)
```

Create an output vector data access object with split storage.

**Parameters**

| Name | Description |
| - | - |
| data0 | - reference to the first STL vector of single-precision data. |
| data1 | - reference to the second STL vector of single-precision data. |
| data2 | - reference to the third STL vector of single-precision data. |

### OutputVectorData() \[16/16]

```cpp theme={null}
sysc::OutputVectorData::OutputVectorData(
    const std::vector< float > & data0,
    const std::vector< float > & data1
)
```

Create an 2D output vector data access object with split storage.

**Parameters**

| Name | Description |
| - | - |
| data0 | - reference to the first STL vector of single-precision data. |
| data1 | - reference to the second STL vector of single-precision data. |

## Member Function Documentation

### getData0()

```cpp theme={null}
const void* sysc::OutputVectorData::getData0() const
```

`noexcept`

Get pointer to data0.

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

### getData1()

```cpp theme={null}
const void* sysc::OutputVectorData::getData1() const
```

`noexcept`

Get pointer to data1.

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

### getData2()

```cpp theme={null}
const void* sysc::OutputVectorData::getData2() const
```

`noexcept`

Get pointer to data2.

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

### getDataType()

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

`noexcept`

Get the primitive type of data.

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

### getDimension()

```cpp theme={null}
Dimension sysc::OutputVectorData::getDimension() const
```

`noexcept`

Get the Dimension object.

**Returns**

const Dimension

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

### isSplitVector()

```cpp theme={null}
bool sysc::OutputVectorData::isSplitVector() const
```

`noexcept`

Query whether it's a split or compact vector layout.

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