jaulib v1.4.1
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
jau::math::util::SyncMatrices4< Value_type > Class Template Reference

SyncBuffer interface with multiple underlying Matrix4. More...

#include <syncbuffer.hpp>

Inheritance diagram for jau::math::util::SyncMatrices4< Value_type >:
Collaboration diagram for jau::math::util::SyncMatrices4< Value_type >:

Public Types

typedef Matrix4< value_typeMat4
 
typedef Value_type value_type
 

Public Member Functions

 SyncMatrices4 (const Mat4 &first, size_t count, sync_action_t s=sync_action_t())
 
sync_action_taction () noexcept override
 Return the defined sync_action_t.
 
constexpr size_t byteCount () const noexcept
 Returns the byte size of all elements, i.e.
 
constexpr size_t bytesPerComp () const noexcept
 The component's size in bytes.
 
const jau::type_infocompSignature () const noexcept override
 Returns the component's value_type signature.
 
constexpr size_t compsPerElem () const noexcept
 The number of components per element.
 
const void * data () const noexcept override
 Return the underlying data buffer as bytes w/o sync action().
 
constexpr size_t elementCount () const noexcept
 Returns element count.
 
constexpr const value_typefloats () const noexcept
 Return the underlying float data buffer.
 
constexpr const Mat4matrices () const noexcept
 Return the underlying Mat4 pointer, used to synchronize via action() to the buffer().
 
constexpr size_t matrixCount () const noexcept
 Return the number of Mat4 referenced by matrices()
 
std::string toString () const override
 
- Public Member Functions inherited from jau::math::util::SyncBuffer
virtual ~SyncBuffer () noexcept=default
 
SyncBuffersync () noexcept
 The component's size in bytes.
 
const void * syncedData () noexcept
 Return the underlying data buffer as bytes after invoking sync action().
 

Detailed Description

template<jau::req::packed_floating_point Value_type>
class jau::math::util::SyncMatrices4< Value_type >

SyncBuffer interface with multiple underlying Matrix4.

Definition at line 87 of file syncbuffer.hpp.

Member Typedef Documentation

◆ value_type

Definition at line 89 of file syncbuffer.hpp.

◆ Mat4

Definition at line 90 of file syncbuffer.hpp.

Constructor & Destructor Documentation

◆ SyncMatrices4()

template<jau::req::packed_floating_point Value_type>
jau::math::util::SyncMatrices4< Value_type >::SyncMatrices4 ( const Mat4 & first,
size_t count,
sync_action_t s = sync_action_t() )
inline

Definition at line 98 of file syncbuffer.hpp.

Member Function Documentation

◆ matrices()

template<jau::req::packed_floating_point Value_type>
const Mat4 * jau::math::util::SyncMatrices4< Value_type >::matrices ( ) const
inlineconstexprnoexcept

Return the underlying Mat4 pointer, used to synchronize via action() to the buffer().

Definition at line 102 of file syncbuffer.hpp.

◆ matrixCount()

template<jau::req::packed_floating_point Value_type>
size_t jau::math::util::SyncMatrices4< Value_type >::matrixCount ( ) const
inlineconstexprnoexcept

Return the number of Mat4 referenced by matrices()

Definition at line 104 of file syncbuffer.hpp.

Here is the caller graph for this function:

◆ floats()

template<jau::req::packed_floating_point Value_type>
const value_type * jau::math::util::SyncMatrices4< Value_type >::floats ( ) const
inlineconstexprnoexcept

Return the underlying float data buffer.

Definition at line 107 of file syncbuffer.hpp.

Here is the caller graph for this function:

◆ action()

template<jau::req::packed_floating_point Value_type>
sync_action_t & jau::math::util::SyncMatrices4< Value_type >::action ( )
inlineoverridevirtualnoexcept

Return the defined sync_action_t.

Implements jau::math::util::SyncBuffer.

Definition at line 109 of file syncbuffer.hpp.

◆ data()

template<jau::req::packed_floating_point Value_type>
const void * jau::math::util::SyncMatrices4< Value_type >::data ( ) const
inlineoverridevirtualnoexcept

Return the underlying data buffer as bytes w/o sync action().

Implements jau::math::util::SyncBuffer.

Definition at line 110 of file syncbuffer.hpp.

◆ compSignature()

template<jau::req::packed_floating_point Value_type>
const jau::type_info & jau::math::util::SyncMatrices4< Value_type >::compSignature ( ) const
inlineoverridevirtualnoexcept

Returns the component's value_type signature.

Implements jau::math::util::SyncBuffer.

Definition at line 113 of file syncbuffer.hpp.

Here is the caller graph for this function:

◆ bytesPerComp()

template<jau::req::packed_floating_point Value_type>
size_t jau::math::util::SyncMatrices4< Value_type >::bytesPerComp ( ) const
inlineconstexprnoexcept

The component's size in bytes.

Definition at line 115 of file syncbuffer.hpp.

Here is the caller graph for this function:

◆ compsPerElem()

template<jau::req::packed_floating_point Value_type>
size_t jau::math::util::SyncMatrices4< Value_type >::compsPerElem ( ) const
inlineconstexprnoexcept

The number of components per element.

Definition at line 117 of file syncbuffer.hpp.

Here is the caller graph for this function:

◆ elementCount()

template<jau::req::packed_floating_point Value_type>
size_t jau::math::util::SyncMatrices4< Value_type >::elementCount ( ) const
inlineconstexprnoexcept

Returns element count.

One element consist compsPerElem() components.

Definition at line 119 of file syncbuffer.hpp.

Here is the caller graph for this function:

◆ byteCount()

template<jau::req::packed_floating_point Value_type>
size_t jau::math::util::SyncMatrices4< Value_type >::byteCount ( ) const
inlineconstexprnoexcept

Returns the byte size of all elements, i.e.

elementCount() * compsPerElem() * bytesPerComp().

Definition at line 121 of file syncbuffer.hpp.

Here is the caller graph for this function:

◆ toString()

template<jau::req::packed_floating_point Value_type>
std::string jau::math::util::SyncMatrices4< Value_type >::toString ( ) const
inlineoverridevirtual

Implements jau::math::util::SyncBuffer.

Definition at line 123 of file syncbuffer.hpp.


The documentation for this class was generated from the following file: