MCPcopy Create free account
hub / github.com/ValveSoftware/Proton / get

Method get

vrclient_x64/jsoncpp.cpp:3476–3488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3474}
3475
3476Value Value::get(ArrayIndex index, const Value& defaultValue) const {
3477 const Value* value = &((*this)[index]);
3478 if ( value == &nullRef )
3479 {
3480 return defaultValue;
3481 }
3482 else
3483 {
3484 Value result = *value;
3485 result.default_value_ = new Value( defaultValue );
3486 return result;
3487 }
3488}
3489
3490bool Value::isValidIndex(ArrayIndex index) const { return index < size(); }
3491

Callers 13

is_manual_methodFunction · 0.80
__init__Method · 0.80
methodsMethod · 0.80
handle_method_cppFunction · 0.80
param_callFunction · 0.80
handle_method_cFunction · 0.80
is_manual_methodFunction · 0.80
__init__Method · 0.80
methodsMethod · 0.80
handle_method_cppFunction · 0.80
param_callFunction · 0.80
handle_method_cFunction · 0.80

Calls 3

dataMethod · 0.80
lengthMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected