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

Method operator[]

tools/flatbuffers_backed_impl.h:34–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 struct FieldList : public CelList {
33 int size() const override { return fields->size(); }
34 CelValue operator[](int index) const override {
35 auto name = fields->Get(index)->name();
36 return CelValue::CreateStringView(
37 absl::string_view(name->c_str(), name->size()));
38 }
39 const flatbuffers::Vector<flatbuffers::Offset<reflection::Field>>* fields;
40 };
41 FieldList keys_;

Callers

nothing calls this directly

Calls 3

nameMethod · 0.45
GetMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected