-struct PortMatrixBundleChannel {
- PortMatrixBundleChannel () : channel (0) {}
- PortMatrixBundleChannel (boost::shared_ptr<ARDOUR::Bundle> b, uint32_t c)
- : bundle (b), channel (c) {}
-
- bool operator== (PortMatrixBundleChannel const& other) const {
- return bundle == other.bundle && channel == other.channel;
- }
- bool operator!= (PortMatrixBundleChannel const& other) const {
- return bundle != other.bundle || channel != other.channel;
- }
-
- uint32_t nchannels (ARDOUR::BundleList const& bl) const {
- uint32_t n = 0;
- ARDOUR::BundleList::const_iterator i = bl.begin();
- while (i != bl.end() && *i != bundle) {
- n += (*i)->nchannels ();
- ++i;
- }
- n += channel;
- return n;
- }
-
- boost::shared_ptr<ARDOUR::Bundle> bundle;
- uint32_t channel;
-};
-
-struct PortMatrixNode {