Skip to main content

System Coupling C++ library 2024 R1

sysc::OutputIntegerData Class Reference

Last update: 17.07.2025

Provide a class for output integer data. More...

#include <OutputIntegerData.hpp>

Public Member Functions

 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 16-bit integers.
 
 OutputIntegerData (const std::vector< std::uint16_t > &data)
 Provide an STL vector variation of constructor for OutputIntegerData, which provides read-only access to an array of unsigned 16-bit integers.
 
 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 64-bit integers.
 
 OutputIntegerData (const std::vector< std::uint64_t > &data)
 Provide an STL vector variation of constructor for OutputIntegerData, which provides read-only access to an array of unsigned 64-bit integers.
 
 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 integers.
 
 OutputIntegerData (const std::vector< std::int32_t > &data)
 Provide an STL vector variation of constructor for OutputIntegerData, which provides read-only access to an array of 32-bit integers.
 
 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 integers.
 
 OutputIntegerData (const std::vector< std::int64_t > &data)
 Provide an STL vector variation of constructor for OutputIntegerData, which provides read-only access to an array of 64-bit integers.
 
 OutputIntegerData (const OutputScalarData &data)
 Provide a constructor to convert OutputScalarData into OutputIntegerData.
 
 OutputIntegerData ()=default
 Provide a default constructor.
 
 OutputIntegerData (const OutputIntegerData &)=default
 Provide a copy-constructor.
 
 OutputIntegerData (OutputIntegerData &&)=default
 Provide a move-constructor.
 
OutputIntegerDataoperator= (const OutputIntegerData &)=default
 Provide a copy-assign operator.
 
OutputIntegerDataoperator= (OutputIntegerData &&)=default
 Provide a move-assign operator.
 
std::size_t size () const noexcept
 Get the size of data.
 
bool empty () const noexcept
 Check if array “data” is empty.
 
sysc::PrimitiveType getDataType () const noexcept
 Get the primitive type of data.
 
const void * getData () const noexcept
 Get the pointer to the data.
 

Detailed Description

Provide a class for output integer data.

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

Definition at line 25 of file OutputIntegerData.hpp.

Constructor & Destructor Documentation

◆ OutputIntegerData() [1/8]

sysc::OutputIntegerData::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 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.

◆ OutputIntegerData() [2/8]

sysc::OutputIntegerData::OutputIntegerData ( const std::vector< std::uint16_t > &  data)

Provide an STL vector variation of constructor for OutputIntegerData, which provides read-only access to an array of unsigned 16-bit integers.

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

◆ OutputIntegerData() [3/8]

sysc::OutputIntegerData::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 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.

◆ OutputIntegerData() [4/8]

sysc::OutputIntegerData::OutputIntegerData ( const std::vector< std::uint64_t > &  data)

Provide an STL vector variation of constructor for OutputIntegerData, which provides read-only access to an array of unsigned 64-bit integers.

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

◆ OutputIntegerData() [5/8]

sysc::OutputIntegerData::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 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.

◆ OutputIntegerData() [6/8]

sysc::OutputIntegerData::OutputIntegerData ( const std::vector< std::int32_t > &  data)

Provide an STL vector variation of constructor for OutputIntegerData, which provides read-only access to an array of 32-bit integers.

Parameters
dataReference to STL vector of 32-bit integers.

◆ OutputIntegerData() [7/8]

sysc::OutputIntegerData::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 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.

◆ OutputIntegerData() [8/8]

sysc::OutputIntegerData::OutputIntegerData ( const std::vector< std::int64_t > &  data)

Provide an STL vector variation of constructor for OutputIntegerData, which provides read-only access to an array of 64-bit integers.

Parameters
dataReference to STL vector of 64-bit integers.

Member Function Documentation

◆ getData()

const void * sysc::OutputIntegerData::getData ( ) const
noexcept

Get the pointer to the data.

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

References sysc::Int64.

◆ getDataType()

sysc::PrimitiveType sysc::OutputIntegerData::getDataType ( ) const
noexcept

Get the primitive type of data.

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

Connect with Ansys