ardour
Public Member Functions | Protected Attributes | List of all members
ARDOUR::MPControl< T > Class Template Reference

#include <monitor_processor.h>

Inheritance diagram for ARDOUR::MPControl< T >:
PBD::Controllable PBD::StatefulDestructible PBD::Stateful PBD::Destructible

Public Member Functions

 MPControl (T initial, const std::string &name, PBD::Controllable::Flag flag, float lower=0.0f, float upper=1.0f)
 
void set_value (double v)
 
double get_value () const
 
double internal_to_user (double i) const
 
double user_to_internal (double u) const
 
std::string get_user_string () const
 
double lower () const
 
double upper () const
 
double normal () const
 
MPControloperator= (const T &v)
 
bool operator== (const T &v) const
 
bool operator< (const T &v) const
 
bool operator<= (const T &v) const
 
bool operator> (const T &v) const
 
bool operator>= (const T &v) const
 
 operator T () const
 
val () const
 
template<>
void set_value (double v)
 
- Public Member Functions inherited from PBD::Controllable
 Controllable (const std::string &name, Flag f=Flag(0))
 
virtual ~Controllable ()
 
virtual double internal_to_interface (double i) const
 
virtual double interface_to_internal (double i) const
 
virtual float get_interface () const
 
virtual void set_interface (float percent)
 
virtual float get_user () const
 
virtual void set_user (float user_v)
 
int set_state (const XMLNode &, int version)
 
XMLNodeget_state ()
 
std::string name () const
 
bool touching () const
 
void set_touching (bool yn)
 
bool is_toggle () const
 
bool is_gain_like () const
 
Flag flags () const
 
void set_flags (Flag f)
 
- Public Member Functions inherited from PBD::Stateful
 Stateful ()
 
virtual ~Stateful ()
 
virtual bool apply_changes (PropertyBase const &)
 
PropertyChange apply_changes (PropertyList const &)
 
const OwnedPropertyListproperties () const
 
void add_property (PropertyBase &s)
 
void add_extra_xml (XMLNode &)
 
XMLNodeextra_xml (const std::string &str, bool add_if_missing=false)
 
void save_extra_xml (const XMLNode &)
 
const PBD::IDid () const
 
bool set_id (const XMLNode &)
 
void set_id (const std::string &)
 
void reset_id ()
 
void clear_changes ()
 
virtual void clear_owned_changes ()
 
PropertyListget_changes_as_properties (Command *) const
 
virtual void rdiff (std::vector< Command * > &) const
 
bool changed () const
 
virtual PropertyListproperty_factory (const XMLNode &) const
 
virtual void suspend_property_changes ()
 
virtual void resume_property_changes ()
 
bool property_changes_suspended () const
 
- Public Member Functions inherited from PBD::Destructible
 Destructible ()
 
virtual ~Destructible ()
 
void drop_references ()
 

Protected Attributes

_value
 
_lower
 
_upper
 
_normal
 
- Protected Attributes inherited from PBD::Stateful
XMLNode_extra_xml
 
XMLNode_instant_xml
 
PBD::PropertyChange _pending_changed
 
Glib::Threads::Mutex _lock
 
std::string _xml_node_name
 name of node to use for this object in XML More...
 
OwnedPropertyList_properties
 

Additional Inherited Members

- Public Types inherited from PBD::Controllable
enum  Flag { Toggle = 0x1, GainLike = 0x2 }
 
- Static Public Member Functions inherited from PBD::Controllable
static Controllableby_id (const PBD::ID &)
 
static Controllableby_name (const std::string &)
 
- Public Attributes inherited from PBD::Controllable
PBD::Signal0< void > LearningFinished
 
PBD::Signal0< void > Changed
 
- Public Attributes inherited from PBD::Stateful
PBD::Signal1< void, const
PropertyChange & > 
PropertyChanged
 
- Public Attributes inherited from PBD::Destructible
PBD::Signal0< void > Destroyed
 
PBD::Signal0< void > DropReferences
 
- Static Public Attributes inherited from PBD::Controllable
static PBD::Signal3< void,
PBD::Controllable *, int, int > 
CreateBinding
 
static PBD::Signal1< void,
PBD::Controllable * > 
DeleteBinding
 
static PBD::Signal1< bool,
PBD::Controllable * > 
StartLearning
 
static PBD::Signal1< void,
PBD::Controllable * > 
StopLearning
 
static PBD::Signal1< void,
Controllable * > 
Destroyed
 
static const std::string xml_node_name = X_("Controllable")
 
- Static Public Attributes inherited from PBD::Stateful
static int current_state_version = 0
 
static int loading_state_version = 0
 
- Protected Member Functions inherited from PBD::Stateful
void add_instant_xml (XMLNode &, const std::string &directory_path)
 
XMLNodeinstant_xml (const std::string &str, const std::string &directory_path)
 
void add_properties (XMLNode &)
 
PropertyChange set_values (XMLNode const &)
 
virtual void post_set (const PropertyChange &)
 
virtual void send_change (const PropertyChange &)
 
virtual void mid_thaw (const PropertyChange &)
 

Detailed Description

template<typename T>
class ARDOUR::MPControl< T >

Definition at line 44 of file monitor_processor.h.

Constructor & Destructor Documentation

template<typename T>
ARDOUR::MPControl< T >::MPControl ( initial,
const std::string &  name,
PBD::Controllable::Flag  flag,
float  lower = 0.0f,
float  upper = 1.0f 
)
inline

Definition at line 46 of file monitor_processor.h.

Member Function Documentation

template<typename T>
std::string ARDOUR::MPControl< T >::get_user_string ( ) const
inlinevirtual

Reimplemented from PBD::Controllable.

Definition at line 72 of file monitor_processor.h.

template<typename T>
double ARDOUR::MPControl< T >::get_value ( void  ) const
inlinevirtual

Implements PBD::Controllable.

Definition at line 65 of file monitor_processor.h.

template<typename T>
double ARDOUR::MPControl< T >::internal_to_user ( double  i) const
inlinevirtual

Reimplemented from PBD::Controllable.

Definition at line 69 of file monitor_processor.h.

template<typename T>
double ARDOUR::MPControl< T >::lower ( ) const
inlinevirtual

Reimplemented from PBD::Controllable.

Definition at line 78 of file monitor_processor.h.

template<typename T>
double ARDOUR::MPControl< T >::normal ( ) const
inlinevirtual

Reimplemented from PBD::Controllable.

Definition at line 80 of file monitor_processor.h.

template<typename T>
ARDOUR::MPControl< T >::operator T ( ) const
inline

Definition at line 112 of file monitor_processor.h.

template<typename T>
bool ARDOUR::MPControl< T >::operator< ( const T &  v) const
inline

Definition at line 96 of file monitor_processor.h.

template<typename T>
bool ARDOUR::MPControl< T >::operator<= ( const T &  v) const
inline

Definition at line 100 of file monitor_processor.h.

template<typename T>
MPControl& ARDOUR::MPControl< T >::operator= ( const T &  v)
inline

Definition at line 84 of file monitor_processor.h.

template<typename T>
bool ARDOUR::MPControl< T >::operator== ( const T &  v) const
inline

Definition at line 92 of file monitor_processor.h.

template<typename T>
bool ARDOUR::MPControl< T >::operator> ( const T &  v) const
inline

Definition at line 104 of file monitor_processor.h.

template<typename T>
bool ARDOUR::MPControl< T >::operator>= ( const T &  v) const
inline

Definition at line 108 of file monitor_processor.h.

template<>
void ARDOUR::MPControl< bool >::set_value ( double  )
virtual

Get and Set `internal' value

Implements PBD::Controllable.

Definition at line 40 of file monitor_processor.cc.

template<typename T>
void ARDOUR::MPControl< T >::set_value ( double  )
inlinevirtual

Get and Set `internal' value

Implements PBD::Controllable.

Definition at line 57 of file monitor_processor.h.

template<typename T>
double ARDOUR::MPControl< T >::upper ( ) const
inlinevirtual

Reimplemented from PBD::Controllable.

Definition at line 79 of file monitor_processor.h.

template<typename T>
double ARDOUR::MPControl< T >::user_to_internal ( double  u) const
inlinevirtual

Reimplemented from PBD::Controllable.

Definition at line 70 of file monitor_processor.h.

template<typename T>
T ARDOUR::MPControl< T >::val ( ) const
inline

Definition at line 113 of file monitor_processor.h.

Member Data Documentation

template<typename T>
T ARDOUR::MPControl< T >::_lower
protected

Definition at line 117 of file monitor_processor.h.

template<typename T>
T ARDOUR::MPControl< T >::_normal
protected

Definition at line 119 of file monitor_processor.h.

template<typename T>
T ARDOUR::MPControl< T >::_upper
protected

Definition at line 118 of file monitor_processor.h.

template<typename T>
T ARDOUR::MPControl< T >::_value
protected

Definition at line 116 of file monitor_processor.h.


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