MCPcopy Create free account
hub / github.com/activeloopai/deeplake / value

Method value

cpp/icm/json_wrapper.hpp:680–687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678
679 template <typename T>
680 T value(std::string_view key, T default_value) const
681 {
682 ASSERT(is_object());
683 if (auto it = object_val().find(key); it != object_val().end()) {
684 return json_wrapper<true>(it->value()).get<T>();
685 }
686 return default_value;
687 }
688
689 auto items() const
690 {

Callers 8

json_wrapperMethod · 0.45
json_wrapperClass · 0.45
operator->Method · 0.45
valueMethod · 0.45
containsMethod · 0.45
operator[]Method · 0.45
key_value_pairMethod · 0.45
operator[]Method · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected