|
RTC Toolkit 6.0.0
|
Public Types | |
| using | BufferType = std::vector<bool, A> |
| using | ElementType = std::remove_cv_t<typename BufferType::value_type> |
| using | DataPointType = RtcVectorBool |
| using | TempBufferType = boost::container::vector<bool> |
| using | BufferType |
| Defines the type of the buffer object that handles type T. | |
| using | ElementType |
| Defines the element type of the buffer object. | |
| using | DataPointType |
| Defines the corresponding data point type that type T is compatible with. | |
| using | TempBufferType |
| Defines the temporary buffer type (set to void if USES_TEMP_BUFFER is false). | |
Static Public Member Functions | |
| static RtcVectorUInt64 | GetShape (const BufferType &buffer) |
| static gsl::span< ElementType > | MakeSpan (BufferType &buffer)=delete |
Span not constructable from a std::vector<bool> type. | |
| static gsl::span< const ElementType > | MakeSpan (const BufferType &buffer)=delete |
Span not constructable from a std::vector<bool> type. | |
| static bool | ResizeBuffer (BufferType &buffer, const RtcVectorUInt64 &shape) |
| static void | CopyToTempBuffer (const BufferType &buffer, std::shared_ptr< TempBufferType > &temp_buffer, size_t offset, size_t count) |
| static void | CopyFromTempBuffer (BufferType &buffer, const std::shared_ptr< TempBufferType > &temp_buffer, size_t offset, size_t count) |
| static RtcVectorUInt64 | GetShape (const BufferType &buffer) |
| Returns the shape of a buffer object. | |
| static gsl::span< ElementType > | MakeSpan (BufferType &buffer) |
| Creates a span from a buffer object. | |
| static gsl::span< const ElementType > | MakeSpan (const BufferType &buffer) |
| Creates a span from a read-only buffer object. | |
| static bool | ResizeBuffer (BufferType &buffer, const RtcVectorUInt64 &shape) |
| Tries to resize the buffer to the given shape. | |
| static void | CopyToTempBuffer (const BufferType &buffer, std::shared_ptr< TempBufferType > &temp_buffer, size_t offset, size_t count)=delete |
| Copy data from the original buffer into the temporary buffer. | |
| static void | CopyFromTempBuffer (BufferType &buffer, const std::shared_ptr< TempBufferType > &temp_buffer, size_t offset, size_t count)=delete |
| Copy data from the temporary buffer into the original buffer. | |
Static Public Attributes | |
| static const bool | USES_TEMP_BUFFER = true |
| static const bool | USES_TEMP_BUFFER |
| Flag indicating if a temporary buffer is required to read/write this type. | |
| using rtctk::componentFramework::detail::UserTypeHandler< std::vector< bool, A > >::BufferType |
Defines the type of the buffer object that handles type T.
| using rtctk::componentFramework::detail::UserTypeHandler< std::vector< bool, A > >::BufferType = std::vector<bool, A> |
| using rtctk::componentFramework::detail::UserTypeHandler< std::vector< bool, A > >::DataPointType |
Defines the corresponding data point type that type T is compatible with.
| using rtctk::componentFramework::detail::UserTypeHandler< std::vector< bool, A > >::DataPointType = RtcVectorBool |
| using rtctk::componentFramework::detail::UserTypeHandler< std::vector< bool, A > >::ElementType |
Defines the element type of the buffer object.
| using rtctk::componentFramework::detail::UserTypeHandler< std::vector< bool, A > >::ElementType = std::remove_cv_t<typename BufferType::value_type> |
| using rtctk::componentFramework::detail::UserTypeHandler< std::vector< bool, A > >::TempBufferType |
Defines the temporary buffer type (set to void if USES_TEMP_BUFFER is false).
| using rtctk::componentFramework::detail::UserTypeHandler< std::vector< bool, A > >::TempBufferType = boost::container::vector<bool> |
|
inlinestatic |
|
staticdelete |
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.
| [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. |
|
inlinestatic |
|
staticdelete |
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.
| [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. |
|
inlinestatic |
Returns the shape of a buffer object.
| [in] | buffer | The buffer object for which the shape is calculated. |
|
inlinestatic |
|
inlinestatic |
Creates a span from a buffer object.
| [in] | buffer | The buffer object from which to create the span. |
|
staticdelete |
Span not constructable from a std::vector<bool> type.
|
inlinestatic |
Creates a span from a read-only buffer object.
| [in] | buffer | The buffer object from which to create the span. |
|
staticdelete |
Span not constructable from a std::vector<bool> type.
|
inlinestatic |
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.
| [in,out] | buffer | The buffer object to be resized. |
| [in] | shape | The shape the buffer should be resized to. |
true if the buffer size is correct or could be resized, and false otherwise.
|
inlinestatic |
|
static |
Flag indicating if a temporary buffer is required to read/write this type.
|
static |