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

Method id

eval/eval/evaluator_core.h:83–83  ·  view source on GitHub ↗

Returns corresponding expression object ID. Requires that the input expression has IDs assigned to sub-expressions, e.g. via a checker. The default value 0 is returned if there is no expression associated (e.g. a jump step), or if there is no ID assigned to the corresponding expression. Useful for error scenarios where information from Expr object is needed to create CelError.

Source from the content-addressed store, hash-verified

81 // the corresponding expression. Useful for error scenarios where information
82 // from Expr object is needed to create CelError.
83 int64_t id() const { return id_; }
84
85 // Returns if the execution step comes from AST.
86 bool comes_from_ast() const { return comes_from_ast_; }

Callers 15

operator()Method · 0.45
operator()Method · 0.45
AstRewriteFunction · 0.45
operator()Method · 0.45
operator()Method · 0.45
PostVisitRewriteMethod · 0.45
PostVisitIdentMethod · 0.45
PostVisitConstMethod · 0.45
PostVisitIdentMethod · 0.45
PostVisitSelectMethod · 0.45
MakeTernaryRecursiveMethod · 0.45

Calls

no outgoing calls

Tested by 5

PostVisitRewriteMethod · 0.36
PostVisitIdentMethod · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36