jaulib v1.3.6
Jau Support Library (C++, Java, ..)
|
Convenient tuple of a sync_action_t and data buffer. More...
#include <syncbuffer.hpp>
Public Member Functions | |
virtual | ~SyncBuffer () noexcept=default |
virtual sync_action_t & | action () noexcept=0 |
Return the defined sync_action_t. | |
size_t | byteSize () const noexcept |
virtual const void * | data () const noexcept=0 |
Return the underlying data buffer as bytes. | |
const float32_t * | data_f32 () const |
Return the underlying data buffer as float32_t if valueSignature() matches, otherwise throw. | |
const int32_t * | data_i32 () const |
Return the underlying data buffer as int32_t if valueSignature() matches, otherwise throw. | |
const int8_t * | data_i8 () const |
Return the underlying data buffer as int8_t if valueSignature() matches, otherwise throw. | |
virtual size_t | elementCount () const noexcept=0 |
Returns element count, total byte size = elementSize() * elementCount() | |
virtual size_t | elementSize () const noexcept=0 |
Returns element size in bytes. | |
SyncBuffer & | sync () noexcept |
Synchronizes the underlying data before usage. | |
std::string | toString () const |
virtual const jau::type_info & | valueSignature () const noexcept=0 |
Returns type signature of implementing class's stored value type. | |
Convenient tuple of a sync_action_t and data buffer.
sync_action_t is used to update the data buffer in case it is derived or must be otherwise transported, defined by the data provider.
Definition at line 57 of file syncbuffer.hpp.
|
virtualdefaultnoexcept |
|
pure virtualnoexcept |
Returns type signature of implementing class's stored value type.
Implemented in jau::math::util::SyncMatrices4< Value_type, >, jau::math::util::SyncMatrices4< float >, jau::math::util::SyncMatrices4< float >, jau::math::util::SyncMatrices4< value_type, std::is_floating_point_v< Value_type > >, jau::math::util::SyncMatrices4< value_type, std::is_floating_point_v< Value_type > >, jau::math::util::SyncMatrix4< Value_type, >, jau::math::util::SyncMatrix4< float >, jau::math::util::SyncMatrix4< float >, jau::math::util::SyncMatrix4< value_type, std::is_floating_point_v< Value_type > >, and jau::math::util::SyncMatrix4< value_type, std::is_floating_point_v< Value_type > >.
|
pure virtualnoexcept |
|
pure virtualnoexcept |
Return the underlying data buffer as bytes.
Implemented in jau::math::util::SyncMatrices4< Value_type, >, jau::math::util::SyncMatrices4< float >, jau::math::util::SyncMatrices4< float >, jau::math::util::SyncMatrices4< value_type, std::is_floating_point_v< Value_type > >, jau::math::util::SyncMatrices4< value_type, std::is_floating_point_v< Value_type > >, jau::math::util::SyncMatrix4< Value_type, >, jau::math::util::SyncMatrix4< float >, jau::math::util::SyncMatrix4< float >, jau::math::util::SyncMatrix4< value_type, std::is_floating_point_v< Value_type > >, and jau::math::util::SyncMatrix4< value_type, std::is_floating_point_v< Value_type > >.
|
pure virtualnoexcept |
Returns element size in bytes.
Implemented in jau::math::util::SyncMatrices4< Value_type, >, jau::math::util::SyncMatrices4< float >, jau::math::util::SyncMatrices4< float >, jau::math::util::SyncMatrices4< value_type, std::is_floating_point_v< Value_type > >, jau::math::util::SyncMatrices4< value_type, std::is_floating_point_v< Value_type > >, jau::math::util::SyncMatrix4< Value_type, >, jau::math::util::SyncMatrix4< float >, jau::math::util::SyncMatrix4< float >, jau::math::util::SyncMatrix4< value_type, std::is_floating_point_v< Value_type > >, and jau::math::util::SyncMatrix4< value_type, std::is_floating_point_v< Value_type > >.
|
pure virtualnoexcept |
Returns element count, total byte size = elementSize() * elementCount()
Implemented in jau::math::util::SyncMatrices4< Value_type, >, jau::math::util::SyncMatrices4< float >, jau::math::util::SyncMatrices4< float >, jau::math::util::SyncMatrices4< value_type, std::is_floating_point_v< Value_type > >, jau::math::util::SyncMatrices4< value_type, std::is_floating_point_v< Value_type > >, jau::math::util::SyncMatrix4< Value_type, >, jau::math::util::SyncMatrix4< float >, jau::math::util::SyncMatrix4< float >, jau::math::util::SyncMatrix4< value_type, std::is_floating_point_v< Value_type > >, and jau::math::util::SyncMatrix4< value_type, std::is_floating_point_v< Value_type > >.
|
inlinenoexcept |
|
inlinenoexcept |
Synchronizes the underlying data before usage.
Convenient shortcut for action()() plus chaining.
Definition at line 84 of file syncbuffer.hpp.
|
inline |
Definition at line 86 of file syncbuffer.hpp.
|
inline |
Return the underlying data buffer as int8_t if valueSignature() matches, otherwise throw.
Definition at line 93 of file syncbuffer.hpp.
|
inline |
Return the underlying data buffer as int32_t if valueSignature() matches, otherwise throw.
Definition at line 102 of file syncbuffer.hpp.
|
inline |
Return the underlying data buffer as float32_t if valueSignature() matches, otherwise throw.
Definition at line 111 of file syncbuffer.hpp.