Class sysc::OutputIntegerData
Definition: OutputIntegerData.hpp (line 25)
Provide a class for output integer data.
Output integer data provides read-only access to an array of integer data.
Members
- empty
- getData
- getDataType
- m_data
- m_dataType
- m_size
- operator=
- operator=
- OutputIntegerData
- OutputIntegerData
- OutputIntegerData
- OutputIntegerData
- OutputIntegerData
- OutputIntegerData
- OutputIntegerData
- OutputIntegerData
- OutputIntegerData
- OutputIntegerData
- OutputIntegerData
- OutputIntegerData
- size
Private attributes
Variable m_dataType
Definition: OutputIntegerData.hpp (line 154)
sysc::PrimitiveType sysc::OutputIntegerData::m_dataType {sysc::Int64}
Type: sysc::PrimitiveType
Variable m_data
Definition: OutputIntegerData.hpp (line 155)
const void* sysc::OutputIntegerData::m_data {nullptr}
Type: const void *
Variable m_size
Definition: OutputIntegerData.hpp (line 156)
std::size_t sysc::OutputIntegerData::m_size {0}
Type: std::size_t
Public functions
Function OutputIntegerData
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:
- 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:
- const std::uint16_t * data
- std::size_t size
Return type:
Function OutputIntegerData
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:
- data: Reference to STL vector of unsigned 16-bit integers.
Parameters:
- const std::vector< std::uint16_t > & data
Return type:
Function OutputIntegerData
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:
- 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:
- const std::uint64_t * data
- std::size_t size
Return type:
Function OutputIntegerData
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:
- data: Reference to STL vector of unsigned 64-bit integers.
Parameters:
- const std::vector< std::uint64_t > & data
Return type:
Function OutputIntegerData
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:
- data: Pointer to the first index in the array of unsigned 32-bit integers.
- size: Number of elements in the array of unsigned 16-bit integers.
Parameters:
- const std::int32_t * data
- std::size_t size
Return type:
Function OutputIntegerData
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:
- data: Reference to STL vector of 32-bit integers.
Parameters:
- const std::vector< std::int32_t > & data
Return type:
Function OutputIntegerData
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:
- 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:
- const std::int64_t * data
- std::size_t size
Return type:
Function OutputIntegerData
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:
- data: Reference to STL vector of 64-bit integers.
Parameters:
- const std::vector< std::int64_t > & data
Return type:
Function OutputIntegerData
sysc::OutputIntegerData::OutputIntegerData(const OutputScalarData &data)
Provide a constructor to convert OutputScalarData into OutputIntegerData.
Parameters:
- const OutputScalarData & data
Return type:
Function OutputIntegerData
sysc::OutputIntegerData::OutputIntegerData()=default
Provide a default constructor.
Return type:
Function OutputIntegerData
sysc::OutputIntegerData::OutputIntegerData(const OutputIntegerData &)=default
Provide a copy-constructor.
Parameters:
- const OutputIntegerData &
Return type:
Function OutputIntegerData
sysc::OutputIntegerData::OutputIntegerData(OutputIntegerData &&)=default
Provide a move-constructor.
Parameters:
Return type:
Function operator=
OutputIntegerData& sysc::OutputIntegerData::operator=(const OutputIntegerData &)=default
Provide a copy-assign operator.
Parameters:
- const OutputIntegerData &
Return type: OutputIntegerData &
Function operator=
OutputIntegerData& sysc::OutputIntegerData::operator=(OutputIntegerData &&)=default
Provide a move-assign operator.
Parameters:
Return type: OutputIntegerData &
Function size
std::size_t sysc::OutputIntegerData::size() const noexcept
Get the size of data.
Return type: std::size_t
Function empty
bool sysc::OutputIntegerData::empty() const noexcept
Check if array “data” is empty.
Return type: bool
Function getDataType
sysc::PrimitiveType sysc::OutputIntegerData::getDataType() const noexcept
Get the primitive type of data.
For internal use only (no back-compatibility guarantee).
Return type: sysc::PrimitiveType
Function getData
const void* sysc::OutputIntegerData::getData() const noexcept
Get the pointer to the data.
For internal use only (no back-compatibility guarantee).
Return type: const void *
References: