Logo Search packages:      
Sourcecode: patchage version File versions  Download package

Port *const PatchBay::Module::port ( const string &  port_name  )  const [inline]

Find a port on this module.

Profiling has shown this to be performance critical, hence the inlining. Making this faster would be a very good idea - better data structure?

Definition at line 94 of file Module.h.

{
      for (PortList::const_iterator i = m_ports.begin(); i != m_ports.end(); ++i)
            if ((*i)->name() == port_name)
                  return (*i);
      return NULL;
}


Generated by  Doxygen 1.6.0   Back to index