Jamba C++ API  5.1.1
RTJmbInParameter< T > Class Template Reference

Templated class for RT Jamba Inbound parameter. More...

#include <RTJmbInParameter.h>

Inherits IRTJmbInParameter.

Public Types

using ParamType = T
 

Public Member Functions

JmbParamDef< T > const * getParamDefT () const
 
bool hasUpdate () const override
 
ParamType const * last () const
 
ParamTypepop ()
 
ParamType const * popOrLast ()
 
tresult readFromMessage (Message const &iMessage) override
 
 RTJmbInParameter (std::shared_ptr< JmbParamDef< T >> iParamDef)
 
void writeToStream (std::ostream &oStream) const override
 
- Public Member Functions inherited from IRTJmbInParameter
IJmbParamDef const * getParamDef () const
 
ParamID getParamID () const
 
tresult handleMessage (Message const &iMessage) override
 
 IRTJmbInParameter (std::shared_ptr< IJmbParamDef > iParamDef)
 
 ~IRTJmbInParameter () override=default
 
- Public Member Functions inherited from IMessageHandler
virtual ~IMessageHandler ()=default
 

Private Attributes

Concurrent::LockFree::SingleElementQueue< T > fUpdateQueue {}
 

Additional Inherited Members

- Protected Attributes inherited from IRTJmbInParameter
std::shared_ptr< IJmbParamDef > fParamDef
 

Detailed Description

template<typename T>
class pongasoft::VST::RT::RTJmbInParameter< T >

Templated class for RT Jamba Inbound parameter.

The GUI thread calls readFromMessage to extract the value and store it in the queue. The RT thread will later extract the value from the queue and store it locally.

Template Parameters
T

Member Typedef Documentation

◆ ParamType

using ParamType = T

Constructor & Destructor Documentation

◆ RTJmbInParameter()

RTJmbInParameter ( std::shared_ptr< JmbParamDef< T >>  iParamDef)
inlineexplicit

Member Function Documentation

◆ getParamDefT()

JmbParamDef<T> const* getParamDefT ( ) const
inline

◆ hasUpdate()

bool hasUpdate ( ) const
inlineoverridevirtual

Implements IRTJmbInParameter.

◆ last()

ParamType const* last ( ) const
inline

◆ pop()

ParamType* pop ( )
inline

◆ popOrLast()

ParamType const* popOrLast ( )
inline

◆ readFromMessage()

tresult readFromMessage ( Message const &  iMessage)
overridevirtual

Implements IRTJmbInParameter.

◆ writeToStream()

void writeToStream ( std::ostream &  oStream) const
overridevirtual

Implements IRTJmbInParameter.

Member Data Documentation

◆ fUpdateQueue

Concurrent::LockFree::SingleElementQueue<T> fUpdateQueue {}
private

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