| 997 | ////////////Set convenience functions////////////////// |
| 998 | |
| 999 | bool Set::contains(Index index) const |
| 1000 | { |
| 1001 | if (!m_tree || !m_repository) |
| 1002 | return false; |
| 1003 | |
| 1004 | QMutexLocker lock(m_repository->m_mutex); |
| 1005 | |
| 1006 | SetRepositoryAlgorithms alg(m_repository->m_dataRepository, m_repository); |
| 1007 | return alg.set_contains(m_repository->m_dataRepository.itemFromIndex(m_tree), index); |
| 1008 | } |
| 1009 | |
| 1010 | Set Set::operator +(const Set& first) const |
| 1011 | { |