ardour
|
A list of PortGroups. More...
#include <port_group.h>
Public Types | |
typedef std::vector < boost::shared_ptr< PortGroup > > | List |
Public Member Functions | |
PortGroupList () | |
~PortGroupList () | |
void | add_group (boost::shared_ptr< PortGroup >) |
void | add_group_if_not_empty (boost::shared_ptr< PortGroup >) |
void | gather (ARDOUR::Session *, ARDOUR::DataType, bool, bool, bool) |
PortGroup::BundleList const & | bundles () const |
void | clear () |
void | remove_bundle (boost::shared_ptr< ARDOUR::Bundle >) |
ARDOUR::ChanCount | total_channels () const |
uint32_t | size () const |
boost::shared_ptr< ARDOUR::IO > | io_from_bundle (boost::shared_ptr< ARDOUR::Bundle >) const |
void | suspend_signals () |
void | resume_signals () |
List::const_iterator | begin () const |
List::const_iterator | end () const |
bool | empty () const |
Public Attributes | |
PBD::Signal0< void > | Changed |
PBD::Signal1< void, ARDOUR::Bundle::Change > | BundleChanged |
Private Member Functions | |
bool | port_has_prefix (std::string const &, std::string const &) const |
std::string | common_prefix (std::vector< std::string > const &) const |
std::string | common_prefix_before (std::vector< std::string > const &, std::string const &) const |
void | emit_changed () |
void | emit_bundle_changed (ARDOUR::Bundle::Change) |
boost::shared_ptr< ARDOUR::Bundle > | make_bundle_from_ports (std::vector< std::string > const &, ARDOUR::DataType, bool) const |
void | maybe_add_processor_to_list (boost::weak_ptr< ARDOUR::Processor >, std::list< boost::shared_ptr< ARDOUR::IO > > *, bool, std::set< boost::shared_ptr< ARDOUR::IO > > &) |
A list of PortGroups.
Definition at line 100 of file port_group.h.
typedef std::vector<boost::shared_ptr<PortGroup> > PortGroupList::List |
Definition at line 106 of file port_group.h.
PortGroupList::PortGroupList | ( | ) |
PortGroupList constructor.
Definition at line 269 of file port_group.cc.
PortGroupList::~PortGroupList | ( | ) |
Definition at line 275 of file port_group.cc.
void PortGroupList::add_group | ( | boost::shared_ptr< PortGroup > | g | ) |
Definition at line 718 of file port_group.cc.
void PortGroupList::add_group_if_not_empty | ( | boost::shared_ptr< PortGroup > | g | ) |
Definition at line 710 of file port_group.cc.
|
inline |
Definition at line 123 of file port_group.h.
PortGroup::BundleList const & PortGroupList::bundles | ( | ) | const |
Definition at line 686 of file port_group.cc.
void PortGroupList::clear | ( | ) |
Definition at line 677 of file port_group.cc.
|
private |
Definition at line 660 of file port_group.cc.
|
private |
Definition at line 632 of file port_group.cc.
|
private |
Definition at line 749 of file port_group.cc.
|
private |
Definition at line 739 of file port_group.cc.
bool PortGroupList::empty | ( | ) | const |
Definition at line 795 of file port_group.cc.
|
inline |
Definition at line 127 of file port_group.h.
void PortGroupList::gather | ( | ARDOUR::Session * | session, |
ARDOUR::DataType | type, | ||
bool | inputs, | ||
bool | allow_dups, | ||
bool | use_session_bundles | ||
) |
Gather ports from around the system and put them in this PortGroupList.
type | Type of ports to collect, or NIL for all types. |
use_session_bundles | true to use the session's non-user bundles. Doing this will mean that hardware ports will be gathered into stereo pairs, as the session sets up bundles for these pairs. Not using the session bundles will mean that all hardware IO will be presented separately. |
Definition at line 329 of file port_group.cc.
boost::shared_ptr< IO > PortGroupList::io_from_bundle | ( | boost::shared_ptr< ARDOUR::Bundle > | b | ) | const |
Definition at line 780 of file port_group.cc.
|
private |
Definition at line 603 of file port_group.cc.
|
private |
Definition at line 281 of file port_group.cc.
|
private |
Definition at line 626 of file port_group.cc.
void PortGroupList::remove_bundle | ( | boost::shared_ptr< ARDOUR::Bundle > | b | ) |
Definition at line 729 of file port_group.cc.
void PortGroupList::resume_signals | ( | ) |
Definition at line 764 of file port_group.cc.
|
inline |
Definition at line 115 of file port_group.h.
void PortGroupList::suspend_signals | ( | ) |
Definition at line 758 of file port_group.cc.
ChanCount PortGroupList::total_channels | ( | ) | const |
Definition at line 698 of file port_group.cc.
|
private |
Definition at line 152 of file port_group.h.
|
mutableprivate |
Definition at line 150 of file port_group.h.
|
private |
Definition at line 153 of file port_group.h.
|
private |
Definition at line 151 of file port_group.h.
|
private |
Definition at line 156 of file port_group.h.
|
private |
Definition at line 155 of file port_group.h.
|
private |
Definition at line 154 of file port_group.h.
PBD::Signal1<void,ARDOUR::Bundle::Change> PortGroupList::BundleChanged |
A bundle in one of our groups has changed
Definition at line 137 of file port_group.h.
PBD::Signal0<void> PortGroupList::Changed |
The group list has changed in some way; a group has been added or removed, or the list cleared etc.
Definition at line 134 of file port_group.h.