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

Method GetInt64Key

base/attribute.h:73–77  ·  view source on GitHub ↗

Family of Get... methods. Return values if requested type matches the stored one.

Source from the content-addressed store, hash-verified

71 // Family of Get... methods. Return values if requested type matches the
72 // stored one.
73 absl::optional<int64_t> GetInt64Key() const {
74 return absl::holds_alternative<int64_t>(value_)
75 ? absl::optional<int64_t>(absl::get<1>(value_))
76 : absl::nullopt;
77 }
78
79 absl::optional<uint64_t> GetUint64Key() const {
80 return absl::holds_alternative<uint64_t>(value_)

Callers 8

TESTFunction · 0.80
TEST_PFunction · 0.80
ListIndexFromQualifierFunction · 0.80
MapKeyFromQualifierFunction · 0.80
ToStringFunction · 0.80
LookupMapValueFunction · 0.80
CheckListIndexMethod · 0.80

Calls

no outgoing calls

Tested by 3

TESTFunction · 0.64
TEST_PFunction · 0.64
ToStringFunction · 0.64