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

Method GetAttributeSpan

eval/eval/evaluator_stack.h:127–131  ·  view source on GitHub ↗

Gets the last size attribute trails of the stack. Checking that stack has enough elements is caller's responsibility. Please note that calls to Push may invalidate returned Span object.

Source from the content-addressed store, hash-verified

125 // Checking that stack has enough elements is caller's responsibility.
126 // Please note that calls to Push may invalidate returned Span object.
127 absl::Span<const AttributeTrail> GetAttributeSpan(size_t size) const {
128 ABSL_DCHECK(HasEnough(size));
129
130 return absl::Span<const AttributeTrail>(attributes_ - size, size);
131 }
132
133 // Peeks the last element of the stack.
134 // Checking that stack is not empty is caller's responsibility.

Callers 8

DoEvaluateMethod · 0.80
DoEvaluateMethod · 0.80
EvaluateMethod · 0.80
EvaluateMethod · 0.80
EvaluateMethod · 0.80
EvaluateMethod · 0.80
DoEvaluateMethod · 0.80
DoEvaluateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected