Ardour  9.0-pre0-582-g084a23a80d
PBD::ConfigVariableWithMutation< T > Class Template Reference

#include <configuration_variable.h>

Inheritance diagram for PBD::ConfigVariableWithMutation< T >:
[legend]

Public Member Functions

 ConfigVariableWithMutation (std::string name, T val, T(*m)(T))
 
bool set (T val)
 
void set_from_string (std::string const &s)
 
- Public Member Functions inherited from PBD::ConfigVariable< T >
 ConfigVariable (std::string str)
 
 ConfigVariable (std::string str, T val)
 
get () const
 
std::string get_as_string () const
 
- Public Member Functions inherited from PBD::ConfigVariableBase
 ConfigVariableBase (std::string str)
 
virtual ~ConfigVariableBase ()
 
std::string name () const
 
void add_to_node (XMLNode &) const
 
bool set_from_node (XMLNode const &)
 

Protected Member Functions

virtual T get_for_save ()
 
- Protected Member Functions inherited from PBD::ConfigVariableBase
void notify ()
 
void miss ()
 

Protected Attributes

unmutated_value
 
T(* mutator )(T)
 
- Protected Attributes inherited from PBD::ConfigVariable< T >
value
 
- Protected Attributes inherited from PBD::ConfigVariableBase
std::string _name
 

Detailed Description

template<class T>
class PBD::ConfigVariableWithMutation< T >

Definition at line 121 of file configuration_variable.h.

Constructor & Destructor Documentation

◆ ConfigVariableWithMutation()

template<class T >
PBD::ConfigVariableWithMutation< T >::ConfigVariableWithMutation ( std::string  name,
val,
T(*)(T)  m 
)
inline

Definition at line 124 of file configuration_variable.h.

Member Function Documentation

◆ get_for_save()

template<class T >
virtual T PBD::ConfigVariableWithMutation< T >::get_for_save ( )
inlineprotectedvirtual

Reimplemented from PBD::ConfigVariable< T >.

Definition at line 140 of file configuration_variable.h.

◆ set()

template<class T >
bool PBD::ConfigVariableWithMutation< T >::set ( val)
inlinevirtual

Reimplemented from PBD::ConfigVariable< T >.

Definition at line 127 of file configuration_variable.h.

◆ set_from_string()

template<class T >
void PBD::ConfigVariableWithMutation< T >::set_from_string ( std::string const &  s)
inlinevirtual

Reimplemented from PBD::ConfigVariable< T >.

Definition at line 135 of file configuration_variable.h.

Member Data Documentation

◆ mutator

template<class T >
T(* PBD::ConfigVariableWithMutation< T >::mutator) (T)
protected

Definition at line 142 of file configuration_variable.h.

◆ unmutated_value

template<class T >
T PBD::ConfigVariableWithMutation< T >::unmutated_value
protected

Definition at line 141 of file configuration_variable.h.


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