    

 ## On this page

  

 

 # InputVectorData

 Last update: 17.07.2025 

<a id="l00001" name="l00001"></a> 1/\*

<a id="l00002" name="l00002"></a> 2\* Copyright ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.

<a id="l00003" name="l00003"></a> 3\*/

<a id="l00004" name="l00004"></a> 4 

<a id="l00005" name="l00005"></a> 5\#pragma once

<a id="l00006" name="l00006"></a> 6 

<a id="l00007" name="l00007"></a> 7\#include "SystemCouplingParticipant/LibraryType.hpp"

<a id="l00008" name="l00008"></a> 8 

<a id="l00009" name="l00009"></a> 9\#include "SystemCouplingParticipant/CommonTypes.hpp"

<a id="l00010" name="l00010"></a> 10 

<a id="l00011" name="l00011"></a> 11\#include &lt;cstddef&gt;

<a id="l00012" name="l00012"></a> 12\#include &lt;vector&gt;

<a id="l00013" name="l00013"></a> 13 

<a id="l00014" name="l00014"></a> 14namespace sysc {

<a id="l00015" name="l00015"></a> 15 

<a id="l00027" name="l00027"></a>[ 27](classsysc_1_1InputVectorData.xhtml)class SYSTEM_COUPLING_PARTICIPANT_DLL [InputVectorData](classsysc_1_1InputVectorData.xhtml) {

<a id="l00028" name="l00028"></a> 28public:

<a id="l00036" name="l00036"></a>[ 36](classsysc_1_1InputVectorData.xhtml#a9576407cff04f685f890b03512a22f8d) [InputVectorData](classsysc_1_1InputVectorData.xhtml#a9576407cff04f685f890b03512a22f8d)(double* data, std::size_t size);

<a id="l00037" name="l00037"></a> 37 

<a id="l00045" name="l00045"></a>[ 45](classsysc_1_1InputVectorData.xhtml#a313b74bc43ee9519a03c7351d5a1b9e9) [InputVectorData](classsysc_1_1InputVectorData.xhtml#a313b74bc43ee9519a03c7351d5a1b9e9)(double* data, std::size_t size, [Dimension](group__SystemCouplingParticipantAPIs.xhtml#ga47c8e4142175574918b84d336780cc7c) dimension);

<a id="l00046" name="l00046"></a> 46 

<a id="l00054" name="l00054"></a>[ 54](classsysc_1_1InputVectorData.xhtml#a353712571f18e0d9c9113a6279fd4bd9) [InputVectorData](classsysc_1_1InputVectorData.xhtml#a353712571f18e0d9c9113a6279fd4bd9)(float* data, std::size_t size);

<a id="l00055" name="l00055"></a> 55 

<a id="l00063" name="l00063"></a>[ 63](classsysc_1_1InputVectorData.xhtml#a2b7ad10e29d9b8f9d5cc19bcb4880852) [InputVectorData](classsysc_1_1InputVectorData.xhtml#a2b7ad10e29d9b8f9d5cc19bcb4880852)(float* data, std::size_t size, [Dimension](group__SystemCouplingParticipantAPIs.xhtml#ga47c8e4142175574918b84d336780cc7c) dimension);

<a id="l00064" name="l00064"></a> 64 

<a id="l00071" name="l00071"></a>[ 71](classsysc_1_1InputVectorData.xhtml#ab859e8fda9352a223489fc9710ebc176) [InputVectorData](classsysc_1_1InputVectorData.xhtml#ab859e8fda9352a223489fc9710ebc176)(std::vector&lt;double&gt;&amp; data);

<a id="l00072" name="l00072"></a> 72 

<a id="l00079" name="l00079"></a>[ 79](classsysc_1_1InputVectorData.xhtml#a16a3d28c7a9176077b094d0c090ab8e8) [InputVectorData](classsysc_1_1InputVectorData.xhtml#a16a3d28c7a9176077b094d0c090ab8e8)(std::vector&lt;double&gt;&amp; data, [Dimension](group__SystemCouplingParticipantAPIs.xhtml#ga47c8e4142175574918b84d336780cc7c) dimension);

<a id="l00080" name="l00080"></a> 80 

<a id="l00087" name="l00087"></a>[ 87](classsysc_1_1InputVectorData.xhtml#a93f8cbc6fd62623d017dd402e75ea60e) [InputVectorData](classsysc_1_1InputVectorData.xhtml#a93f8cbc6fd62623d017dd402e75ea60e)(std::vector&lt;float&gt;&amp; data);

<a id="l00088" name="l00088"></a> 88 

<a id="l00095" name="l00095"></a>[ 95](classsysc_1_1InputVectorData.xhtml#aa49d763df2ced8b08b5f96d0fd581815) [InputVectorData](classsysc_1_1InputVectorData.xhtml#aa49d763df2ced8b08b5f96d0fd581815)(std::vector&lt;float&gt;&amp; data, [Dimension](group__SystemCouplingParticipantAPIs.xhtml#ga47c8e4142175574918b84d336780cc7c) dimension);

<a id="l00096" name="l00096"></a> 96 

<a id="l00107" name="l00107"></a>[ 107](classsysc_1_1InputVectorData.xhtml#ae46ff595736820fb92cb12797f05d62a) [InputVectorData](classsysc_1_1InputVectorData.xhtml#ae46ff595736820fb92cb12797f05d62a)(

<a id="l00108" name="l00108"></a> 108 double* data0,

<a id="l00109" name="l00109"></a> 109 double* data1,

<a id="l00110" name="l00110"></a> 110 double* data2,

<a id="l00111" name="l00111"></a> 111 std::size_t size);

<a id="l00112" name="l00112"></a> 112 

<a id="l00121" name="l00121"></a>[ 121](classsysc_1_1InputVectorData.xhtml#a34e2f29605de1f3d218f61f305231f37) [InputVectorData](classsysc_1_1InputVectorData.xhtml#a34e2f29605de1f3d218f61f305231f37)(

<a id="l00122" name="l00122"></a> 122 double* data0,

<a id="l00123" name="l00123"></a> 123 double* data1,

<a id="l00124" name="l00124"></a> 124 std::size_t size);

<a id="l00125" name="l00125"></a> 125 

<a id="l00136" name="l00136"></a>[ 136](classsysc_1_1InputVectorData.xhtml#a6290f72e042d38bee53f671eaeef382b) [InputVectorData](classsysc_1_1InputVectorData.xhtml#a6290f72e042d38bee53f671eaeef382b)(

<a id="l00137" name="l00137"></a> 137 float* data0,

<a id="l00138" name="l00138"></a> 138 float* data1,

<a id="l00139" name="l00139"></a> 139 float* data2,

<a id="l00140" name="l00140"></a> 140 std::size_t size);

<a id="l00141" name="l00141"></a> 141 

<a id="l00150" name="l00150"></a>[ 150](classsysc_1_1InputVectorData.xhtml#a5e7ec5d5f55d26d79f5beb5f492e8173) [InputVectorData](classsysc_1_1InputVectorData.xhtml#a5e7ec5d5f55d26d79f5beb5f492e8173)(

<a id="l00151" name="l00151"></a> 151 float* data0,

<a id="l00152" name="l00152"></a> 152 float* data1,

<a id="l00153" name="l00153"></a> 153 std::size_t size);

<a id="l00154" name="l00154"></a> 154 

<a id="l00164" name="l00164"></a>[ 164](classsysc_1_1InputVectorData.xhtml#ad682d56f49fc69628ad18410cefad197) [InputVectorData](classsysc_1_1InputVectorData.xhtml#ad682d56f49fc69628ad18410cefad197)(

<a id="l00165" name="l00165"></a> 165 std::vector&lt;double&gt;&amp; data0,

<a id="l00166" name="l00166"></a> 166 std::vector&lt;double&gt;&amp; data1,

<a id="l00167" name="l00167"></a> 167 std::vector&lt;double&gt;&amp; data2);

<a id="l00168" name="l00168"></a> 168 

<a id="l00176" name="l00176"></a>[ 176](classsysc_1_1InputVectorData.xhtml#a4fdc6e50b3aa55afc3375e9e8a25589f) [InputVectorData](classsysc_1_1InputVectorData.xhtml#a4fdc6e50b3aa55afc3375e9e8a25589f)(

<a id="l00177" name="l00177"></a> 177 std::vector&lt;double&gt;&amp; data0,

<a id="l00178" name="l00178"></a> 178 std::vector&lt;double&gt;&amp; data1);

<a id="l00179" name="l00179"></a> 179 

<a id="l00189" name="l00189"></a>[ 189](classsysc_1_1InputVectorData.xhtml#a6e884069f0f4f3cb1e58d3ee6894407f) [InputVectorData](classsysc_1_1InputVectorData.xhtml#a6e884069f0f4f3cb1e58d3ee6894407f)(

<a id="l00190" name="l00190"></a> 190 std::vector&lt;float&gt;&amp; data0,

<a id="l00191" name="l00191"></a> 191 std::vector&lt;float&gt;&amp; data1,

<a id="l00192" name="l00192"></a> 192 std::vector&lt;float&gt;&amp; data2);

<a id="l00193" name="l00193"></a> 193 

<a id="l00201" name="l00201"></a>[ 201](classsysc_1_1InputVectorData.xhtml#adeceff37584427f9b487228ed1619ad8) [InputVectorData](classsysc_1_1InputVectorData.xhtml#adeceff37584427f9b487228ed1619ad8)(

<a id="l00202" name="l00202"></a> 202 std::vector&lt;float&gt;&amp; data0,

<a id="l00203" name="l00203"></a> 203 std::vector&lt;float&gt;&amp; data1);

<a id="l00204" name="l00204"></a> 204 

<a id="l00206" name="l00206"></a>[ 206](classsysc_1_1InputVectorData.xhtml#aee6e8ae9cc5c83b4f016a68b6825643d) [InputVectorData](classsysc_1_1InputVectorData.xhtml#aee6e8ae9cc5c83b4f016a68b6825643d)() = default;

<a id="l00207" name="l00207"></a> 207 

<a id="l00209" name="l00209"></a>[ 209](classsysc_1_1InputVectorData.xhtml#a9c493ca8719b46214215275adcaf8a6d) [InputVectorData](classsysc_1_1InputVectorData.xhtml#a9c493ca8719b46214215275adcaf8a6d)(const [InputVectorData](classsysc_1_1InputVectorData.xhtml)&amp;) = default;

<a id="l00210" name="l00210"></a> 210 

<a id="l00212" name="l00212"></a>[ 212](classsysc_1_1InputVectorData.xhtml#adf89794c1d53ceec3ed34f6c4820530b) [InputVectorData](classsysc_1_1InputVectorData.xhtml#adf89794c1d53ceec3ed34f6c4820530b)([InputVectorData](classsysc_1_1InputVectorData.xhtml)&amp;&amp;) = default;

<a id="l00213" name="l00213"></a> 213 

<a id="l00215" name="l00215"></a>[ 215](classsysc_1_1InputVectorData.xhtml#a0bda3f6d27e251205e1c5b7e99e9f9d8) [InputVectorData](classsysc_1_1InputVectorData.xhtml)&amp; [operator=](classsysc_1_1InputVectorData.xhtml#a0bda3f6d27e251205e1c5b7e99e9f9d8)(const [InputVectorData](classsysc_1_1InputVectorData.xhtml)&amp;) = default;

<a id="l00216" name="l00216"></a> 216 

<a id="l00218" name="l00218"></a>[ 218](classsysc_1_1InputVectorData.xhtml#a566537c59f11967283a4fd253649ee9f) [InputVectorData](classsysc_1_1InputVectorData.xhtml)&amp; [operator=](classsysc_1_1InputVectorData.xhtml#a566537c59f11967283a4fd253649ee9f)([InputVectorData](classsysc_1_1InputVectorData.xhtml)&amp;&amp;) = default;

<a id="l00219" name="l00219"></a> 219 

<a id="l00221" name="l00221"></a>[ 221](classsysc_1_1InputVectorData.xhtml#a421e44762b642930822a119ae59751eb) std::size_t [size](classsysc_1_1InputVectorData.xhtml#a421e44762b642930822a119ae59751eb)() const noexcept;

<a id="l00222" name="l00222"></a> 222 

<a id="l00224" name="l00224"></a>[ 224](classsysc_1_1InputVectorData.xhtml#a4ce74ce70cf4f3b150392bc2e622f23e) bool empty() const noexcept;

<a id="l00225" name="l00225"></a> 225 

<a id="l00230" name="l00230"></a>[ 230](classsysc_1_1InputVectorData.xhtml#a36c2f1ad1395f88faf59a1b6da0db099) sysc::[PrimitiveType](group__SystemCouplingParticipantAPIs.xhtml#gad3b1c73e4a63f4d292d65f3db875e844) getDataType() const noexcept;

<a id="l00231" name="l00231"></a> 231 

<a id="l00237" name="l00237"></a>[ 237](classsysc_1_1InputVectorData.xhtml#a8b96a950634f0ed4dae6468e88319e53) bool isSplitVector() const noexcept;

<a id="l00238" name="l00238"></a> 238 

<a id="l00244" name="l00244"></a>[ 244](classsysc_1_1InputVectorData.xhtml#a240b4fe8f40171284dab0e91fea7e473) void* getData0() const noexcept;

<a id="l00245" name="l00245"></a> 245 

<a id="l00251" name="l00251"></a>[ 251](classsysc_1_1InputVectorData.xhtml#ac224fdb63436e849363881e75fa7dd01) void* getData1() const noexcept;

<a id="l00252" name="l00252"></a> 252 

<a id="l00258" name="l00258"></a>[ 258](classsysc_1_1InputVectorData.xhtml#a2d48a4becc9e840618fe6245d1ce9ef0) void* getData2() const noexcept;

<a id="l00259" name="l00259"></a> 259 

<a id="l00265" name="l00265"></a>[ 265](classsysc_1_1InputVectorData.xhtml#a04a85b9650fe4c0b8f4e3ecbad088c52) [Dimension](group__SystemCouplingParticipantAPIs.xhtml#ga47c8e4142175574918b84d336780cc7c) getDimension() const noexcept;

<a id="l00266" name="l00266"></a> 266 

<a id="l00267" name="l00267"></a> 267private:

<a id="l00268" name="l00268"></a> 268 sysc::[PrimitiveType](group__SystemCouplingParticipantAPIs.xhtml#gad3b1c73e4a63f4d292d65f3db875e844) m_dataType{[sysc::Double](group__SystemCouplingParticipantAPIs.xhtml#ggad3b1c73e4a63f4d292d65f3db875e844a29843d2c1bb5760f768dcc066dac1ac1)};

<a id="l00269" name="l00269"></a> 269 bool m_isSplitVector{false};

<a id="l00270" name="l00270"></a> 270 void* m_data0{nullptr};

<a id="l00271" name="l00271"></a> 271 void* m_data1{nullptr};

<a id="l00272" name="l00272"></a> 272 void* m_data2{nullptr};

<a id="l00273" name="l00273"></a> 273 std::size_t m_size{0};

<a id="l00274" name="l00274"></a> 274 [Dimension](group__SystemCouplingParticipantAPIs.xhtml#ga47c8e4142175574918b84d336780cc7c) m_dimension{Dimension::D3};

<a id="l00275" name="l00275"></a> 275};



<a id="l00276" name="l00276"></a> 276 

<a id="l00277" name="l00277"></a> 277} // namespace sysc

[sysc::InputVectorData](classsysc_1_1InputVectorData.xhtml)

Provide a class for input vector data.

**Definition** [InputVectorData.hpp:27](InputVectorData_8hpp_source.xhtml#l00027)



[sysc::InputVectorData::operator=](classsysc_1_1InputVectorData.xhtml#a0bda3f6d27e251205e1c5b7e99e9f9d8)

InputVectorData &amp; operator=(const InputVectorData &amp;)=default

Provide a copy-assign operator.



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#a16a3d28c7a9176077b094d0c090ab8e8)

InputVectorData(std::vector&lt; double &gt; &amp;data, Dimension dimension)

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



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#a2b7ad10e29d9b8f9d5cc19bcb4880852)

InputVectorData(float *data, std::size_t size, Dimension dimension)

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



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#a313b74bc43ee9519a03c7351d5a1b9e9)

InputVectorData(double *data, std::size_t size, Dimension dimension)

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



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#a34e2f29605de1f3d218f61f305231f37)

InputVectorData(double *data0, double *data1, std::size_t size)

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



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#a353712571f18e0d9c9113a6279fd4bd9)

InputVectorData(float *data, std::size_t size)

Provide a constructor for input vector data with compact storage.



[sysc::InputVectorData::size](classsysc_1_1InputVectorData.xhtml#a421e44762b642930822a119ae59751eb)

std::size_t size() const noexcept

Get the size of data.



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#a4fdc6e50b3aa55afc3375e9e8a25589f)

InputVectorData(std::vector&lt; double &gt; &amp;data0, std::vector&lt; double &gt; &amp;data1)

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



[sysc::InputVectorData::operator=](classsysc_1_1InputVectorData.xhtml#a566537c59f11967283a4fd253649ee9f)

InputVectorData &amp; operator=(InputVectorData &amp;&amp;)=default

Provide a move-assign operator.



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#a5e7ec5d5f55d26d79f5beb5f492e8173)

InputVectorData(float *data0, float *data1, std::size_t size)

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



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#a6290f72e042d38bee53f671eaeef382b)

InputVectorData(float *data0, float *data1, float *data2, std::size_t size)

Create an input vector data access object with split storage.



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#a6e884069f0f4f3cb1e58d3ee6894407f)

InputVectorData(std::vector&lt; float &gt; &amp;data0, std::vector&lt; float &gt; &amp;data1, std::vector&lt; float &gt; &amp;data2)

Create an input vector data access object with split storage.



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#a93f8cbc6fd62623d017dd402e75ea60e)

InputVectorData(std::vector&lt; float &gt; &amp;data)

Provide a constructor for input vector data with compact storage.



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#a9576407cff04f685f890b03512a22f8d)

InputVectorData(double *data, std::size_t size)

Provide a constructor for input vector data with compact storage.



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#a9c493ca8719b46214215275adcaf8a6d)

InputVectorData(const InputVectorData &amp;)=default

Provide a copy-constructor.



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#aa49d763df2ced8b08b5f96d0fd581815)

InputVectorData(std::vector&lt; float &gt; &amp;data, Dimension dimension)

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



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#ab859e8fda9352a223489fc9710ebc176)

InputVectorData(std::vector&lt; double &gt; &amp;data)

Provide a constructor for input vector data with compact storage.



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#ad682d56f49fc69628ad18410cefad197)

InputVectorData(std::vector&lt; double &gt; &amp;data0, std::vector&lt; double &gt; &amp;data1, std::vector&lt; double &gt; &amp;data2)

Create an input vector data access object with split storage.



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#adeceff37584427f9b487228ed1619ad8)

InputVectorData(std::vector&lt; float &gt; &amp;data0, std::vector&lt; float &gt; &amp;data1)

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



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#adf89794c1d53ceec3ed34f6c4820530b)

InputVectorData(InputVectorData &amp;&amp;)=default

Provide a move-constructor.



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#ae46ff595736820fb92cb12797f05d62a)

InputVectorData(double *data0, double *data1, double *data2, std::size_t size)

Create an input vector data access object with split storage.



[sysc::InputVectorData::InputVectorData](classsysc_1_1InputVectorData.xhtml#aee6e8ae9cc5c83b4f016a68b6825643d)

InputVectorData()=default

Provide a default constructor.



[sysc::Dimension](group__SystemCouplingParticipantAPIs.xhtml#ga47c8e4142175574918b84d336780cc7c)

Dimension

Provide an enum for participant dimension.

**Definition** [CommonSettings.hpp:24](CommonSettings_8hpp_source.xhtml#l00024)



[sysc::PrimitiveType](group__SystemCouplingParticipantAPIs.xhtml#gad3b1c73e4a63f4d292d65f3db875e844)

PrimitiveType

Provide enum for supported primitive types.

**Definition** [CommonTypes.hpp:200](CommonTypes_8hpp_source.xhtml#l00200)



[sysc::Double](group__SystemCouplingParticipantAPIs.xhtml#ggad3b1c73e4a63f4d292d65f3db875e844a29843d2c1bb5760f768dcc066dac1ac1)

@ Double

**Definition** [CommonTypes.hpp:202](CommonTypes_8hpp_source.xhtml#l00202)