    

 ## On this page

  

 

 # OutputIntegerData

 Last update: 17.07.2025 

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

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

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

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

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

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

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

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

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

<a name="l00010"></a> 10 \#include "SystemCouplingParticipant/OutputScalarData.hpp"

<a name="l00011"></a> 11 

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

<a name="l00013"></a> 13 \#include &lt;cstdint&gt;

<a name="l00014"></a> 14 \#include &lt;vector&gt;

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

<a name="l00016"></a> 16 namespace sysc {

<a name="l00017"></a> 17 

<a name="l00025"></a>[ 25](classsysc_1_1OutputIntegerData.xhtml) class SYSTEM_COUPLING_PARTICIPANT_DLL [OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml) {

<a name="l00026"></a> 26 public:

<a name="l00036"></a>[ 36](classsysc_1_1OutputIntegerData.xhtml#aaff24bd17a31494539fe166a58c14a61) [OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#aaff24bd17a31494539fe166a58c14a61)(

<a name="l00037"></a> 37 const std::uint16_t* data,

<a name="l00038"></a> 38 std::size_t size);

<a name="l00039"></a> 39 

<a name="l00048"></a>[ 48](classsysc_1_1OutputIntegerData.xhtml#aac9c3dafa5cfd8b1c0faa8a0dfaf4b8b) [OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#aac9c3dafa5cfd8b1c0faa8a0dfaf4b8b)(const std::vector&lt;std::uint16_t&gt;&amp; data);

<a name="l00049"></a> 49 

<a name="l00059"></a>[ 59](classsysc_1_1OutputIntegerData.xhtml#a1b00e76dc5eb0ecaf543f43df90dbe1d) [OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#a1b00e76dc5eb0ecaf543f43df90dbe1d)(

<a name="l00060"></a> 60 const std::uint64_t* data,

<a name="l00061"></a> 61 std::size_t size);

<a name="l00062"></a> 62 

<a name="l00070"></a>[ 70](classsysc_1_1OutputIntegerData.xhtml#a6bb7fdf48c06f729b453d0cc476b0d51) [OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#a6bb7fdf48c06f729b453d0cc476b0d51)(const std::vector&lt;std::uint64_t&gt;&amp; data);

<a name="l00071"></a> 71 

<a name="l00081"></a>[ 81](classsysc_1_1OutputIntegerData.xhtml#a434b5d77b41e183c5e8c66a66feab677) [OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#a434b5d77b41e183c5e8c66a66feab677)(

<a name="l00082"></a> 82 const std::int32_t* data,

<a name="l00083"></a> 83 std::size_t size);

<a name="l00084"></a> 84 

<a name="l00091"></a>[ 91](classsysc_1_1OutputIntegerData.xhtml#a77f661f442e22e6ef767046363675577) [OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#a77f661f442e22e6ef767046363675577)(const std::vector&lt;std::int32_t&gt;&amp; data);

<a name="l00092"></a> 92 

<a name="l00102"></a>[ 102](classsysc_1_1OutputIntegerData.xhtml#a3e9b3743b43def94e796ce6ca2440bb5) [OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#a3e9b3743b43def94e796ce6ca2440bb5)(

<a name="l00103"></a> 103 const std::int64_t* data,

<a name="l00104"></a> 104 std::size_t size);

<a name="l00105"></a> 105 

<a name="l00112"></a>[ 112](classsysc_1_1OutputIntegerData.xhtml#a0b95e5e0c9bd3d32a2896d4ef46751da) [OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#a0b95e5e0c9bd3d32a2896d4ef46751da)(const std::vector&lt;std::int64_t&gt;&amp; data);

<a name="l00113"></a> 113 

<a name="l00116"></a>[ 116](classsysc_1_1OutputIntegerData.xhtml#a0e6a549839197abac135cae92a4bacc2) [OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#a0e6a549839197abac135cae92a4bacc2)(const [OutputScalarData](classsysc_1_1OutputScalarData.xhtml)&amp; data);

<a name="l00117"></a> 117 

<a name="l00119"></a>[ 119](classsysc_1_1OutputIntegerData.xhtml#a22df364015b79855a8e7b7d7e2f5950a) [OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#a22df364015b79855a8e7b7d7e2f5950a)() = default;

<a name="l00120"></a> 120 

<a name="l00122"></a>[ 122](classsysc_1_1OutputIntegerData.xhtml#adc76f136fc2140e796d82a5b28c7c11b) [OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#adc76f136fc2140e796d82a5b28c7c11b)(const [OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml)&amp;) = default;

<a name="l00123"></a> 123 

<a name="l00125"></a>[ 125](classsysc_1_1OutputIntegerData.xhtml#a815f75642b0a3b4f607cefe02b114805) [OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#a815f75642b0a3b4f607cefe02b114805)([OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml)&amp;&amp;) = default;

<a name="l00126"></a> 126 

<a name="l00128"></a>[ 128](classsysc_1_1OutputIntegerData.xhtml#a6e2dbe8549ce9a6e5eab1191bfc2c9c8) [OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml)&amp; [operator=](classsysc_1_1OutputIntegerData.xhtml#a6e2dbe8549ce9a6e5eab1191bfc2c9c8)(const [OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml)&amp;) = default;

<a name="l00129"></a> 129 

<a name="l00131"></a>[ 131](classsysc_1_1OutputIntegerData.xhtml#aea30a96b33149b9e5f0f76a6c11457e9) [OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml)&amp; [operator=](classsysc_1_1OutputIntegerData.xhtml#aea30a96b33149b9e5f0f76a6c11457e9)([OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml)&amp;&amp;) = default;

<a name="l00132"></a> 132 

<a name="l00134"></a>[ 134](classsysc_1_1OutputIntegerData.xhtml#a066b9985cc448f197b0e247dfe11ea3c) std::size_t [size](classsysc_1_1OutputIntegerData.xhtml#a066b9985cc448f197b0e247dfe11ea3c)() const noexcept;

<a name="l00135"></a> 135 

<a name="l00139"></a>[ 139](classsysc_1_1OutputIntegerData.xhtml#a8819c1e3b85cd5eccad2343fc2b3864b) bool empty() const noexcept;

<a name="l00140"></a> 140 

<a name="l00145"></a>[ 145](classsysc_1_1OutputIntegerData.xhtml#a2518ac18b1229dcdcd3a6e8cb231ce31) sysc::[PrimitiveType](group__SystemCouplingParticipantAPIs.xhtml#gad3b1c73e4a63f4d292d65f3db875e844) getDataType() const noexcept;

<a name="l00146"></a> 146 

<a name="l00151"></a>[ 151](classsysc_1_1OutputIntegerData.xhtml#a5260a1044cbf48fc08861592f27ef830) const void* getData() const noexcept;

<a name="l00152"></a> 152 

<a name="l00153"></a> 153 private:

<a name="l00154"></a> 154 sysc::[PrimitiveType](group__SystemCouplingParticipantAPIs.xhtml#gad3b1c73e4a63f4d292d65f3db875e844) m_dataType{[sysc::Int64](group__SystemCouplingParticipantAPIs.xhtml#ggad3b1c73e4a63f4d292d65f3db875e844a7280672fe5e965512085d9837dbacf7f)};

<a name="l00155"></a> 155 const void* m_data{nullptr};

<a name="l00156"></a> 156 std::size_t m_size{0};

<a name="l00157"></a> 157 };

<a name="l00158"></a> 158 

<a name="l00159"></a> 159 } // namespace sysc

[sysc::OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml)

Provide a class for output integer data.

**Definition:** [OutputIntegerData.hpp:25](OutputIntegerData_8hpp_source.xhtml#l00025)



[sysc::OutputIntegerData::size](classsysc_1_1OutputIntegerData.xhtml#a066b9985cc448f197b0e247dfe11ea3c)

std::size_t size() const noexcept

Get the size of data.



[sysc::OutputIntegerData::OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#a0b95e5e0c9bd3d32a2896d4ef46751da)

OutputIntegerData(const std::vector&lt; std::int64_t &gt; &amp;data)

Provide an STL vector variation of constructor for OutputIntegerData, which provides read-only access...



[sysc::OutputIntegerData::OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#a0e6a549839197abac135cae92a4bacc2)

OutputIntegerData(const OutputScalarData &amp;data)

Provide a constructor to convert OutputScalarData into OutputIntegerData.



[sysc::OutputIntegerData::OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#a1b00e76dc5eb0ecaf543f43df90dbe1d)

OutputIntegerData(const std::uint64_t *data, std::size_t size)

Provide a constructor for OutputIntegerData, which provides read-only access to an array of unsigned ...



[sysc::OutputIntegerData::OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#a22df364015b79855a8e7b7d7e2f5950a)

OutputIntegerData()=default

Provide a default constructor.



[sysc::OutputIntegerData::OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#a3e9b3743b43def94e796ce6ca2440bb5)

OutputIntegerData(const std::int64_t *data, std::size_t size)

Provide a constructor for OutputIntegerData, which provides read-only access to an array of 64-bit in...



[sysc::OutputIntegerData::OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#a434b5d77b41e183c5e8c66a66feab677)

OutputIntegerData(const std::int32_t *data, std::size_t size)

Provide a constructor for OutputIntegerData, which provides read-only access to an array of 32-bit in...



[sysc::OutputIntegerData::OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#a6bb7fdf48c06f729b453d0cc476b0d51)

OutputIntegerData(const std::vector&lt; std::uint64_t &gt; &amp;data)

Provide an STL vector variation of constructor for OutputIntegerData, which provides read-only access...



[sysc::OutputIntegerData::operator=](classsysc_1_1OutputIntegerData.xhtml#a6e2dbe8549ce9a6e5eab1191bfc2c9c8)

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

Provide a copy-assign operator.



[sysc::OutputIntegerData::OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#a77f661f442e22e6ef767046363675577)

OutputIntegerData(const std::vector&lt; std::int32_t &gt; &amp;data)

Provide an STL vector variation of constructor for OutputIntegerData, which provides read-only access...



[sysc::OutputIntegerData::OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#a815f75642b0a3b4f607cefe02b114805)

OutputIntegerData(OutputIntegerData &amp;&amp;)=default

Provide a move-constructor.



[sysc::OutputIntegerData::OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#aac9c3dafa5cfd8b1c0faa8a0dfaf4b8b)

OutputIntegerData(const std::vector&lt; std::uint16_t &gt; &amp;data)

Provide an STL vector variation of constructor for OutputIntegerData, which provides read-only access...



[sysc::OutputIntegerData::OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#aaff24bd17a31494539fe166a58c14a61)

OutputIntegerData(const std::uint16_t *data, std::size_t size)

Provide a constructor for OutputIntegerData, which provides read-only access to an array of unsigned ...



[sysc::OutputIntegerData::OutputIntegerData](classsysc_1_1OutputIntegerData.xhtml#adc76f136fc2140e796d82a5b28c7c11b)

OutputIntegerData(const OutputIntegerData &amp;)=default

Provide a copy-constructor.



[sysc::OutputIntegerData::operator=](classsysc_1_1OutputIntegerData.xhtml#aea30a96b33149b9e5f0f76a6c11457e9)

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

Provide a move-assign operator.



[sysc::OutputScalarData](classsysc_1_1OutputScalarData.xhtml)

Provide a class for output scalar data.

**Definition:** [OutputScalarData.hpp:24](OutputScalarData_8hpp_source.xhtml#l00024)



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

PrimitiveType

Provide enum for supported primitive types.

**Definition:** [CommonTypes.hpp:220](CommonTypes_8hpp_source.xhtml#l00220)



[sysc::Int64](group__SystemCouplingParticipantAPIs.xhtml#ggad3b1c73e4a63f4d292d65f3db875e844a7280672fe5e965512085d9837dbacf7f)

@ Int64

**Definition:** [CommonTypes.hpp:224](CommonTypes_8hpp_source.xhtml#l00224)