MCPcopy Create free account
hub / github.com/activeloopai/deeplake / processor

Class processor

cpp/icm/const_json.hpp:35–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 using rapid_array_const_iterator = rapidjson::Value::ConstValueIterator;
34
35 struct processor
36 {
37 std::shared_ptr<rapidjson::Document> doc_;
38 explicit processor(std::shared_ptr<rapidjson::Document> doc)
39 : doc_(std::move(doc))
40 {
41 }
42
43 std::pair<std::string_view, const_json> operator()(const rapid_const_iter::value_type& value) const
44 {
45 return {
46 std::string_view(value.name.GetString(), value.name.GetStringLength()),
47 const_json(value.value, doc_)
48 };
49 }
50
51 const_json operator()(const rapidjson::Value& value) const
52 {
53 return const_json(value, doc_);
54 }
55 };
56
57 auto make_iterator(const rapid_const_iter& it) const
58 {

Callers 1

make_iteratorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected