    

 ## On this page

  

 

 # sysc::OutputScalarData Class Reference

 Last update: 17.07.2025 

Provide a class for output scalar data. [More...](classsysc_1_1OutputScalarData.xhtml#details)

`#include <<a class="el" href="OutputScalarData_8hpp_source.xhtml">OutputScalarData.hpp</a>>`

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

 [OutputScalarData](classsysc_1_1OutputScalarData.xhtml#a0c295be497ed08e0e9831b54731edb06) (const double \*data, std::size\_t [size](classsysc_1_1OutputScalarData.xhtml#a75c7feb1b7eb4af572352c9ccabc7960)) Provide a constructor for output scalar data.   
  [OutputScalarData](classsysc_1_1OutputScalarData.xhtml#ab5c5cda94b99e246dc238885e8ab0a7e) (const float \*data, std::size\_t [size](classsysc_1_1OutputScalarData.xhtml#a75c7feb1b7eb4af572352c9ccabc7960)) Provide a constructor for output scalar data.   
  [OutputScalarData](classsysc_1_1OutputScalarData.xhtml#ad0f7ad860a57401cd183e8c689ef7514) (const std::vector&lt; double &gt; &amp;data) Provide a constructor for output scalar data.   
  [OutputScalarData](classsysc_1_1OutputScalarData.xhtml#a5ed2f8ce333e14641f2254f542b97ff9) (const std::vector&lt; float &gt; &amp;data) Provide a constructor for output scalar data.   
  [OutputScalarData](classsysc_1_1OutputScalarData.xhtml#a81966c06b45df17fcb3039e8e0e6e839) (const std::uint16\_t \*data, std::size\_t [size](classsysc_1_1OutputScalarData.xhtml#a75c7feb1b7eb4af572352c9ccabc7960)) Provide a constructor for [OutputScalarData](classsysc_1_1OutputScalarData.xhtml "Provide a class for output scalar data."), which provides read-only access to scalar array of unsigned 16-bit integers.   
  [OutputScalarData](classsysc_1_1OutputScalarData.xhtml#ae3fe5b13c079f1f417966373da0d0f1a) (const std::vector&lt; std::uint16\_t &gt; &amp;data) Provide an STL vector variation of constructor for [OutputScalarData](classsysc_1_1OutputScalarData.xhtml "Provide a class for output scalar data."), which provides read-only access to scalar array of unsigned 16-bit integers.   
  [OutputScalarData](classsysc_1_1OutputScalarData.xhtml#a97c1234dee15d9fc662f8f339543fdde) (const std::uint64\_t \*data, std::size\_t [size](classsysc_1_1OutputScalarData.xhtml#a75c7feb1b7eb4af572352c9ccabc7960)) Provide a constructor for [OutputScalarData](classsysc_1_1OutputScalarData.xhtml "Provide a class for output scalar data."), which provides read-only access to scalar array of unsigned 64-bit integers.   
  [OutputScalarData](classsysc_1_1OutputScalarData.xhtml#a8ce242f8370551d3b45586b4d292585e) (const std::vector&lt; std::uint64\_t &gt; &amp;data) Provide an STL vector variation of constructor for [OutputScalarData](classsysc_1_1OutputScalarData.xhtml "Provide a class for output scalar data."), which provides read-only access to scalar array of unsigned 64-bit integers.   
  [OutputScalarData](classsysc_1_1OutputScalarData.xhtml#af9ac21cfcac5b9870d58a526aaa8c10c) (const std::int32\_t \*data, std::size\_t [size](classsysc_1_1OutputScalarData.xhtml#a75c7feb1b7eb4af572352c9ccabc7960)) Provide a constructor for [OutputScalarData](classsysc_1_1OutputScalarData.xhtml "Provide a class for output scalar data."), which provides read-only access to scalar array of 32-bit integers.   
  [OutputScalarData](classsysc_1_1OutputScalarData.xhtml#a66895325f9405302665064f2d988f024) (const std::vector&lt; std::int32\_t &gt; &amp;data) Provide an STL vector variation of constructor for [OutputScalarData](classsysc_1_1OutputScalarData.xhtml "Provide a class for output scalar data."), which provides read-only access to scalar array of 32-bit integers.   
  [OutputScalarData](classsysc_1_1OutputScalarData.xhtml#a302c60d8c198a99c635fbdf9432bb9c2) (const std::int64\_t \*data, std::size\_t [size](classsysc_1_1OutputScalarData.xhtml#a75c7feb1b7eb4af572352c9ccabc7960)) Provide a constructor for [OutputScalarData](classsysc_1_1OutputScalarData.xhtml "Provide a class for output scalar data."), which provides read-only access to scalar array of 64-bit integers.   
  [OutputScalarData](classsysc_1_1OutputScalarData.xhtml#a4bfbce8b70e9015ad5f8b97d9feef0c9) (const std::vector&lt; std::int64\_t &gt; &amp;data) Provide an STL vector variation of constructor for [OutputScalarData](classsysc_1_1OutputScalarData.xhtml "Provide a class for output scalar data."), which provides read-only access to scalar array of 64-bit integers.   
 <a id="aaf3b08dff47cd5902d6ca62f0872312f" name="aaf3b08dff47cd5902d6ca62f0872312f"></a> **OutputScalarData** ()=default Provide a default constructor.   
 <a id="a1dbc9822f6ac6d63df34c6816aeef47c" name="a1dbc9822f6ac6d63df34c6816aeef47c"></a> **OutputScalarData** (const [OutputScalarData](classsysc_1_1OutputScalarData.xhtml) &amp;)=default Provide a copy-constructor.   
 <a id="a19925345654472e8bdbe3fa8e9b23fb5" name="a19925345654472e8bdbe3fa8e9b23fb5"></a> **OutputScalarData** ([OutputScalarData](classsysc_1_1OutputScalarData.xhtml) &amp;&amp;)=default Provide a move-constructor.   
 <a id="a86e22000419560ec9ebef3ef9c65cb3b" name="a86e22000419560ec9ebef3ef9c65cb3b"></a>[OutputScalarData](classsysc_1_1OutputScalarData.xhtml) &amp; **operator=** (const [OutputScalarData](classsysc_1_1OutputScalarData.xhtml) &amp;)=default Provide a copy-assign operator.   
 <a id="a144fc672c397e2fad5d533686015dcf7" name="a144fc672c397e2fad5d533686015dcf7"></a>[OutputScalarData](classsysc_1_1OutputScalarData.xhtml) &amp; **operator=** ([OutputScalarData](classsysc_1_1OutputScalarData.xhtml) &amp;&amp;)=default Provide a move-assign operator.   
 <a id="a75c7feb1b7eb4af572352c9ccabc7960" name="a75c7feb1b7eb4af572352c9ccabc7960"></a>std::size\_t **size** () const noexcept Get the size of data.   
 <a id="a840f69a7825eb32e1e8c63b3e208be83" name="a840f69a7825eb32e1e8c63b3e208be83"></a>bool **empty** () const noexcept Check if array "data" is empty.   
 [sysc::PrimitiveType](group__SystemCouplingParticipantAPIs.xhtml#gad3b1c73e4a63f4d292d65f3db875e844) [getDataType](classsysc_1_1OutputScalarData.xhtml#a7c8066141c2c20a9e0a1e6bbc088891c) () const noexcept Get the primitive type of data.   
 const void \* [getData](classsysc_1_1OutputScalarData.xhtml#a910febd1f11952e4f383b5fcc8803e2f) () const noexcept Get the pointer to the data.   
 <a id="details" name="details"></a>## Detailed Description

Provide a class for output scalar data.

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

Definition at line [24](OutputScalarData_8hpp_source.xhtml#l00024) of file [OutputScalarData.hpp](OutputScalarData_8hpp_source.xhtml).



## Constructor &amp; Destructor Documentation

<a id="a0c295be497ed08e0e9831b54731edb06" name="a0c295be497ed08e0e9831b54731edb06"></a>## [◆ ](#a0c295be497ed08e0e9831b54731edb06)OutputScalarData() \[1/12\]

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

Provide a constructor for output scalar data.

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



<a id="ab5c5cda94b99e246dc238885e8ab0a7e" name="ab5c5cda94b99e246dc238885e8ab0a7e"></a>## [◆ ](#ab5c5cda94b99e246dc238885e8ab0a7e)OutputScalarData() \[2/12\]

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

Provide a constructor for output scalar data.

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



<a id="ad0f7ad860a57401cd183e8c689ef7514" name="ad0f7ad860a57401cd183e8c689ef7514"></a>## [◆ ](#ad0f7ad860a57401cd183e8c689ef7514)OutputScalarData() \[3/12\]

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

Provide a constructor for output scalar data.

Parameters dataReference to STL vector of doubles. 



<a id="a5ed2f8ce333e14641f2254f542b97ff9" name="a5ed2f8ce333e14641f2254f542b97ff9"></a>## [◆ ](#a5ed2f8ce333e14641f2254f542b97ff9)OutputScalarData() \[4/12\]

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

Provide a constructor for output scalar data.

Parameters dataReference to STL vector of floats. 



<a id="a81966c06b45df17fcb3039e8e0e6e839" name="a81966c06b45df17fcb3039e8e0e6e839"></a>## [◆ ](#a81966c06b45df17fcb3039e8e0e6e839)OutputScalarData() \[5/12\]

 sysc::OutputScalarData::OutputScalarData  ( const std::uint16\_t \*  *data*,    std::size\_t  *size*   ) 

Provide a constructor for [OutputScalarData](classsysc_1_1OutputScalarData.xhtml "Provide a class for output scalar data."), which provides read-only access to scalar array of unsigned 16-bit integers.

Parameters dataPointer to the first index in the array of unsigned 16-bit integers.sizeNumber of elements in the array of unsigned 16-bit integers. 



<a id="ae3fe5b13c079f1f417966373da0d0f1a" name="ae3fe5b13c079f1f417966373da0d0f1a"></a>## [◆ ](#ae3fe5b13c079f1f417966373da0d0f1a)OutputScalarData() \[6/12\]

 sysc::OutputScalarData::OutputScalarData  ( const std::vector&lt; std::uint16\_t &gt; &amp;  *data*) 

Provide an STL vector variation of constructor for [OutputScalarData](classsysc_1_1OutputScalarData.xhtml "Provide a class for output scalar data."), which provides read-only access to scalar array of unsigned 16-bit integers.

Parameters dataReference to STL vector of unsigned 16-bit integers. 



<a id="a97c1234dee15d9fc662f8f339543fdde" name="a97c1234dee15d9fc662f8f339543fdde"></a>## [◆ ](#a97c1234dee15d9fc662f8f339543fdde)OutputScalarData() \[7/12\]

 sysc::OutputScalarData::OutputScalarData  ( const std::uint64\_t \*  *data*,    std::size\_t  *size*   ) 

Provide a constructor for [OutputScalarData](classsysc_1_1OutputScalarData.xhtml "Provide a class for output scalar data."), which provides read-only access to scalar array of unsigned 64-bit integers.

Parameters dataPointer to the first index in the array of unsigned 64-bit integers.sizeNumber of elements in the array of unsigned 64-bit integers. 



<a id="a8ce242f8370551d3b45586b4d292585e" name="a8ce242f8370551d3b45586b4d292585e"></a>## [◆ ](#a8ce242f8370551d3b45586b4d292585e)OutputScalarData() \[8/12\]

 sysc::OutputScalarData::OutputScalarData  ( const std::vector&lt; std::uint64\_t &gt; &amp;  *data*) 

Provide an STL vector variation of constructor for [OutputScalarData](classsysc_1_1OutputScalarData.xhtml "Provide a class for output scalar data."), which provides read-only access to scalar array of unsigned 64-bit integers.

Parameters dataReference to STL vector of unsigned 64-bit integers. 



<a id="af9ac21cfcac5b9870d58a526aaa8c10c" name="af9ac21cfcac5b9870d58a526aaa8c10c"></a>## [◆ ](#af9ac21cfcac5b9870d58a526aaa8c10c)OutputScalarData() \[9/12\]

 sysc::OutputScalarData::OutputScalarData  ( const std::int32\_t \*  *data*,    std::size\_t  *size*   ) 

Provide a constructor for [OutputScalarData](classsysc_1_1OutputScalarData.xhtml "Provide a class for output scalar data."), which provides read-only access to scalar array of 32-bit integers.

Parameters dataPointer to the first index in the array of unsigned 32-bit integers.sizeNumber of elements in the array of unsigned 16-bit integers. 



<a id="a66895325f9405302665064f2d988f024" name="a66895325f9405302665064f2d988f024"></a>## [◆ ](#a66895325f9405302665064f2d988f024)OutputScalarData() \[10/12\]

 sysc::OutputScalarData::OutputScalarData  ( const std::vector&lt; std::int32\_t &gt; &amp;  *data*) 

Provide an STL vector variation of constructor for [OutputScalarData](classsysc_1_1OutputScalarData.xhtml "Provide a class for output scalar data."), which provides read-only access to scalar array of 32-bit integers.

Parameters dataReference to STL vector of 32-bit integers. 



<a id="a302c60d8c198a99c635fbdf9432bb9c2" name="a302c60d8c198a99c635fbdf9432bb9c2"></a>## [◆ ](#a302c60d8c198a99c635fbdf9432bb9c2)OutputScalarData() \[11/12\]

 sysc::OutputScalarData::OutputScalarData  ( const std::int64\_t \*  *data*,    std::size\_t  *size*   ) 

Provide a constructor for [OutputScalarData](classsysc_1_1OutputScalarData.xhtml "Provide a class for output scalar data."), which provides read-only access to scalar array of 64-bit integers.

Parameters dataPointer to the first index in the array of unsigned 64-bit integers.sizeNumber of elements in the array of unsigned 64-bit integers. 



<a id="a4bfbce8b70e9015ad5f8b97d9feef0c9" name="a4bfbce8b70e9015ad5f8b97d9feef0c9"></a>## [◆ ](#a4bfbce8b70e9015ad5f8b97d9feef0c9)OutputScalarData() \[12/12\]

 sysc::OutputScalarData::OutputScalarData  ( const std::vector&lt; std::int64\_t &gt; &amp;  *data*) 

Provide an STL vector variation of constructor for [OutputScalarData](classsysc_1_1OutputScalarData.xhtml "Provide a class for output scalar data."), which provides read-only access to scalar array of 64-bit integers.

Parameters dataReference to STL vector of 64-bit integers. 



## Member Function Documentation

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

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

Get the pointer to the data.

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

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





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

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

Get the primitive type of data.

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