Nugget
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
psyqo::Fragments::FixedFragmentWithPrologue< P, Prim, N > Struct Template Reference

A maximum fixed sized fragment of similar primitives. More...

#include <psyqo/fragments.hh>

Collaboration diagram for psyqo::Fragments::FixedFragmentWithPrologue< P, Prim, N >:
Collaboration graph
[legend]

Public Types

typedef Prim FragmentBaseType
 

Public Member Functions

constexpr size_t maxSize () const
 
 FixedFragmentWithPrologue ()
 
 FixedFragmentWithPrologue (const FixedFragmentWithPrologue &)=default
 
size_t getActualFragmentSize () const
 

Public Attributes

unsigned count = N
 
uint32_t head
 
prologue
 
eastl::array< Prim, N > primitives
 

Detailed Description

template<Primitive P, Primitive Prim, size_t N>
struct psyqo::Fragments::FixedFragmentWithPrologue< P, Prim, N >

A maximum fixed sized fragment of similar primitives.

This fragment contains a prologue, followed by a sequence of identical primitives. The prologue typically is used to store a setup for the rest of the primitives. The payload is a sequence of primitives of identical type. The count field needs to be updated to reflect the actual number of primitives stored in the fragment's payload. The primitive type can be a compounded structure of multiple primitive types.

Template Parameters
PThe prologue type.
TThe primitive type.
NThe maximum number of primitives in the payload.

Member Typedef Documentation

◆ FragmentBaseType

template<Primitive P, Primitive Prim, size_t N>
typedef Prim psyqo::Fragments::FixedFragmentWithPrologue< P, Prim, N >::FragmentBaseType

Constructor & Destructor Documentation

◆ FixedFragmentWithPrologue() [1/2]

template<Primitive P, Primitive Prim, size_t N>
psyqo::Fragments::FixedFragmentWithPrologue< P, Prim, N >::FixedFragmentWithPrologue ( )
inline

◆ FixedFragmentWithPrologue() [2/2]

template<Primitive P, Primitive Prim, size_t N>
psyqo::Fragments::FixedFragmentWithPrologue< P, Prim, N >::FixedFragmentWithPrologue ( const FixedFragmentWithPrologue< P, Prim, N > &  )
explicitdefault

Member Function Documentation

◆ getActualFragmentSize()

template<Primitive P, Primitive Prim, size_t N>
size_t psyqo::Fragments::FixedFragmentWithPrologue< P, Prim, N >::getActualFragmentSize ( ) const
inline

◆ maxSize()

template<Primitive P, Primitive Prim, size_t N>
constexpr size_t psyqo::Fragments::FixedFragmentWithPrologue< P, Prim, N >::maxSize ( ) const
inlineconstexpr

Member Data Documentation

◆ count

template<Primitive P, Primitive Prim, size_t N>
unsigned psyqo::Fragments::FixedFragmentWithPrologue< P, Prim, N >::count = N

◆ head

template<Primitive P, Primitive Prim, size_t N>
uint32_t psyqo::Fragments::FixedFragmentWithPrologue< P, Prim, N >::head

◆ primitives

template<Primitive P, Primitive Prim, size_t N>
eastl::array<Prim, N> psyqo::Fragments::FixedFragmentWithPrologue< P, Prim, N >::primitives

◆ prologue

template<Primitive P, Primitive Prim, size_t N>
P psyqo::Fragments::FixedFragmentWithPrologue< P, Prim, N >::prologue

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