    

 ## On this page

  

 

 # sysc::InputScalarData Class Reference

 Last update: 17.07.2025 

Provide a class for input scalar data. [More...](classsysc_1_1InputScalarData.xhtml#details)

`#include <<a class="el" href="InputScalarData_8hpp_source.xhtml">InputScalarData.hpp</a>>`

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

 [InputScalarData](classsysc_1_1InputScalarData.xhtml#a8d5f05d6076ddab6aa668865036d6404) (double \*const data, const std::size\_t [size](classsysc_1_1InputScalarData.xhtml#ab30285336db3ff38293904e8dbe6583d)) Provide a constructor for input scalar data. [More...](classsysc_1_1InputScalarData.xhtml#a8d5f05d6076ddab6aa668865036d6404)  
  [InputScalarData](classsysc_1_1InputScalarData.xhtml#acc63bf50217594d56d5803db7a436c4b) (float \*const data, const std::size\_t [size](classsysc_1_1InputScalarData.xhtml#ab30285336db3ff38293904e8dbe6583d)) Provide a constructor for input scalar data. [More...](classsysc_1_1InputScalarData.xhtml#acc63bf50217594d56d5803db7a436c4b)  
  [InputScalarData](classsysc_1_1InputScalarData.xhtml#a90bffff1edbccc52b9807af3881c11ac) (std::vector&lt; double &gt; &amp;data) Provide a constructor for input scalar data. [More...](classsysc_1_1InputScalarData.xhtml#a90bffff1edbccc52b9807af3881c11ac)  
  [InputScalarData](classsysc_1_1InputScalarData.xhtml#a1380850d03279cd3f11e4e65cbc9f064) (std::vector&lt; float &gt; &amp;data) Provide a constructor for input scalar data. [More...](classsysc_1_1InputScalarData.xhtml#a1380850d03279cd3f11e4e65cbc9f064)  
 <a id="a1dbb88c3363e1b40e8b60f281e42be05" name="a1dbb88c3363e1b40e8b60f281e42be05"></a> **InputScalarData** ()=default Provide a default constructor.   
 <a id="ae6c55f6cd5109f97f207e3ab2f07ad47" name="ae6c55f6cd5109f97f207e3ab2f07ad47"></a> **InputScalarData** (const [InputScalarData](classsysc_1_1InputScalarData.xhtml) &amp;)=default Provide a copy-constructor.   
 <a id="ad8ff168a7cd8ed62728594cf3b22b791" name="ad8ff168a7cd8ed62728594cf3b22b791"></a> **InputScalarData** ([InputScalarData](classsysc_1_1InputScalarData.xhtml) &amp;&amp;)=default Provide a move-constructor.   
 <a id="a1df3c00def6b68506e74ad80d374999f" name="a1df3c00def6b68506e74ad80d374999f"></a>[InputScalarData](classsysc_1_1InputScalarData.xhtml) &amp; **operator=** (const [InputScalarData](classsysc_1_1InputScalarData.xhtml) &amp;)=default Provide a copy-assign operator.   
 <a id="a65d10417b97836f95d57dd70c16b425a" name="a65d10417b97836f95d57dd70c16b425a"></a>[InputScalarData](classsysc_1_1InputScalarData.xhtml) &amp; **operator=** ([InputScalarData](classsysc_1_1InputScalarData.xhtml) &amp;&amp;)=default Provide a move-assign operator.   
 <a id="ab30285336db3ff38293904e8dbe6583d" name="ab30285336db3ff38293904e8dbe6583d"></a>std::size\_t **size** () const noexcept Get the size of data.   
 [sysc::PrimitiveType](group__SystemCouplingParticipantAPIs.xhtml#gad3b1c73e4a63f4d292d65f3db875e844) [getDataType](classsysc_1_1InputScalarData.xhtml#a6468902b8f2e27053c09c25ed05562de) () const noexcept Get the primitive type of data. [More...](classsysc_1_1InputScalarData.xhtml#a6468902b8f2e27053c09c25ed05562de)  
 void \* [getData](classsysc_1_1InputScalarData.xhtml#a5d8b2df6cc7be58d1c3e2a2aa289fc78) () const noexcept Get the pointer to the data. [More...](classsysc_1_1InputScalarData.xhtml#a5d8b2df6cc7be58d1c3e2a2aa289fc78)  
 <a id="details" name="details"></a>## Detailed Description

Provide a class for input scalar data.

Input scalar data provides read and write access to an array of scalar data.

Definition at line [23](InputScalarData_8hpp_source.xhtml#l00023) of file [InputScalarData.hpp](InputScalarData_8hpp_source.xhtml).



## Constructor &amp; Destructor Documentation

<a id="a8d5f05d6076ddab6aa668865036d6404" name="a8d5f05d6076ddab6aa668865036d6404"></a>## [◆ ](#a8d5f05d6076ddab6aa668865036d6404)InputScalarData() \[1/4\]

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

Provide a constructor for input scalar data.

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



<a id="acc63bf50217594d56d5803db7a436c4b" name="acc63bf50217594d56d5803db7a436c4b"></a>## [◆ ](#acc63bf50217594d56d5803db7a436c4b)InputScalarData() \[2/4\]

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

Provide a constructor for input scalar data.

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



<a id="a90bffff1edbccc52b9807af3881c11ac" name="a90bffff1edbccc52b9807af3881c11ac"></a>## [◆ ](#a90bffff1edbccc52b9807af3881c11ac)InputScalarData() \[3/4\]

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

Provide a constructor for input scalar data.

Parameters dataReference to STL vector of doubles. 



<a id="a1380850d03279cd3f11e4e65cbc9f064" name="a1380850d03279cd3f11e4e65cbc9f064"></a>## [◆ ](#a1380850d03279cd3f11e4e65cbc9f064)InputScalarData() \[4/4\]

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

Provide a constructor for input scalar data.

Parameters dataReference to STL vector of floats. 



## Member Function Documentation

<a id="a5d8b2df6cc7be58d1c3e2a2aa289fc78" name="a5d8b2df6cc7be58d1c3e2a2aa289fc78"></a>## [◆ ](#a5d8b2df6cc7be58d1c3e2a2aa289fc78)getData()

 void \* sysc::InputScalarData::getData  ( )  const  noexcept 

Get the pointer to the data.

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

References [sysc::Double](CommonTypes_8hpp_source.xhtml#l00213).





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

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

Get the primitive type of data.

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