MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / object_range

Function object_range

include/jsoncons/basic_json.hpp:4708–4722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4706 }
4707
4708 object_range_type object_range()
4709 {
4710 switch (storage_kind())
4711 {
4712 case json_storage_kind::empty_object:
4713 return object_range_type(object_iterator(), object_iterator());
4714 case json_storage_kind::object:
4715 return object_range_type(object_iterator(cast<object_storage>().value().begin()),
4716 object_iterator(cast<object_storage>().value().end()));
4717 case json_storage_kind::json_ref:
4718 return cast<json_ref_storage>().value().object_range();
4719 default:
4720 JSONCONS_THROW(json_runtime_error<std::domain_error>("Not an object"));
4721 }
4722 }
4723
4724 const_object_range_type object_range() const
4725 {

Callers 2

findFunction · 0.85
eraseFunction · 0.85

Calls 4

storage_kindFunction · 0.85
beginMethod · 0.45
valueMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected