Guitarix
gx_engine::ParamMap Class Reference

#include <gx_parameter.h>

Inheritance diagram for gx_engine::ParamMap:
Collaboration diagram for gx_engine::ParamMap:

Public Types

typedef map< string, Parameter * >::const_iterator iterator
 

Public Member Functions

 ParamMap ()
 
 ~ParamMap ()
 
void writeJSON (gx_system::JsonWriter &jw)
 
void readJSON (gx_system::JsonParser &jp)
 
ParameterreadJSON_one (gx_system::JsonParser &jp)
 
void writeJSON_one (gx_system::JsonWriter &jw, Parameter *p)
 
iterator begin () const
 
iterator end () const
 
bool hasId (const string &id) const
 
bool hasId (const char *p) const
 
void set_replace_mode (bool mode)
 
Parameteroperator[] (const string &id)
 
Parameteroperator[] (const char *p)
 
void set_init_values ()
 
void reset_unit (const PluginDef *pdef) const
 
bool unit_has_std_values (const PluginDef *pdef) const
 
sigc::signal< void, Parameter *, bool > signal_insert_remove ()
 
void unregister (Parameter *p)
 
void unregister (const string &id)
 
FloatParameterreg_par (const string &id, const string &name, float *var, float std, float lower, float upper, float step)
 
FloatParameterreg_par_non_preset (const string &id, const string &name, float *var, float std, float lower, float upper, float step)
 
FloatParameterreg_par (const string &id, const string &name, float *var, float std=0)
 
BoolParameterreg_par (const string &id, const string &name, bool *var, bool std=false, bool preset=true)
 
EnumParameterreg_enum_par (const string &id, const string &name, const value_pair *vl, int *var, int std=0)
 
EnumParameterreg_non_midi_enum_par (const string &id, const string &name, const value_pair *vl, int *var, bool preset, int std=0)
 
FloatEnumParameterreg_enum_par (const string &id, const string &name, const value_pair *vl, float *var, int std=0, int low=0)
 
BoolParameterreg_non_midi_par (const string &id, bool *var, bool preset, bool std=false)
 
IntParameterreg_non_midi_par (const string &id, int *var, bool preset, int std, int lower, int upper)
 
FloatParameterreg_non_midi_par (const string &id, float *val, bool preset, float std=0, float lower=0, float upper=1, float step=0)
 
FileParameterreg_filepar (const string &id, bool preset=false)
 
StringParameterreg_string (const string &id, const string &name, Glib::ustring *var, const string &sv, bool preset=false)
 
StringParameterreg_preset_string (const string &id, const string &name, Glib::ustring *var, const string &sv, bool preset=true)
 
void dump (const string &fmt)
 

Friends

template<class T >
class ParameterV
 

Detailed Description

Definition at line 512 of file gx_parameter.h.

Member Typedef Documentation

◆ iterator

typedef map<string, Parameter*>::const_iterator gx_engine::ParamMap::iterator

Definition at line 533 of file gx_parameter.h.

Constructor & Destructor Documentation

◆ ParamMap()

gx_engine::ParamMap::ParamMap ( )

Definition at line 1861 of file gx_paramtable.cpp.

◆ ~ParamMap()

gx_engine::ParamMap::~ParamMap ( )

Definition at line 1866 of file gx_paramtable.cpp.

Member Function Documentation

◆ begin()

iterator gx_engine::ParamMap::begin ( ) const
inline

Definition at line 534 of file gx_parameter.h.

Referenced by GxService::GxService(), and gx_preset::PresetIO::read_preset().

◆ dump()

void gx_engine::ParamMap::dump ( const string &  fmt)

Definition at line 1967 of file gx_paramtable.cpp.

Referenced by gx_engine::GxMachine::~GxMachine().

◆ end()

iterator gx_engine::ParamMap::end ( ) const
inline

Definition at line 535 of file gx_parameter.h.

Referenced by GxService::GxService(), and gx_preset::PresetIO::read_preset().

◆ hasId() [1/2]

bool gx_engine::ParamMap::hasId ( const char *  p) const
inline

Definition at line 537 of file gx_parameter.h.

◆ hasId() [2/2]

bool gx_engine::ParamMap::hasId ( const string &  id) const
inline

◆ operator[]() [1/2]

Parameter& gx_engine::ParamMap::operator[] ( const char *  p)
inline

Definition at line 543 of file gx_parameter.h.

◆ operator[]() [2/2]

Parameter& gx_engine::ParamMap::operator[] ( const string &  id)
inline

Definition at line 539 of file gx_parameter.h.

◆ readJSON()

void gx_engine::ParamMap::readJSON ( gx_system::JsonParser jp)

Definition at line 1940 of file gx_paramtable.cpp.

Referenced by gx_engine::GxMachineRemote::GxMachineRemote().

◆ readJSON_one()

Parameter * gx_engine::ParamMap::readJSON_one ( gx_system::JsonParser jp)

Definition at line 1912 of file gx_paramtable.cpp.

◆ reg_enum_par() [1/2]

FloatEnumParameter* gx_engine::ParamMap::reg_enum_par ( const string &  id,
const string &  name,
const value_pair vl,
float *  var,
int  std = 0,
int  low = 0 
)
inline

Definition at line 588 of file gx_parameter.h.

◆ reg_enum_par() [2/2]

EnumParameter* gx_engine::ParamMap::reg_enum_par ( const string &  id,
const string &  name,
const value_pair vl,
int *  var,
int  std = 0 
)
inline

Definition at line 575 of file gx_parameter.h.

◆ reg_filepar()

FileParameter* gx_engine::ParamMap::reg_filepar ( const string &  id,
bool  preset = false 
)
inline

Definition at line 611 of file gx_parameter.h.

◆ reg_non_midi_enum_par()

EnumParameter* gx_engine::ParamMap::reg_non_midi_enum_par ( const string &  id,
const string &  name,
const value_pair vl,
int *  var,
bool  preset,
int  std = 0 
)
inline

Definition at line 581 of file gx_parameter.h.

Referenced by gx_engine::GxMachine::GxMachine().

◆ reg_non_midi_par() [1/3]

BoolParameter* gx_engine::ParamMap::reg_non_midi_par ( const string &  id,
bool *  var,
bool  preset,
bool  std = false 
)
inline

Definition at line 595 of file gx_parameter.h.

Referenced by gx_engine::GxMachine::GxMachine().

◆ reg_non_midi_par() [2/3]

FloatParameter* gx_engine::ParamMap::reg_non_midi_par ( const string &  id,
float *  val,
bool  preset,
float  std = 0,
float  lower = 0,
float  upper = 1,
float  step = 0 
)
inline

Definition at line 605 of file gx_parameter.h.

◆ reg_non_midi_par() [3/3]

IntParameter* gx_engine::ParamMap::reg_non_midi_par ( const string &  id,
int *  var,
bool  preset,
int  std,
int  lower,
int  upper 
)
inline

Definition at line 600 of file gx_parameter.h.

◆ reg_par() [1/3]

BoolParameter* gx_engine::ParamMap::reg_par ( const string &  id,
const string &  name,
bool *  var,
bool  std = false,
bool  preset = true 
)
inline

Definition at line 570 of file gx_parameter.h.

◆ reg_par() [2/3]

FloatParameter* gx_engine::ParamMap::reg_par ( const string &  id,
const string &  name,
float *  var,
float  std,
float  lower,
float  upper,
float  step 
)
inline

◆ reg_par() [3/3]

FloatParameter* gx_engine::ParamMap::reg_par ( const string &  id,
const string &  name,
float *  var,
float  std = 0 
)
inline

Definition at line 565 of file gx_parameter.h.

◆ reg_par_non_preset()

FloatParameter* gx_engine::ParamMap::reg_par_non_preset ( const string &  id,
const string &  name,
float *  var,
float  std,
float  lower,
float  upper,
float  step 
)
inline

Definition at line 559 of file gx_parameter.h.

Referenced by gx_engine::GxMachine::GxMachine().

◆ reg_preset_string()

StringParameter* gx_engine::ParamMap::reg_preset_string ( const string &  id,
const string &  name,
Glib::ustring *  var,
const string &  sv,
bool  preset = true 
)
inline

Definition at line 621 of file gx_parameter.h.

◆ reg_string()

StringParameter* gx_engine::ParamMap::reg_string ( const string &  id,
const string &  name,
Glib::ustring *  var,
const string &  sv,
bool  preset = false 
)
inline

Definition at line 616 of file gx_parameter.h.

Referenced by gx_engine::GxMachine::GxMachine().

◆ reset_unit()

void gx_engine::ParamMap::reset_unit ( const PluginDef pdef) const

Definition at line 2125 of file gx_paramtable.cpp.

Referenced by gx_engine::GxMachine::reset_unit().

◆ set_init_values()

void gx_engine::ParamMap::set_init_values ( )

Definition at line 2077 of file gx_paramtable.cpp.

Referenced by gx_engine::GxMachine::set_init_values().

◆ set_replace_mode()

void gx_engine::ParamMap::set_replace_mode ( bool  mode)
inline

Definition at line 538 of file gx_parameter.h.

Referenced by gx_engine::GxEngine::ladspaloader_update_plugins().

◆ signal_insert_remove()

sigc::signal<void,Parameter*,bool> gx_engine::ParamMap::signal_insert_remove ( )
inline

Definition at line 550 of file gx_parameter.h.

Referenced by GxService::GxService().

◆ unit_has_std_values()

bool gx_engine::ParamMap::unit_has_std_values ( const PluginDef pdef) const

◆ unregister() [1/2]

void gx_engine::ParamMap::unregister ( const string &  id)

◆ unregister() [2/2]

void gx_engine::ParamMap::unregister ( Parameter p)

Definition at line 2061 of file gx_paramtable.cpp.

◆ writeJSON()

void gx_engine::ParamMap::writeJSON ( gx_system::JsonWriter jw)

Definition at line 1904 of file gx_paramtable.cpp.

◆ writeJSON_one()

void gx_engine::ParamMap::writeJSON_one ( gx_system::JsonWriter jw,
Parameter p 
)

Definition at line 1872 of file gx_paramtable.cpp.

Referenced by readJSON_one().

Friends And Related Function Documentation

◆ ParameterV

template<class T >
friend class ParameterV
friend

Definition at line 526 of file gx_parameter.h.


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