    

 ## 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 name="pub-methods"></a>Public Member Functions

 [InputScalarData](classsysc_1_1InputScalarData.xhtml#afb2631211cf5550a612983438f71479b) (double \*data, std::size\_t [size](classsysc_1_1InputScalarData.xhtml#ab30285336db3ff38293904e8dbe6583d)) Provide a constructor for input scalar data. [More...](classsysc_1_1InputScalarData.xhtml#afb2631211cf5550a612983438f71479b)  
  [InputScalarData](classsysc_1_1InputScalarData.xhtml#aaa8a75a57967d0e25b33fe88d77553a5) (float \*data, std::size\_t [size](classsysc_1_1InputScalarData.xhtml#ab30285336db3ff38293904e8dbe6583d)) Provide a constructor for input scalar data. [More...](classsysc_1_1InputScalarData.xhtml#aaa8a75a57967d0e25b33fe88d77553a5)  
  [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"></a> [InputScalarData](classsysc_1_1InputScalarData.xhtml#a1dbb88c3363e1b40e8b60f281e42be05) ()=default Provide a default constructor.   
 <a id="ae6c55f6cd5109f97f207e3ab2f07ad47"></a> [InputScalarData](classsysc_1_1InputScalarData.xhtml#ae6c55f6cd5109f97f207e3ab2f07ad47) (const [InputScalarData](classsysc_1_1InputScalarData.xhtml) &amp;)=default Provide a copy-constructor.   
 <a id="ad8ff168a7cd8ed62728594cf3b22b791"></a> [InputScalarData](classsysc_1_1InputScalarData.xhtml#ad8ff168a7cd8ed62728594cf3b22b791) ([InputScalarData](classsysc_1_1InputScalarData.xhtml) &amp;&amp;)=default Provide a move-constructor.   
 <a id="a2fe5667de3d73e4c317d3ef1bc3c8893"></a>[InputScalarData](classsysc_1_1InputScalarData.xhtml) &amp; [operator=](classsysc_1_1InputScalarData.xhtml#a2fe5667de3d73e4c317d3ef1bc3c8893) (const [InputScalarData](classsysc_1_1InputScalarData.xhtml) &amp;)=default Provide a copy-assign operator.   
 <a id="a62d7585f5fdad7c94ff4fefb8f38989e"></a>[InputScalarData](classsysc_1_1InputScalarData.xhtml) &amp; [operator=](classsysc_1_1InputScalarData.xhtml#a62d7585f5fdad7c94ff4fefb8f38989e) ([InputScalarData](classsysc_1_1InputScalarData.xhtml) &amp;&amp;)=default Provide a move-assign operator.   
 <a id="ab30285336db3ff38293904e8dbe6583d"></a>std::size\_t [size](classsysc_1_1InputScalarData.xhtml#ab30285336db3ff38293904e8dbe6583d) () const noexcept Get the size of data.   
 <a id="ac7440118cc57a71e6d25aeb9184d3693"></a>bool [empty](classsysc_1_1InputScalarData.xhtml#ac7440118cc57a71e6d25aeb9184d3693) () const noexcept Check if array "data" is empty.   
 [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#a70fafa6880145e0618cd828e1c7eb574) () const noexcept Get the pointer to the data. [More...](classsysc_1_1InputScalarData.xhtml#a70fafa6880145e0618cd828e1c7eb574)  
 <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="afb2631211cf5550a612983438f71479b"></a>## [◆ ](#afb2631211cf5550a612983438f71479b)InputScalarData() \[1/4\]

 sysc::InputScalarData::InputScalarData  ( double \*  *data*,    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="aaa8a75a57967d0e25b33fe88d77553a5"></a>## [◆ ](#aaa8a75a57967d0e25b33fe88d77553a5)InputScalarData() \[2/4\]

 sysc::InputScalarData::InputScalarData  ( float \*  *data*,    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"></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"></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="a70fafa6880145e0618cd828e1c7eb574"></a>## [◆ ](#a70fafa6880145e0618cd828e1c7eb574)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#l00222).





<a id="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).