bool
IO::connected_to (boost::shared_ptr<const IO> other) const
{
+ if (!other) {
+ /* do we have any connections at all? */
+
+ for (PortSet::const_iterator p = _ports.begin(); p != _ports.end(); ++p) {
+ if (p->connected()) {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
assert (_direction != other->direction());
uint32_t i, j;