Jamba  3.0.2
pongasoft::VST::EnumParamConverter< Enum, MaxValue > Class Template Reference

#include <ParamConverters.h>

Inherits pongasoft::VST::IParamConverter< Enum >.

Public Types

using ParamType = Enum
 
- Public Types inherited from pongasoft::VST::IParamConverter< Enum >
using ParamType = Enum
 

Public Member Functions

ParamType denormalize (ParamValue iNormalizedValue) const override
 
 EnumParamConverter (int iToStringOffset=0)
 
 EnumParamConverter (char16 const *iFormat, int iToStringOffset=0)
 
 EnumParamConverter (std::array< ConstString, MaxValue+1 > const &iToStringValues)
 
int getStepCount () const override
 
ParamValue normalize (ParamType const &iDiscreteValue) const override
 
void toString (ParamType const &iValue, String128 oString, int32 iPrecision) const override
 
- Public Member Functions inherited from pongasoft::VST::IParamConverter< Enum >
virtual std::string toString (ParamType const &iValue, int32 iPrecision) const
 

Private Attributes

DiscreteValueParamConverter< MaxValue > fConverter
 

Detailed Description

template<typename Enum, Enum MaxValue>
class pongasoft::VST::EnumParamConverter< Enum, MaxValue >

A converter to deal with an enum (assumes that the enum is contiguous, starts at 0 and that MaxValue is the latest value in the enum)

Member Typedef Documentation

◆ ParamType

template<typename Enum , Enum MaxValue>
using pongasoft::VST::EnumParamConverter< Enum, MaxValue >::ParamType = Enum

Constructor & Destructor Documentation

◆ EnumParamConverter() [1/3]

template<typename Enum , Enum MaxValue>
pongasoft::VST::EnumParamConverter< Enum, MaxValue >::EnumParamConverter ( int  iToStringOffset = 0)
inlineexplicit

◆ EnumParamConverter() [2/3]

template<typename Enum , Enum MaxValue>
pongasoft::VST::EnumParamConverter< Enum, MaxValue >::EnumParamConverter ( char16 const *  iFormat,
int  iToStringOffset = 0 
)
inlineexplicit

◆ EnumParamConverter() [3/3]

template<typename Enum , Enum MaxValue>
pongasoft::VST::EnumParamConverter< Enum, MaxValue >::EnumParamConverter ( std::array< ConstString, MaxValue+1 > const &  iToStringValues)
inlineexplicit

Member Function Documentation

◆ denormalize()

template<typename Enum , Enum MaxValue>
ParamType pongasoft::VST::EnumParamConverter< Enum, MaxValue >::denormalize ( ParamValue  iNormalizedValue) const
inlineoverridevirtual

◆ getStepCount()

template<typename Enum , Enum MaxValue>
int pongasoft::VST::EnumParamConverter< Enum, MaxValue >::getStepCount ( ) const
inlineoverridevirtual

◆ normalize()

template<typename Enum , Enum MaxValue>
ParamValue pongasoft::VST::EnumParamConverter< Enum, MaxValue >::normalize ( ParamType const &  iDiscreteValue) const
inlineoverridevirtual

◆ toString()

template<typename Enum , Enum MaxValue>
void pongasoft::VST::EnumParamConverter< Enum, MaxValue >::toString ( ParamType const &  iValue,
String128  oString,
int32  iPrecision 
) const
inlineoverridevirtual

Member Data Documentation

◆ fConverter

template<typename Enum , Enum MaxValue>
DiscreteValueParamConverter<MaxValue> pongasoft::VST::EnumParamConverter< Enum, MaxValue >::fConverter
private

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