Skip to main content

Class sysc::InputIntegerData

Definition: InputIntegerData.hpp (line 24)

Provide a class for input integer data.

Input integer data provides read & write access to integer data.

Members

Private attributes

Variable m_dataType

Definition: InputIntegerData.hpp (line 136)

sysc::PrimitiveType sysc::InputIntegerData::m_dataType {sysc::PrimitiveType::Int32}

Type: sysc::PrimitiveType

Variable m_data

Definition: InputIntegerData.hpp (line 137)

void* sysc::InputIntegerData::m_data {nullptr}

Type: void *

Variable m_size

Definition: InputIntegerData.hpp (line 138)

std::size_t sysc::InputIntegerData::m_size {0}

Type: std::size_t

Public functions

Function InputIntegerData

sysc::InputIntegerData::InputIntegerData(std::uint16_t *data, std::size_t size)

Provide a constructor for input integer data, where data is an array of unsigned 16-bit integers.

Parameters:

  • data: Pointer to the first index in the array of unsigned 16-bit integers.
  • size: Number of elements in the array of unsigned 16-bit integers.

Parameters:

  • std::uint16_t * data
  • std::size_t size

Return type:

Function InputIntegerData

sysc::InputIntegerData::InputIntegerData(std::vector< std::uint16_t > &data)

Provide a constructor for input integer data, where data is an STL vector of unsigned 16-bit integers.

Parameters:

  • data: Reference to STL vector of unsigned 16-bit integers.

Parameters:

  • std::vector< std::uint16_t > & data

Return type:

Function InputIntegerData

sysc::InputIntegerData::InputIntegerData(std::uint64_t *data, std::size_t size)

Provide a constructor for input integer data, where data is an array of unsigned 64-bit integers.

Parameters:

  • data: Pointer to the first index in the array of unsigned 64-bit integers.
  • size: Number of elements in the array of unsigned 64-bit integers.

Parameters:

  • std::uint64_t * data
  • std::size_t size

Return type:

Function InputIntegerData

sysc::InputIntegerData::InputIntegerData(std::vector< std::uint64_t > &data)

Provide a constructor for input integer data, where data is an STL vector of unsigned 64-bit integers.

Parameters:

  • data: Reference to STL vector of unsigned 64-bit integers.

Parameters:

  • std::vector< std::uint64_t > & data

Return type:

Function InputIntegerData

sysc::InputIntegerData::InputIntegerData(std::int32_t *data, std::size_t size)

Provide a constructor for input integer data, where data is an array of signed 32-bit integers.

Parameters:

  • data: Pointer to the first index in the array of signed 32-bit integers.
  • size: Number of elements in the array of unsigned 64-bit integers.

Parameters:

  • std::int32_t * data
  • std::size_t size

Return type:

Function InputIntegerData

sysc::InputIntegerData::InputIntegerData(std::vector< std::int32_t > &data)

Provide a constructor for input integer data, where data is an STL vector of signed 32-bit integers.

Parameters:

  • data: Reference to STL vector of signed 32-bit integers.

Parameters:

  • std::vector< std::int32_t > & data

Return type:

Function InputIntegerData

sysc::InputIntegerData::InputIntegerData(std::int64_t *data, std::size_t size)

Provide a constructor for input integer data, where data is an array of signed 64-bit integers.

Parameters:

  • data: Pointer to the first index in the array of signed 64-bit integers.
  • size: Number of elements in the array of unsigned 64-bit integers.

Parameters:

  • std::int64_t * data
  • std::size_t size

Return type:

Function InputIntegerData

sysc::InputIntegerData::InputIntegerData(std::vector< std::int64_t > &data)

Provide a constructor for input integer data, where data is an STL vector of signed 64-bit integers.

Parameters:

  • data: Reference to STL vector of signed 64-bit integers.

Parameters:

  • std::vector< std::int64_t > & data

Return type:

Function InputIntegerData

sysc::InputIntegerData::InputIntegerData()=default

Provide a default constructor.

Return type:

Function InputIntegerData

sysc::InputIntegerData::InputIntegerData(const InputIntegerData &)=default

Provide a copy-constructor.

Parameters:

Return type:

Function InputIntegerData

sysc::InputIntegerData::InputIntegerData(InputIntegerData &&)=default

Provide a move-constructor.

Parameters:

Return type:

Function operator=

InputIntegerData& sysc::InputIntegerData::operator=(const InputIntegerData &)=default

Provide a copy-assign operator.

Parameters:

Return type: InputIntegerData &

Function operator=

InputIntegerData& sysc::InputIntegerData::operator=(InputIntegerData &&)=default

Provide a move-assign operator.

Parameters:

Return type: InputIntegerData &

Function size

std::size_t sysc::InputIntegerData::size() const noexcept

Get the size of data.

Return type: std::size_t

Function empty

bool sysc::InputIntegerData::empty() const noexcept

Check if array "data" is empty.

Return type: bool

Function getDataType

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

Get the primitive type of data.

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

Return type: sysc::PrimitiveType

Function getData

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

Get the pointer to the data.

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

Return type: void *

References: