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

Function Visit

common/internal/byte_string.h:331–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329
330 template <typename Visitor>
331 decltype(auto) Visit(Visitor&& visitor) const {
332 switch (GetKind()) {
333 case ByteStringKind::kSmall:
334 return std::forward<Visitor>(visitor)(GetSmall());
335 case ByteStringKind::kMedium:
336 return std::forward<Visitor>(visitor)(GetMedium());
337 case ByteStringKind::kLarge:
338 return std::forward<Visitor>(visitor)(GetLarge());
339 }
340 }
341
342 friend void swap(ByteString& lhs, ByteString& rhs) {
343 if (&lhs != &rhs) {

Callers 15

EqualsMethod · 0.70
CompareMethod · 0.70
StartsWithMethod · 0.70
EndsWithMethod · 0.70
FindMethod · 0.70
DoUnparseMethod · 0.50
VisitMethod · 0.50
VisitCallMethod · 0.50
VisitCreateListMethod · 0.50
VisitCreateStructMethod · 0.50
VisitAllMacroMethod · 0.50
VisitExistsMacroMethod · 0.50

Calls 3

GetKindFunction · 0.85
GetSmallFunction · 0.85
GetMediumFunction · 0.85

Tested by

no test coverage detected