hash_set.pxd 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. from libcpp.pair cimport pair
  2. cdef extern from "util/generic/hash_set.h" nogil:
  3. cdef cppclass THashSet[T]:
  4. cppclass iterator:
  5. T& operator*()
  6. iterator operator++()
  7. bint operator==(iterator)
  8. bint operator!=(iterator)
  9. cppclass const_iterator(iterator):
  10. pass
  11. THashSet() except +
  12. THashSet(THashSet&) except +
  13. THashSet& operator=(THashSet&)
  14. bint operator==(THashSet&)
  15. bint operator!=(THashSet&)
  16. iterator begin()
  17. const_iterator const_begin "begin"()
  18. void clear()
  19. size_t count(T&)
  20. bint empty()
  21. iterator end()
  22. const_iterator const_end "end"()
  23. void erase(iterator) except +
  24. void erase(iterator, iterator) except +
  25. size_t erase(T&)
  26. iterator find(T&)
  27. bint contains(T&)
  28. const_iterator const_find "find"(T&)
  29. pair[iterator, bint] insert(T)
  30. iterator insert(iterator, T)
  31. size_t size()
  32. void swap(THashSet&)