ardour
|
#include <properties.h>
Public Member Functions | |
PropertyTemplate (PropertyDescriptor< T > p, T const &v) | |
PropertyTemplate (PropertyDescriptor< T > p, T const &o, T const &c) | |
PropertyTemplate (PropertyDescriptor< T > p, PropertyTemplate< T > const &s) | |
T & | operator= (T const &v) |
PropertyTemplate< T > & | operator= (PropertyTemplate< T > const &p) |
T & | operator+= (T const &v) |
bool | operator== (const T &other) const |
bool | operator!= (const T &other) const |
operator T const & () const | |
T const & | val () const |
bool | set_value (XMLNode const &node) |
void | get_value (XMLNode &node) const |
void | clear_changes () |
bool | changed () const |
void | invert () |
void | get_changes_as_xml (XMLNode *history_node) const |
void | get_changes_as_properties (PropertyList &changes, Command *) const |
void | apply_changes (PropertyBase const *p) |
Public Member Functions inherited from PBD::PropertyBase | |
PropertyBase (PropertyID pid) | |
virtual | ~PropertyBase () |
virtual void | clear_owned_changes () |
virtual void | rdiff (std::vector< Command * > &) const |
virtual PropertyBase * | clone_from_xml (const XMLNode &) const |
virtual PropertyBase * | clone () const =0 |
const gchar * | property_name () const |
PropertyID | property_id () const |
bool | operator== (PropertyID pid) const |
Protected Member Functions | |
void | set (T const &v) |
virtual std::string | to_string (T const &v) const =0 |
virtual T | from_string (std::string const &s) const =0 |
Protected Member Functions inherited from PBD::PropertyBase | |
PropertyBase (PropertyBase const &b) | |
Protected Attributes | |
bool | _have_old |
T | _current |
T | _old |
Private Member Functions | |
PropertyTemplate (PropertyTemplate< T > const &) | |
Parent class for classes which represent a single scalar property in a Stateful object
Definition at line 40 of file properties.h.
|
inline |
Definition at line 43 of file properties.h.
|
inline |
Definition at line 49 of file properties.h.
|
inline |
Definition at line 56 of file properties.h.
|
private |
|
inlinevirtual |
Set this property's current state from another
Implements PBD::PropertyBase.
Definition at line 156 of file properties.h.
|
inlinevirtual |
Implements PBD::PropertyBase.
Definition at line 130 of file properties.h.
|
inlinevirtual |
Forget about any old changes to this property's value
Implements PBD::PropertyBase.
Definition at line 126 of file properties.h.
|
protectedpure virtual |
Implemented in PBD::EnumProperty< T >, PBD::EnumProperty< PositionLockStyle >, PBD::Property< std::string >, PBD::Property< T >, PBD::Property< gain_t >, PBD::Property< float >, PBD::Property< int >, PBD::Property< framecnt_t >, PBD::Property< bool >, PBD::Property< PositionLockStyle >, PBD::Property< framepos_t >, PBD::Property< Evoral::Beats >, and PBD::Property< uint64_t >.
|
inlinevirtual |
If this Property has changed, clone it and add it to a given list. Used for making StatefulDiffCommands.
Implements PBD::PropertyBase.
Definition at line 147 of file properties.h.
|
inlinevirtual |
Get any changes in this property as XML and add them to a StatefulDiffCommand node.
Implements PBD::PropertyBase.
Definition at line 141 of file properties.h.
|
inlinevirtual |
Get this property's value and put it into a Stateful node
Implements PBD::PropertyBase.
Definition at line 119 of file properties.h.
|
inlinevirtual |
Invert the changes in this property
Implements PBD::PropertyBase.
Definition at line 132 of file properties.h.
|
inline |
Definition at line 92 of file properties.h.
|
inline |
Definition at line 88 of file properties.h.
|
inline |
Definition at line 79 of file properties.h.
|
inline |
Definition at line 65 of file properties.h.
|
inline |
Definition at line 74 of file properties.h.
|
inline |
Definition at line 84 of file properties.h.
|
inlineprotected |
Definition at line 165 of file properties.h.
|
inlinevirtual |
Set the value of this property from a Stateful node.
Implements PBD::PropertyBase.
Definition at line 103 of file properties.h.
|
protectedpure virtual |
Implemented in PBD::EnumProperty< T >, PBD::EnumProperty< PositionLockStyle >, PBD::Property< std::string >, PBD::Property< T >, PBD::Property< gain_t >, PBD::Property< float >, PBD::Property< int >, PBD::Property< framecnt_t >, PBD::Property< bool >, PBD::Property< PositionLockStyle >, PBD::Property< framepos_t >, PBD::Property< Evoral::Beats >, and PBD::Property< uint64_t >.
|
inline |
Definition at line 96 of file properties.h.
|
protected |
Definition at line 190 of file properties.h.
|
protected |
Definition at line 189 of file properties.h.
|
protected |
Definition at line 191 of file properties.h.