|
| using | BufferType = T |
| | Defines the type of the buffer object that handles type T.
|
| |
| using | ElementType = std::remove_cv_t<T> |
| | Defines the element type of the buffer object.
|
| |
| using | DataPointType = T |
| | Defines the corresponding data point type that type T is compatible with.
|
| |
| using | TempBufferType = void |
| | Defines the temporary buffer type (set to void if USES_TEMP_BUFFER is false).
|
| |
◆ BufferType
Defines the type of the buffer object that handles type T.
◆ DataPointType
Defines the corresponding data point type that type T is compatible with.
◆ ElementType
Defines the element type of the buffer object.
◆ TempBufferType
Defines the temporary buffer type (set to void if USES_TEMP_BUFFER is false).
◆ CopyFromTempBuffer()
Copy data from the temporary buffer into the original buffer.
This method must only be implemented if USES_TEMP_BUFFER is true, i.e for types that require temporary buffers.
- Note
- The buffers are treated as flat arrays.
- Parameters
-
| [out] | buffer | The buffer object to copy the data into. |
| [in] | temp_buffer | The temporary buffer object from which to copy the data. |
| [in] | offset | The index of the first element in buffer that will be written to. |
| [in] | count | The number of elements to copy. |
◆ CopyToTempBuffer()
Copy data from the original buffer into the temporary buffer.
This method must only be implemented if USES_TEMP_BUFFER is true, i.e for types that require temporary buffers.
- Note
- The buffers are treated as flat arrays.
- Parameters
-
| [in] | buffer | The buffer object from which to copy the data. |
| [out] | temp_buffer | The temporary buffer object to copy data into. |
| [in] | offset | The index of the first element in buffer to start copying. |
| [in] | count | The number of elements to copy. |
◆ GetShape()
Returns the shape of a buffer object.
- Parameters
-
| [in] | buffer | The buffer object for which the shape is calculated. |
- Returns
- A list of unsigned integers indicating the number of elements for each dimension. The size of the list must equal the number of dimensions, i.e. the rank. For example, a scalar will have zero entries, a vector one entry, a matrix two.
◆ MakeSpan() [1/2]
Creates a span from a buffer object.
- Parameters
-
| [in] | buffer | The buffer object from which to create the span. |
- Returns
- A span object accessing the buffer object's underlying elements.
◆ MakeSpan() [2/2]
Creates a span from a read-only buffer object.
- Parameters
-
| [in] | buffer | The buffer object from which to create the span. |
- Returns
- A span object accessing the buffer object's underlying elements.
◆ ResizeBuffer()
Tries to resize the buffer to the given shape.
If possible, the buffer should be resized to contain enough space to hold the total number of elements indicated by the shape. If it is not possible to resize to the space required, then no resize should occur and false should be returned. In the case the buffer is already the correct size, resizing can be skipped and true returned, to indicate the buffer is OK.
- Parameters
-
| [in,out] | buffer | The buffer object to be resized. |
| [in] | shape | The shape the buffer should be resized to. |
- Returns
true if the buffer size is correct or could be resized, and false otherwise.
◆ USES_TEMP_BUFFER
Flag indicating if a temporary buffer is required to read/write this type.
The documentation for this struct was generated from the following file:
- componentFramework/services/common/src/include/rtctk/componentFramework/repositoryIf.ipp