jaulib v1.3.0
Jau Support Library (C++, Java, ..)
Public Types | Public Member Functions | List of all members
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

const void * buffer () const noexcept override
 Return the underlying data buffer. More...
 
size_t elementCount () const noexcept override
 Returns element count, total byte size = elementSize() * elementCount() More...
 
size_t elementSize () const noexcept override
 Returns element size in bytes. More...
 
const value_typefloats () const noexcept
 Return the underlying float data buffer. More...
 
virtual const Mat4matrix () const noexcept=0
 Return the underlying Mat4, used to synchronize via action() to the buffer(). More...
 
- 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. More...
 
virtual const void * buffer () const noexcept=0
 Return the underlying data buffer. More...
 
virtual size_t elementCount () const noexcept=0
 Returns element count, total byte size = elementSize() * elementCount() More...
 
virtual size_t elementSize () const noexcept=0
 Returns element size in bytes. More...
 
SyncBuffersync () noexcept
 Synchronizes the underlying data before usage. More...
 

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 90 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 92 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 93 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 99 of file syncbuffer.hpp.

Here is the caller graph for this function:

◆ buffer()

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, >::buffer ( ) const
inlineoverridevirtualnoexcept

Return the underlying data buffer.

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

Definition at line 101 of file syncbuffer.hpp.

◆ elementSize()

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, >::elementSize ( ) const
inlineoverridevirtualnoexcept

Returns element size in bytes.

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

Definition at line 102 of file syncbuffer.hpp.

◆ 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
inlineoverridevirtualnoexcept

Returns element count, total byte size = elementSize() * elementCount()

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

Definition at line 103 of file syncbuffer.hpp.


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