MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / Visit

Method Visit

common/values/map_value_variant.h:166–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164
165 template <typename Visitor>
166 decltype(auto) Visit(Visitor&& visitor) const {
167 switch (index_) {
168 case MapValueIndex::kCustom:
169 return std::forward<Visitor>(visitor)(Get<CustomMapValue>());
170 case MapValueIndex::kParsedField:
171 return std::forward<Visitor>(visitor)(Get<ParsedMapFieldValue>());
172 case MapValueIndex::kParsedJson:
173 return std::forward<Visitor>(visitor)(Get<ParsedJsonMapValue>());
174 case MapValueIndex::kLegacy:
175 return std::forward<Visitor>(visitor)(Get<LegacyMapValue>());
176 }
177 }
178
179 friend void swap(MapValueVariant& lhs, MapValueVariant& rhs) noexcept {
180 using std::swap;

Callers 15

GetTypeNameMethod · 0.45
DebugStringMethod · 0.45
SerializeToMethod · 0.45
ConvertToJsonMethod · 0.45
ConvertToJsonArrayMethod · 0.45
ConvertToJsonObjectMethod · 0.45
EqualMethod · 0.45
IsZeroValueMethod · 0.45
CloneMethod · 0.45
value.ccFile · 0.45
IdMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected