treewalk.pxd 1.1 KB

123456789101112131415161718192021222324252627282930
  1. from monoid cimport *
  2. from libcpp.list cimport list as stl_list
  3. cdef extern from "cilk/reducer_list.h" namespace "cilk":
  4. cdef cppclass reducer_list_append[T]:
  5. reducer_list_append() nogil except +
  6. reducer_list_append(stl_list[T] &) nogil except +
  7. stl_list[T] get_value() nogil
  8. stl_list[T] &get_reference() nogil
  9. void set_value(stl_list[T] &) nogil
  10. void push_back(T) nogil
  11. cdef extern from "treewalk.hpp":
  12. ctypedef unsigned long int results_type[cMAX_GENUS]
  13. void walk_children_stack(monoid m, results_type &res) nogil
  14. void walk_children_stack(monoid m, ind_t bound, results_type &res) nogil
  15. cdef cppclass ResultsReducer:
  16. ResultsReducer() nogil except +
  17. unsigned long int & operator[](ind_t i) nogil
  18. results_type &get_array() nogil
  19. void reset() nogil
  20. ResultsReducer cilk_results
  21. reducer_list_append[monoid] cilk_list_results
  22. void walk_children(const monoid &m) nogil
  23. void walk_children(const monoid &m, ind_t bound) nogil
  24. void list_children(const monoid &m, ind_t bound) nogil