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

SyncBuffer interface with a single underlying Matrix4. More...

#include <syncbuffer.hpp>

Inheritance diagram for jau::math::util::SyncMatrix4< Value_type, >:
Collaboration diagram for jau::math::util::SyncMatrix4< Value_type, >:

Public Types

typedef Matrix4< value_type, std::is_floating_point_v< value_type > > Mat4
 
typedef Value_type value_type
 

Public Member Functions

size_t byteCount () const noexcept
 Returns the byte size of all elements, i.e.
 
size_t bytesPerComp () const noexcept
 The component's size in bytes.
 
const jau::type_infocompSignature () const noexcept override
 Returns type signature of implementing class's stored component value type.
 
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().
 
size_t elementCount () const noexcept
 Returns element count.
 
const value_typefloats () const noexcept
 Return the underlying float data buffer.
 
virtual const Mat4matrix () const noexcept=0
 Return the underlying Mat4, used to synchronize via action() to the buffer().
 
std::string toString () const override
 
- Public Member Functions inherited from jau::math::util::SyncBuffer
virtual ~SyncBuffer () noexcept=default
 
virtual sync_action_taction () noexcept=0
 Return the defined sync_action_t.
 
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<typename Value_type, std::enable_if_t< std::is_floating_point_v< Value_type >, bool > = true>
class jau::math::util::SyncMatrix4< Value_type, >

SyncBuffer interface with a single underlying Matrix4.

Definition at line 87 of file syncbuffer.hpp.

Member Typedef Documentation

◆ value_type

template<typename Value_type, std::enable_if_t< std::is_floating_point_v< Value_type >, bool > = true>
typedef Value_type jau::math::util::SyncMatrix4< Value_type, >::value_type

Definition at line 89 of file syncbuffer.hpp.

◆ Mat4

template<typename Value_type, std::enable_if_t< std::is_floating_point_v< Value_type >, bool > = true>
typedef Matrix4<value_type, std::is_floating_point_v<value_type> > jau::math::util::SyncMatrix4< Value_type, >::Mat4

Definition at line 90 of file syncbuffer.hpp.

Member Function Documentation

◆ matrix()

template<typename Value_type, std::enable_if_t< std::is_floating_point_v< Value_type >, bool > = true>
virtual const Mat4 & jau::math::util::SyncMatrix4< Value_type, >::matrix ( ) const
pure virtualnoexcept

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

Here is the caller graph for this function:

◆ floats()

template<typename Value_type, std::enable_if_t< std::is_floating_point_v< Value_type >, bool > = true>
const value_type * jau::math::util::SyncMatrix4< Value_type, >::floats ( ) const
inlinenoexcept

Return the underlying float data buffer.

Definition at line 96 of file syncbuffer.hpp.

Here is the caller graph for this function:

◆ data()

template<typename Value_type, std::enable_if_t< std::is_floating_point_v< Value_type >, bool > = true>
const void * jau::math::util::SyncMatrix4< Value_type, >::data ( ) const
inlineoverridevirtualnoexcept

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

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

Definition at line 98 of file syncbuffer.hpp.

◆ compSignature()

template<typename Value_type, std::enable_if_t< std::is_floating_point_v< Value_type >, bool > = true>
const jau::type_info & jau::math::util::SyncMatrix4< Value_type, >::compSignature ( ) const
inlineoverridevirtualnoexcept

Returns type signature of implementing class's stored component value type.

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

Definition at line 100 of file syncbuffer.hpp.

Here is the caller graph for this function:

◆ bytesPerComp()

template<typename Value_type, std::enable_if_t< std::is_floating_point_v< Value_type >, bool > = true>
size_t jau::math::util::SyncMatrix4< Value_type, >::bytesPerComp ( ) const
inlinenoexcept

The component's size in bytes.

Definition at line 102 of file syncbuffer.hpp.

Here is the caller graph for this function:

◆ compsPerElem()

template<typename Value_type, std::enable_if_t< std::is_floating_point_v< Value_type >, bool > = true>
size_t jau::math::util::SyncMatrix4< Value_type, >::compsPerElem ( ) const
inlinenoexcept

The number of components per element.

Definition at line 104 of file syncbuffer.hpp.

Here is the caller graph for this function:

◆ elementCount()

template<typename Value_type, std::enable_if_t< std::is_floating_point_v< Value_type >, bool > = true>
size_t jau::math::util::SyncMatrix4< Value_type, >::elementCount ( ) const
inlinenoexcept

Returns element count.

One element consist compsPerElem() components.

Definition at line 106 of file syncbuffer.hpp.

Here is the caller graph for this function:

◆ byteCount()

template<typename Value_type, std::enable_if_t< std::is_floating_point_v< Value_type >, bool > = true>
size_t jau::math::util::SyncMatrix4< Value_type, >::byteCount ( ) const
inlinenoexcept

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

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

Definition at line 108 of file syncbuffer.hpp.

Here is the caller graph for this function:

◆ toString()

template<typename Value_type, std::enable_if_t< std::is_floating_point_v< Value_type >, bool > = true>
std::string jau::math::util::SyncMatrix4< Value_type, >::toString ( ) const
inlineoverridevirtual

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

Definition at line 110 of file syncbuffer.hpp.


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