    

 ## On this page

  

 

 # sysc::OutputVectorData Class Reference

 Last update: 17.07.2025 

Provide a class for output vector data. [More...](classsysc_1_1OutputVectorData.xhtml#details)

`#include <<a class="el" href="OutputVectorData_8hpp_source.xhtml">OutputVectorData.hpp</a>>`

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

 [OutputVectorData](classsysc_1_1OutputVectorData.xhtml#a5baa242c692e4c981534a3c4e3492ea4) (const double \*data, std::size\_t [size](classsysc_1_1OutputVectorData.xhtml#a785bd4cc2083bb890f1892c373facb33)) Provide a constructor for output vector data with compact storage.   
  [OutputVectorData](classsysc_1_1OutputVectorData.xhtml#abed71ad1966f16f00f9596603c23446d) (const double \*data, std::size\_t [size](classsysc_1_1OutputVectorData.xhtml#a785bd4cc2083bb890f1892c373facb33), [Dimension](group__SystemCouplingParticipantAPIs.xhtml#ga47c8e4142175574918b84d336780cc7c) dimension) Provide a constructor for 2D output vector data with compact storage.   
  [OutputVectorData](classsysc_1_1OutputVectorData.xhtml#aef88547a7694874f7fbf7956130e0066) (const float \*data, std::size\_t [size](classsysc_1_1OutputVectorData.xhtml#a785bd4cc2083bb890f1892c373facb33)) Provide a constructor for output vector data with compact storage.   
  [OutputVectorData](classsysc_1_1OutputVectorData.xhtml#abb58544d6fe421936606fc665e8ab548) (const float \*data, std::size\_t [size](classsysc_1_1OutputVectorData.xhtml#a785bd4cc2083bb890f1892c373facb33), [Dimension](group__SystemCouplingParticipantAPIs.xhtml#ga47c8e4142175574918b84d336780cc7c) dimension) Provide a constructor for 2D output vector data with compact storage.   
  [OutputVectorData](classsysc_1_1OutputVectorData.xhtml#a3f50f1e64c99ce81d0c0f3ba1df8461e) (const std::vector&lt; double &gt; &amp;data) Provide a constructor for output vector data with compact storage.   
  [OutputVectorData](classsysc_1_1OutputVectorData.xhtml#a5e3662f00e1637635bfc861cf22bd5c9) (const std::vector&lt; double &gt; &amp;data, [Dimension](group__SystemCouplingParticipantAPIs.xhtml#ga47c8e4142175574918b84d336780cc7c) dimension) Provide a constructor for 2D output vector data with compact storage.   
  [OutputVectorData](classsysc_1_1OutputVectorData.xhtml#a030b346cb0d19cb872edc91e2e9c15e5) (const std::vector&lt; float &gt; &amp;data) Provide a constructor for output vector data with compact storage.   
  [OutputVectorData](classsysc_1_1OutputVectorData.xhtml#a406d3ea15f90374c6e4c2c5a4a06f98e) (const std::vector&lt; float &gt; &amp;data, [Dimension](group__SystemCouplingParticipantAPIs.xhtml#ga47c8e4142175574918b84d336780cc7c) dimension) Provide a constructor for 2D output vector data with compact storage.   
  [OutputVectorData](classsysc_1_1OutputVectorData.xhtml#aebefd421a4e0e4b13715ab2cb140bc9b) (const double \*data0, const double \*data1, const double \*data2, std::size\_t [size](classsysc_1_1OutputVectorData.xhtml#a785bd4cc2083bb890f1892c373facb33)) Create an output vector data access object with split storage.   
  [OutputVectorData](classsysc_1_1OutputVectorData.xhtml#a79b9a2aa856cebaad7eba43bba1e7b4e) (const double \*data0, const double \*data1, std::size\_t [size](classsysc_1_1OutputVectorData.xhtml#a785bd4cc2083bb890f1892c373facb33)) Create an 2D output vector data access object with split storage.   
  [OutputVectorData](classsysc_1_1OutputVectorData.xhtml#a5d46caaf7a323c14dec7eef78370eef2) (const float \*data0, const float \*data1, const float \*data2, std::size\_t [size](classsysc_1_1OutputVectorData.xhtml#a785bd4cc2083bb890f1892c373facb33)) Create an output vector data access object with split storage.   
  [OutputVectorData](classsysc_1_1OutputVectorData.xhtml#a36e46b23e95000c56a5672ac14e5e59c) (const float \*data0, const float \*data1, std::size\_t [size](classsysc_1_1OutputVectorData.xhtml#a785bd4cc2083bb890f1892c373facb33)) Create an 2D output vector data access object with split storage.   
  [OutputVectorData](classsysc_1_1OutputVectorData.xhtml#ae242e3a4ecaf21e98161eeb9b76ddd96) (const std::vector&lt; double &gt; &amp;data0, const std::vector&lt; double &gt; &amp;data1, const std::vector&lt; double &gt; &amp;data2) Create an output vector data access object with split storage.   
  [OutputVectorData](classsysc_1_1OutputVectorData.xhtml#a22be92b580e7c0066b685727e37e136d) (const std::vector&lt; double &gt; &amp;data0, const std::vector&lt; double &gt; &amp;data1) Create an 2D output vector data access object with split storage.   
  [OutputVectorData](classsysc_1_1OutputVectorData.xhtml#aca273abdb13cb319c0a62fd1e1a3a6de) (const std::vector&lt; float &gt; &amp;data0, const std::vector&lt; float &gt; &amp;data1, const std::vector&lt; float &gt; &amp;data2) Create an output vector data access object with split storage.   
  [OutputVectorData](classsysc_1_1OutputVectorData.xhtml#a4f336e55e4dbce34271fb0c287e7efaa) (const std::vector&lt; float &gt; &amp;data0, const std::vector&lt; float &gt; &amp;data1) Create an 2D output vector data access object with split storage.   
 <a id="a9ec5428be66a6df185dd3ed80b0eb64e" name="a9ec5428be66a6df185dd3ed80b0eb64e"></a> **OutputVectorData** ()=default Provide a default constructor.   
 <a id="a25c63d3cb6b341e0f60e4b952340eaf8" name="a25c63d3cb6b341e0f60e4b952340eaf8"></a> **OutputVectorData** (const [OutputVectorData](classsysc_1_1OutputVectorData.xhtml) &amp;)=default Provide a copy-constructor.   
 <a id="acd5db0cd2504d1bc6c933d0108982287" name="acd5db0cd2504d1bc6c933d0108982287"></a> **OutputVectorData** ([OutputVectorData](classsysc_1_1OutputVectorData.xhtml) &amp;&amp;)=default Provide a move-constructor.   
 <a id="a61b2ae2e8bc599f9f474004bf604f7fb" name="a61b2ae2e8bc599f9f474004bf604f7fb"></a>[OutputVectorData](classsysc_1_1OutputVectorData.xhtml) &amp; **operator=** (const [OutputVectorData](classsysc_1_1OutputVectorData.xhtml) &amp;)=default Provide a copy-assign operator.   
 <a id="aad1840875a905047a6c63450d20c38c6" name="aad1840875a905047a6c63450d20c38c6"></a>[OutputVectorData](classsysc_1_1OutputVectorData.xhtml) &amp; **operator=** ([OutputVectorData](classsysc_1_1OutputVectorData.xhtml) &amp;&amp;)=default Provide a move-assign operator.   
 <a id="a785bd4cc2083bb890f1892c373facb33" name="a785bd4cc2083bb890f1892c373facb33"></a>std::size\_t **size** () const noexcept Get the size of data.   
 <a id="ad6bc7562925ae28572cd41e890d95c2c" name="ad6bc7562925ae28572cd41e890d95c2c"></a>bool **empty** () const noexcept Check if array "data" is empty.   
 [sysc::PrimitiveType](group__SystemCouplingParticipantAPIs.xhtml#gad3b1c73e4a63f4d292d65f3db875e844) [getDataType](classsysc_1_1OutputVectorData.xhtml#a17e8aa13a07402bd901c14b52e4645a1) () const noexcept Get the primitive type of data.   
 bool [isSplitVector](classsysc_1_1OutputVectorData.xhtml#a4ec5da13d8806b713d25d12f2c2385e8) () const noexcept Query whether it's a split or compact vector layout.   
 const void \* [getData0](classsysc_1_1OutputVectorData.xhtml#a5c79a1d5de5cde56ea711a90ac002837) () const noexcept Get pointer to data0.   
 const void \* [getData1](classsysc_1_1OutputVectorData.xhtml#a2da1bfa2a56f85194af9140fcdfb03bc) () const noexcept Get pointer to data1.   
 const void \* [getData2](classsysc_1_1OutputVectorData.xhtml#a72f11339f721dd4ea8ca1dfb518d0969) () const noexcept Get pointer to data2.   
 [Dimension](group__SystemCouplingParticipantAPIs.xhtml#ga47c8e4142175574918b84d336780cc7c) [getDimension](classsysc_1_1OutputVectorData.xhtml#a22aafd281edba30114f84de2d01fac6b) () const noexcept Get the Dimension object.   
 <a id="details" name="details"></a>## 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](OutputVectorData_8hpp_source.xhtml#l00027) of file [OutputVectorData.hpp](OutputVectorData_8hpp_source.xhtml).



## Constructor &amp; Destructor Documentation

<a id="a5baa242c692e4c981534a3c4e3492ea4" name="a5baa242c692e4c981534a3c4e3492ea4"></a>## [◆ ](#a5baa242c692e4c981534a3c4e3492ea4)OutputVectorData() \[1/16\]

 sysc::OutputVectorData::OutputVectorData  ( const double \*  *data*,    std::size\_t  *size*   ) 

Provide a constructor for output vector data with compact storage.

Parameters data- pointer to the array of double-precision data. size- number of vectors. 



<a id="abed71ad1966f16f00f9596603c23446d" name="abed71ad1966f16f00f9596603c23446d"></a>## [◆ ](#abed71ad1966f16f00f9596603c23446d)OutputVectorData() \[2/16\]

 sysc::OutputVectorData::OutputVectorData  ( const double \*  *data*,    std::size\_t  *size*,    [Dimension](group__SystemCouplingParticipantAPIs.xhtml#ga47c8e4142175574918b84d336780cc7c)  *dimension*   ) 

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

Parameters data- pointer to the array of double-precision data. size- number of vectors. dimension- dimension of double-precision vector data. 



<a id="aef88547a7694874f7fbf7956130e0066" name="aef88547a7694874f7fbf7956130e0066"></a>## [◆ ](#aef88547a7694874f7fbf7956130e0066)OutputVectorData() \[3/16\]

 sysc::OutputVectorData::OutputVectorData  ( const float \*  *data*,    std::size\_t  *size*   ) 

Provide a constructor for output vector data with compact storage.

Parameters data- pointer to the array of single-precision data. size- number of vectors. 



<a id="abb58544d6fe421936606fc665e8ab548" name="abb58544d6fe421936606fc665e8ab548"></a>## [◆ ](#abb58544d6fe421936606fc665e8ab548)OutputVectorData() \[4/16\]

 sysc::OutputVectorData::OutputVectorData  ( const float \*  *data*,    std::size\_t  *size*,    [Dimension](group__SystemCouplingParticipantAPIs.xhtml#ga47c8e4142175574918b84d336780cc7c)  *dimension*   ) 

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

Parameters data- pointer to the array of single-precision data. size- number of vectors. dimension- dimension of single-precision vector data. 



<a id="a3f50f1e64c99ce81d0c0f3ba1df8461e" name="a3f50f1e64c99ce81d0c0f3ba1df8461e"></a>## [◆ ](#a3f50f1e64c99ce81d0c0f3ba1df8461e)OutputVectorData() \[5/16\]

 sysc::OutputVectorData::OutputVectorData  ( const std::vector&lt; double &gt; &amp;  *data*) 

Provide a constructor for output vector data with compact storage.

Parameters data- reference to the STL vector of double-precision data. 



<a id="a5e3662f00e1637635bfc861cf22bd5c9" name="a5e3662f00e1637635bfc861cf22bd5c9"></a>## [◆ ](#a5e3662f00e1637635bfc861cf22bd5c9)OutputVectorData() \[6/16\]

 sysc::OutputVectorData::OutputVectorData  ( const std::vector&lt; double &gt; &amp;  *data*,    [Dimension](group__SystemCouplingParticipantAPIs.xhtml#ga47c8e4142175574918b84d336780cc7c)  *dimension*   ) 

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

Parameters data- reference to the STL vector of double-precision data. dimension- dimension of double-precision vector data. 



<a id="a030b346cb0d19cb872edc91e2e9c15e5" name="a030b346cb0d19cb872edc91e2e9c15e5"></a>## [◆ ](#a030b346cb0d19cb872edc91e2e9c15e5)OutputVectorData() \[7/16\]

 sysc::OutputVectorData::OutputVectorData  ( const std::vector&lt; float &gt; &amp;  *data*) 

Provide a constructor for output vector data with compact storage.

Parameters data- reference to the STL vector of single-precision data. 



<a id="a406d3ea15f90374c6e4c2c5a4a06f98e" name="a406d3ea15f90374c6e4c2c5a4a06f98e"></a>## [◆ ](#a406d3ea15f90374c6e4c2c5a4a06f98e)OutputVectorData() \[8/16\]

 sysc::OutputVectorData::OutputVectorData  ( const std::vector&lt; float &gt; &amp;  *data*,    [Dimension](group__SystemCouplingParticipantAPIs.xhtml#ga47c8e4142175574918b84d336780cc7c)  *dimension*   ) 

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

Parameters data- reference to the STL vector of single-precision data. dimension- dimension of single-precision vector data. 



<a id="aebefd421a4e0e4b13715ab2cb140bc9b" name="aebefd421a4e0e4b13715ab2cb140bc9b"></a>## [◆ ](#aebefd421a4e0e4b13715ab2cb140bc9b)OutputVectorData() \[9/16\]

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



<a id="a79b9a2aa856cebaad7eba43bba1e7b4e" name="a79b9a2aa856cebaad7eba43bba1e7b4e"></a>## [◆ ](#a79b9a2aa856cebaad7eba43bba1e7b4e)OutputVectorData() \[10/16\]

 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 data0- pointer to the first array of double-precision data. data1- pointer to the second array of double-precision data. size- number of vectors. 



<a id="a5d46caaf7a323c14dec7eef78370eef2" name="a5d46caaf7a323c14dec7eef78370eef2"></a>## [◆ ](#a5d46caaf7a323c14dec7eef78370eef2)OutputVectorData() \[11/16\]

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



<a id="a36e46b23e95000c56a5672ac14e5e59c" name="a36e46b23e95000c56a5672ac14e5e59c"></a>## [◆ ](#a36e46b23e95000c56a5672ac14e5e59c)OutputVectorData() \[12/16\]

 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 data0- pointer to the first array of single-precision data. data1- pointer to the second array of single-precision data. size- number of vectors. 



<a id="ae242e3a4ecaf21e98161eeb9b76ddd96" name="ae242e3a4ecaf21e98161eeb9b76ddd96"></a>## [◆ ](#ae242e3a4ecaf21e98161eeb9b76ddd96)OutputVectorData() \[13/16\]

 sysc::OutputVectorData::OutputVectorData  ( const std::vector&lt; double &gt; &amp;  *data0*,    const std::vector&lt; double &gt; &amp;  *data1*,    const std::vector&lt; double &gt; &amp;  *data2*   ) 

Create an output vector data access object with split storage.

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



<a id="a22be92b580e7c0066b685727e37e136d" name="a22be92b580e7c0066b685727e37e136d"></a>## [◆ ](#a22be92b580e7c0066b685727e37e136d)OutputVectorData() \[14/16\]

 sysc::OutputVectorData::OutputVectorData  ( const std::vector&lt; double &gt; &amp;  *data0*,    const std::vector&lt; double &gt; &amp;  *data1*   ) 

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

Parameters data0- reference to the first STL vector of double-precision data. data1- reference to the second STL vector of double-precision data. 



<a id="aca273abdb13cb319c0a62fd1e1a3a6de" name="aca273abdb13cb319c0a62fd1e1a3a6de"></a>## [◆ ](#aca273abdb13cb319c0a62fd1e1a3a6de)OutputVectorData() \[15/16\]

 sysc::OutputVectorData::OutputVectorData  ( const std::vector&lt; float &gt; &amp;  *data0*,    const std::vector&lt; float &gt; &amp;  *data1*,    const std::vector&lt; float &gt; &amp;  *data2*   ) 

Create an output vector data access object with split storage.

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



<a id="a4f336e55e4dbce34271fb0c287e7efaa" name="a4f336e55e4dbce34271fb0c287e7efaa"></a>## [◆ ](#a4f336e55e4dbce34271fb0c287e7efaa)OutputVectorData() \[16/16\]

 sysc::OutputVectorData::OutputVectorData  ( const std::vector&lt; float &gt; &amp;  *data0*,    const std::vector&lt; float &gt; &amp;  *data1*   ) 

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

Parameters 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

<a id="a5c79a1d5de5cde56ea711a90ac002837" name="a5c79a1d5de5cde56ea711a90ac002837"></a>## [◆ ](#a5c79a1d5de5cde56ea711a90ac002837)getData0()

 const void \* sysc::OutputVectorData::getData0  ( )  const  noexcept 

Get pointer to data0.

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





<a id="a2da1bfa2a56f85194af9140fcdfb03bc" name="a2da1bfa2a56f85194af9140fcdfb03bc"></a>## [◆ ](#a2da1bfa2a56f85194af9140fcdfb03bc)getData1()

 const void \* sysc::OutputVectorData::getData1  ( )  const  noexcept 

Get pointer to data1.

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





<a id="a72f11339f721dd4ea8ca1dfb518d0969" name="a72f11339f721dd4ea8ca1dfb518d0969"></a>## [◆ ](#a72f11339f721dd4ea8ca1dfb518d0969)getData2()

 const void \* sysc::OutputVectorData::getData2  ( )  const  noexcept 

Get pointer to data2.

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





<a id="a17e8aa13a07402bd901c14b52e4645a1" name="a17e8aa13a07402bd901c14b52e4645a1"></a>## [◆ ](#a17e8aa13a07402bd901c14b52e4645a1)getDataType()

 [sysc::PrimitiveType](group__SystemCouplingParticipantAPIs.xhtml#gad3b1c73e4a63f4d292d65f3db875e844) sysc::OutputVectorData::getDataType  ( )  const  noexcept 

Get the primitive type of data.

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





<a id="a22aafd281edba30114f84de2d01fac6b" name="a22aafd281edba30114f84de2d01fac6b"></a>## [◆ ](#a22aafd281edba30114f84de2d01fac6b)getDimension()

 [Dimension](group__SystemCouplingParticipantAPIs.xhtml#ga47c8e4142175574918b84d336780cc7c) sysc::OutputVectorData::getDimension  ( )  const  noexcept 

Get the Dimension object.

Returnsconst Dimension References [sysc::Double](CommonTypes_8hpp_source.xhtml#l00221).





<a id="a4ec5da13d8806b713d25d12f2c2385e8" name="a4ec5da13d8806b713d25d12f2c2385e8"></a>## [◆ ](#a4ec5da13d8806b713d25d12f2c2385e8)isSplitVector()

 bool sysc::OutputVectorData::isSplitVector  ( )  const  noexcept 

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

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