    

 ## On this page

  

 

 # OutputIntegerData

 Last update: 17.07.2025 

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

<a id="l00002" name="l00002"></a> 2\* Copyright 2023 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\#include "SystemCouplingParticipant/OutputScalarData.hpp"

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

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

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

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

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

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

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

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

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

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

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

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

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

<a id="l00048" 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 id="l00049" name="l00049"></a> 49 

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

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

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

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

<a id="l00070" 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 id="l00071" name="l00071"></a> 71 

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

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

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

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

<a id="l00091" 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 id="l00092" name="l00092"></a> 92 

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

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

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

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

<a id="l00112" 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 id="l00113" name="l00113"></a> 113 

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<a id="l00146" name="l00146"></a>[ 146](classsysc_1_1OutputIntegerData.xhtml#a78c1fb3ab03cdec8d3a7aa3bc6aa1646) const void* getData() const noexcept;

<a id="l00147" name="l00147"></a> 147 

<a id="l00148" name="l00148"></a> 148private:

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

<a id="l00150" name="l00150"></a> 150 const void* m_data{nullptr};

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

<a id="l00152" name="l00152"></a> 152};

<a id="l00153" name="l00153"></a> 153 

<a id="l00154" name="l00154"></a> 154} // 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::operator=](classsysc_1_1OutputIntegerData.xhtml#a0f7bc134446e0311bdc1017ec793f0a2)

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

Provide a move-assign operator.



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

OutputIntegerData(const std::int32_t *data, const 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#a22df364015b79855a8e7b7d7e2f5950a)

OutputIntegerData()=default

Provide a default constructor.



[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::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#aa2439f89d7d3ef886676c27871566fff)

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

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



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

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

Provide a copy-assign operator.



[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#ab4c2324b014bff3e55134e62eabda095)

OutputIntegerData(const std::uint16_t *data, const 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#acca69d399e644ef4e5fca030b6204c68)

OutputIntegerData(const std::uint64_t *data, const 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::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:211](CommonTypes_8hpp_source.xhtml#l00211)



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

@ Int64

**Definition:** [CommonTypes.hpp:215](CommonTypes_8hpp_source.xhtml#l00215)