MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / operator[]

Method operator[]

tools/flatbuffers_backed_impl.cc:64–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 : arena_(arena), list_(list), schema_(schema), object_(object) {}
63 int size() const override { return list_ ? list_->size() : 0; }
64 CelValue operator[](int index) const override {
65 auto value = list_->Get(index);
66 return CelValue::CreateMap(google::protobuf::Arena::Create<FlatBuffersMapImpl>(
67 arena_, *value, schema_, object_, arena_));
68 }
69
70 private:
71 google::protobuf::Arena* arena_;

Callers

nothing calls this directly

Calls 2

CreateMapFunction · 0.50
GetMethod · 0.45

Tested by

no test coverage detected