forked from cel-expr/cel-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconst_value_step.h
More file actions
29 lines (22 loc) · 968 Bytes
/
Copy pathconst_value_step.h
File metadata and controls
29 lines (22 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_CONST_VALUE_STEP_H_
#define THIRD_PARTY_CEL_CPP_EVAL_EVAL_CONST_VALUE_STEP_H_
#include "eval/eval/evaluator_core.h"
#include "eval/public/activation.h"
#include "eval/public/cel_value.h"
namespace google {
namespace api {
namespace expr {
namespace runtime {
absl::optional<CelValue> ConvertConstant(
const google::api::expr::v1alpha1::Constant* const_expr);
// Factory method for Constant - based Execution step
absl::StatusOr<std::unique_ptr<ExpressionStep>> CreateConstValueStep(
CelValue value, int64_t expr_id, bool comes_from_ast = true);
// Factory method for Constant(Enum value) - based Execution step
absl::StatusOr<std::unique_ptr<ExpressionStep>> CreateConstValueStep(
const google::protobuf::EnumValueDescriptor* value_descriptor, int64_t expr_id);
} // namespace runtime
} // namespace expr
} // namespace api
} // namespace google
#endif // THIRD_PARTY_CEL_CPP_EVAL_EVAL_CONST_VALUE_STEP_H_