MCPcopy Create free account
hub / github.com/citp/BlockSci / addCommonIteratorMethods

Function addCommonIteratorMethods

blockscipy/src/sequence_py.cpp:61–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59};
60
61void addCommonIteratorMethods(pybind11::class_<GenericIterator> &cl) {
62 cl
63 .def("_group_by", [](GenericIterator &range, SimpleProxy &grouper, SimpleProxy &eval) -> pybind11::dict {
64 return mpark::visit(GroupByVisitor{grouper, eval}, range.getGenericIterator().var);
65 })
66 .def("to_list", [](GenericIterator &range) {
67 return mpark::visit(ToListVisitor{}, range.getGenericIterator().var);
68 }, "Returns a list of all of the objects in the range");
69}

Callers

nothing calls this directly

Calls 2

visitFunction · 0.50
getGenericIteratorMethod · 0.45

Tested by

no test coverage detected