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

bool Rosegarden::EventSelection::contains ( Event e  )  const

Test whether a given Event (in the Segment) is part of this selection.

Definition at line 137 of file Selection.C.

References m_segmentEvents.

Referenced by addEvent(), addFromSelection(), NotationSelector::drag(), getRanges(), NotationView::setCurrentSelection(), and MatrixView::setCurrentSelection().

    std::pair<eventcontainer::const_iterator, eventcontainer::const_iterator> 
      interval = m_segmentEvents.equal_range(e);

    for (eventcontainer::const_iterator it = interval.first;
         it != interval.second; ++it)
        if (*it == e) return true;

    return false;

Generated by  Doxygen 1.6.0   Back to index