Ardour  9.0-pre0-582-g084a23a80d
ARDOUR::RegionListProperty Class Reference

#include <playlist.h>

Inheritance diagram for ARDOUR::RegionListProperty:
[legend]

Public Member Functions

 RegionListProperty (Playlist &)
 
RegionListPropertyclone () const
 
void get_content_as_xml (std::shared_ptr< Region >, XMLNode &) const
 
std::shared_ptr< Regionget_content_from_xml (XMLNode const &) const
 
- Public Member Functions inherited from PBD::SequenceProperty< std::list< std::shared_ptr< Region > > >
 SequenceProperty (PropertyID id, const std::function< void(const ChangeRecord &)> &update)
 
void invert ()
 
void get_changes_as_xml (XMLNode *history_node) const
 
virtual void get_content_as_xml (typename ChangeContainer::value_type, XMLNode &) const=0
 
bool set_value (XMLNode const &)
 
void get_value (XMLNode &node) const
 
bool changed () const
 
void clear_changes ()
 
void apply_change (PropertyBase const *p)
 
void update (const ChangeRecord &cr)
 
void get_changes_as_properties (PBD::PropertyList &changes, Command *cmd) const
 
SequenceProperty< std::list< std::shared_ptr< Region > > > * clone_from_xml (XMLNode const &node) const
 
void clear_owned_changes ()
 
void rdiff (std::vector< PBD::Command * > &cmds) const
 
std::list< std::shared_ptr< Region > > rlist () const
 
Container::iterator begin ()
 
Container::const_iterator begin () const
 
Container::iterator end ()
 
Container::const_iterator end () const
 
Container::reverse_iterator rbegin ()
 
Container::const_reverse_iterator rbegin () const
 
Container::reverse_iterator rend ()
 
Container::const_reverse_iterator rend () const
 
Container::iterator insert (typename Container::iterator i, const typename Container::value_type &v)
 
Container::iterator erase (typename Container::iterator i)
 
Container::iterator erase (typename Container::iterator f, typename Container::iterator l)
 
void remove (const typename Container::value_type &v)
 
void push_back (const typename Container::value_type &v)
 
void push_front (const typename Container::value_type &v)
 
void pop_front ()
 
void pop_back ()
 
void clear ()
 
Container::size_type size () const
 
bool empty () const
 
std::list< std::shared_ptr< Region > > & operator= (const std::list< std::shared_ptr< Region > > &other)
 
Container::reference front ()
 
Container::const_reference front () const
 
Container::reference back ()
 
Container::const_reference back () const
 
void sort ()
 
void sort (BinaryPredicate comp)
 
const ChangeRecord & changes () const
 
- Public Member Functions inherited from PBD::PropertyBase
 PropertyBase (PropertyID pid)
 
virtual ~PropertyBase ()
 
const gchar * property_name () const
 
PropertyID property_id () const
 
bool operator== (PropertyID pid) const
 

Private Member Functions

RegionListPropertycreate () const
 
 RegionListProperty (RegionListProperty const &p)
 

Private Attributes

Playlist_playlist
 

Friends

class Playlist
 

Additional Inherited Members

- Public Types inherited from PBD::SequenceProperty< std::list< std::shared_ptr< Region > > >
typedef std::set< typename Container::value_type > ChangeContainer
 
- Protected Member Functions inherited from PBD::SequenceProperty< std::list< std::shared_ptr< Region > > >
 SequenceProperty (SequenceProperty< std::list< std::shared_ptr< Region > > > const &p)
 
- Protected Member Functions inherited from PBD::PropertyBase
 PropertyBase (PropertyBase const &b)
 
- Protected Attributes inherited from PBD::SequenceProperty< std::list< std::shared_ptr< Region > > >
std::list< std::shared_ptr< Region > > _val
 our actual container of things More...
 
ChangeRecord _changes
 changes to the container (adds/removes) that have happened since clear_changes() was last called More...
 
std::function< void(const ChangeRecord &)> _update_callback
 

Detailed Description

Definition at line 69 of file playlist.h.

Constructor & Destructor Documentation

◆ RegionListProperty() [1/2]

ARDOUR::RegionListProperty::RegionListProperty ( Playlist )

◆ RegionListProperty() [2/2]

ARDOUR::RegionListProperty::RegionListProperty ( RegionListProperty const &  p)
private

Member Function Documentation

◆ clone()

RegionListProperty* ARDOUR::RegionListProperty::clone ( ) const
virtual

Implements PBD::PropertyBase.

◆ create()

RegionListProperty* ARDOUR::RegionListProperty::create ( ) const
privatevirtual

◆ get_content_as_xml()

void ARDOUR::RegionListProperty::get_content_as_xml ( std::shared_ptr< Region ,
XMLNode  
) const

◆ get_content_from_xml()

std::shared_ptr<Region> ARDOUR::RegionListProperty::get_content_from_xml ( XMLNode const &  node) const
virtual

Given an <Add> or <Remove> node as passed into get_content_to_xml, obtain an item

Implements PBD::SequenceProperty< std::list< std::shared_ptr< Region > > >.

Friends And Related Function Documentation

◆ Playlist

friend class Playlist
friend

Definition at line 84 of file playlist.h.

Member Data Documentation

◆ _playlist

Playlist& ARDOUR::RegionListProperty::_playlist
private

Definition at line 86 of file playlist.h.


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