keyset.pxd 451 B

12345678910111213141516171819
  1. cimport lakesuperior.cy_include.collections as cc
  2. from lakesuperior.model.base cimport (
  3. KeyIdx, Key, DoubleKey, TripleKey, Buffer
  4. )
  5. ctypedef bint (*key_cmp_fn_t)(
  6. const TripleKey* spok, const KeyIdx* k1, const KeyIdx* k2
  7. )
  8. cdef class Keyset:
  9. cdef:
  10. readonly size_t ct, size
  11. cc.Array* data
  12. cc.ArrayConf conf
  13. Keyset lookup(
  14. self, const KeyIdx* sk, const KeyIdx* pk, const KeyIdx* ok
  15. )