LMMS
Loading...
Searching...
No Matches
AutomatableModel.h File Reference
#include <cmath>
#include <QMap>
#include <QMutex>
#include "JournallingObject.h"
#include "Model.h"
#include "TimePos.h"
#include "ValueBuffer.h"
#include "ModelVisitor.h"

Go to the source code of this file.

Classes

class  lmms::AutomatableModel
struct  lmms::AutomatableModel::DCastVisitor< Target >
struct  lmms::AutomatableModel::ConstDCastVisitor< Target >
class  lmms::TypedAutomatableModel< T >
class  lmms::FloatModel
class  lmms::IntModel
class  lmms::BoolModel

Namespaces

namespace  lmms

Macros

#define mapPropertyFromModelPtr(type, getfunc, setfunc, modelname)
#define mapPropertyFromModel(type, getfunc, setfunc, modelname)
#define MODEL_IS_VISITABLE

Typedefs

using lmms::AutomatedValueMap = QMap<AutomatableModel*, float>

Macro Definition Documentation

◆ mapPropertyFromModel

#define mapPropertyFromModel ( type,
getfunc,
setfunc,
modelname )
Value:
public: \
type getfunc() const \
{ \
return (type) modelname.value(); \
} \
public slots: \
void setfunc( const type val ) \
{ \
modelname.setValue( (float) val ); \
}
CAdPlugDatabase::CRecord::RecordType type
Definition adplugdb.cpp:93
int val
Definition jpeglib.h:956
#define const
Definition zconf.h:137

◆ mapPropertyFromModelPtr

#define mapPropertyFromModelPtr ( type,
getfunc,
setfunc,
modelname )
Value:
public: \
type getfunc() const \
{ \
return (type) modelname->value(); \
} \
public slots: \
void setfunc( const type val ) \
{ \
modelname->setValue( val ); \
}

◆ MODEL_IS_VISITABLE

#define MODEL_IS_VISITABLE
Value:
void accept(ModelVisitor& v) override { v.visit(*this); } \
void accept(ConstModelVisitor& v) const override { v.visit(*this); }
unsigned v[N_MAX]
Definition inflate.c:1584