Skip to main content
Definition: OutputScalarData.hpp (line 23) Provide a class for output scalar data. Output scalar data provides read-only access to an array of scalar data.

Members

Private attributes

Variable m_dataType

Definition: OutputScalarData.hpp (line 261)
Type: sysc::PrimitiveType

Variable m_data

Definition: OutputScalarData.hpp (line 262)
Type: const void *

Variable m_size

Definition: OutputScalarData.hpp (line 263)
Type: std::size_t

Public functions

Function OutputScalarData

Provide a constructor for output scalar data. Parameters:
  • data: - pointer to the double-precision array of data.
  • size: - number of elements in the array.
Parameters:
  • const double * data
  • std::size_t size
Return type: References: Referenced by:

Function OutputScalarData

Provide a constructor for output scalar data. Parameters:
  • data: - pointer to the single-precision array of data.
  • size: - number of elements in the array.
Parameters:
  • const float * data
  • std::size_t size
Return type: References:

Function OutputScalarData

Provide a constructor for output scalar data. Parameters:
  • data: Reference to STL vector of doubles.
Parameters:
  • const std::vector< double > & data
Return type: References:

Function OutputScalarData

Provide a constructor for output scalar data. Parameters:
  • data: Reference to STL vector of floats.
Parameters:
  • const std::vector< float > & data
Return type: References:

Function OutputScalarData

Provide a constructor for OutputScalarData, which provides read-only access to scalar 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: References:

Function OutputScalarData

Provide an STL vector variation of constructor for OutputScalarData, which provides read-only access to scalar 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: References:

Function OutputScalarData

Provide a constructor for OutputScalarData, which provides read-only access to scalar 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: References:

Function OutputScalarData

Provide an STL vector variation of constructor for OutputScalarData, which provides read-only access to scalar 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: References:

Function OutputScalarData

Provide a constructor for OutputScalarData, which provides read-only access to scalar 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: References:

Function OutputScalarData

Provide an STL vector variation of constructor for OutputScalarData, which provides read-only access to scalar 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: References:

Function OutputScalarData

Provide a constructor for OutputScalarData, which provides read-only access to scalar 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: References:

Function OutputScalarData

Provide an STL vector variation of constructor for OutputScalarData, which provides read-only access to scalar 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: References:

Function OutputScalarData

Provide a default constructor. Return type:

Function OutputScalarData

Provide a copy-constructor. Parameters: Return type: References:

Function OutputScalarData

Provide a move-constructor. Parameters: Return type: References:

Function operator=

Provide a copy-assign operator. Parameters: Return type: OutputScalarData & References:

Function operator=

Provide a move-assign operator. Parameters: Return type: OutputScalarData & References:

Function OutputScalarData

Provide a constructor from input scalar data. Parameters: Return type: References:

Function size

Get the size of data. Return type: std::size_t Referenced by:

Function empty

Check if array “data” is empty. Return type: bool

Function getDataType

Get the primitive type of data. For internal use only (no back-compatibility guarantee). Return type: sysc::PrimitiveType Referenced by:

Function getData

Get the pointer to the data. For internal use only (no back-compatibility guarantee). Return type: const void * Referenced by: