Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
ParticleParamTypes::Parameter< T, PN > Struct Template Reference

#include <particles.h>

+ Collaboration diagram for ParticleParamTypes::Parameter< T, PN >:

Public Types

using ValType = T
 
using pickFactors = float[PN]
 
using This = Parameter<T, PN>
 

Public Member Functions

 Parameter ()=default
 
template<typename... Args>
 Parameter (Args... args)
 
virtual void serialize (std::ostream &os) const
 
virtual void deSerialize (std::istream &is)
 
virtual T interpolate (float fac, const This &against) const
 
 operator T () const
 
operator= (T b)
 

Static Public Member Functions

static T pick (float *f, const This &a, const This &b)
 

Public Attributes

val = T()
 

Member Typedef Documentation

◆ pickFactors

template<typename T , size_t PN>
using ParticleParamTypes::Parameter< T, PN >::pickFactors = float[PN]

◆ This

template<typename T , size_t PN>
using ParticleParamTypes::Parameter< T, PN >::This = Parameter<T, PN>

◆ ValType

template<typename T , size_t PN>
using ParticleParamTypes::Parameter< T, PN >::ValType = T

Constructor & Destructor Documentation

◆ Parameter() [1/2]

template<typename T , size_t PN>
ParticleParamTypes::Parameter< T, PN >::Parameter ( )
default

◆ Parameter() [2/2]

template<typename T , size_t PN>
template<typename... Args>
ParticleParamTypes::Parameter< T, PN >::Parameter ( Args... args)
inline

Member Function Documentation

◆ deSerialize()

template<typename T , size_t PN>
virtual void ParticleParamTypes::Parameter< T, PN >::deSerialize ( std::istream & is)
inlinevirtual

References ParticleParamTypes::deSerializeParameterValue().

+ Here is the call graph for this function:

◆ interpolate()

template<typename T , size_t PN>
virtual T ParticleParamTypes::Parameter< T, PN >::interpolate ( float fac,
const This & against ) const
inlinevirtual

◆ operator T()

template<typename T , size_t PN>
ParticleParamTypes::Parameter< T, PN >::operator T ( ) const
inline

◆ operator=()

template<typename T , size_t PN>
T ParticleParamTypes::Parameter< T, PN >::operator= ( T b)
inline

◆ pick()

template<typename T , size_t PN>
static T ParticleParamTypes::Parameter< T, PN >::pick ( float * f,
const This & a,
const This & b )
inlinestatic

◆ serialize()

template<typename T , size_t PN>
virtual void ParticleParamTypes::Parameter< T, PN >::serialize ( std::ostream & os) const
inlinevirtual

References ParticleParamTypes::serializeParameterValue().

+ Here is the call graph for this function:

Member Data Documentation

◆ val


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