*/
bool is_monotonic () const;
+ uint32_t count () const;
+
/** Test if this mapping is a subset
* @param superset to test against
* @returns true if all mapping are also present in the superset
return true;
}
+uint32_t
+ChanMapping::count () const
+{
+ uint32_t rv = 0;
+ const Mappings& mp (mappings());
+ for (Mappings::const_iterator tm = mp.begin(); tm != mp.end(); ++tm) {
+ rv += tm->second.size ();
+ }
+ return rv;
+}
+
} // namespace ARDOUR
std::ostream& operator<<(std::ostream& o, const ARDOUR::ChanMapping& cm)