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

Method ListMacros

parser/macro_registry.cc:74–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74std::vector<Macro> MacroRegistry::ListMacros() const {
75 std::vector<Macro> macros;
76 macros.reserve(macros_.size());
77 for (auto it = macros_.begin(); it != macros_.end(); ++it) {
78 macros.push_back(it->second);
79 }
80 return macros;
81}
82
83bool MacroRegistry::RegisterMacroImpl(const Macro& macro) {
84 return macros_.insert(std::pair{macro.key(), macro}).second;

Callers 1

ToBuilderMethod · 0.80

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected