Ardour
9.0-pre0-582-g084a23a80d
|
#include <property_list.h>
Public Member Functions | |
OwnedPropertyList () | |
bool | add (PropertyBase &p) |
Public Member Functions inherited from PBD::PropertyList | |
PropertyList () | |
PropertyList (PropertyList const &) | |
virtual | ~PropertyList () |
void | get_changes_as_xml (XMLNode *) |
void | invert () |
bool | add (PropertyBase *prop) |
template<typename T , typename V > | |
bool | add (PropertyDescriptor< T > pid, const V &v) |
template<typename T > | |
bool | remove (PropertyDescriptor< T > pid) |
Additional Inherited Members | |
Protected Attributes inherited from PBD::PropertyList | |
bool | _property_owner |
Persistent Property List
A variant of PropertyList that does not delete its property list in its destructor. Objects with their own Properties store them in an OwnedPropertyList to avoid having them deleted at the wrong time.
Definition at line 72 of file property_list.h.
PBD::OwnedPropertyList::OwnedPropertyList | ( | ) |
bool PBD::OwnedPropertyList::add | ( | PropertyBase & | p | ) |
Add a property to the List
Classes that own property lists use this to add their property members to their plists. Note that it takes a reference argument rather than a pointer like one of the add() methods in PropertyList.