|
jaulib v1.4.0-2-g788cf73
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. | |
| virtual const jau::type_info & | compSignature () const noexcept=0 |
| Returns type signature of implementing class's stored component value type. | |
| virtual const void * | data () const noexcept=0 |
| Return the underlying data buffer as bytes w/o sync action(). | |
| SyncBuffer & | sync () noexcept |
| The component's size in bytes. | |
| const void * | syncedData () noexcept |
| Return the underlying data buffer as bytes after invoking sync action(). | |
| virtual std::string | toString () const =0 |
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 46 of file syncbuffer.hpp.
|
virtualdefaultnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
Return the underlying data buffer as bytes w/o sync action().
Implemented in jau::math::util::SyncMatrices4< Value_type >, jau::math::util::SyncMatrices4< float >, jau::math::util::SyncMatrices4< float >, jau::math::util::SyncMatrices4< value_type >, jau::math::util::SyncMatrices4< value_type >, jau::math::util::SyncMatrix4< Value_type >, jau::math::util::SyncMatrix4< float >, jau::math::util::SyncMatrix4< float >, jau::math::util::SyncMatrix4< value_type >, and jau::math::util::SyncMatrix4< value_type >.
|
inlinenoexcept |
Return the underlying data buffer as bytes after invoking sync action().
Definition at line 57 of file syncbuffer.hpp.
|
pure virtualnoexcept |
Returns type signature of implementing class's stored component 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 >, jau::math::util::SyncMatrices4< value_type >, jau::math::util::SyncMatrix4< Value_type >, jau::math::util::SyncMatrix4< float >, jau::math::util::SyncMatrix4< float >, jau::math::util::SyncMatrix4< value_type >, and jau::math::util::SyncMatrix4< value_type >.
|
inlinenoexcept |
The component's size in bytes.
The number of components per element Returns element count. One element consist compsPerElem() components. Returns the byte size of all elements, i.e. elementCount() * compsPerElem() * bytesPerComp(). Synchronizes the underlying data before usage.
Convenient shortcut for action()() plus chaining.
Definition at line 80 of file syncbuffer.hpp.
|
pure virtual |
Implemented in jau::math::util::SyncMatrices4< Value_type >, jau::math::util::SyncMatrices4< float >, jau::math::util::SyncMatrices4< float >, jau::math::util::SyncMatrices4< value_type >, jau::math::util::SyncMatrices4< value_type >, jau::math::util::SyncMatrix4< Value_type >, jau::math::util::SyncMatrix4< float >, jau::math::util::SyncMatrix4< float >, jau::math::util::SyncMatrix4< value_type >, and jau::math::util::SyncMatrix4< value_type >.