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

Method ClearCachedValues

eval/public/activation.cc:104–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104int Activation::ClearCachedValues() {
105 int n = 0;
106 for (auto& entry : value_map_) {
107 if (entry.second.HasProducer()) {
108 if (entry.second.ClearValue()) {
109 n++;
110 }
111 }
112 }
113 return n;
114}
115
116} // namespace runtime
117} // namespace expr

Callers 1

TESTFunction · 0.80

Calls 2

HasProducerMethod · 0.80
ClearValueMethod · 0.80

Tested by 1

TESTFunction · 0.64