MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / set_parents

Function set_parents

Source/external/json.hpp:19871–19906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19869 }
19870
19871 void set_parents()
19872 {
19873#if JSON_DIAGNOSTICS
19874 switch (m_type)
19875 {
19876 case value_t::array:
19877 {
19878 for (auto& element : *m_value.array)
19879 {
19880 element.m_parent = this;
19881 }
19882 break;
19883 }
19884
19885 case value_t::object:
19886 {
19887 for (auto& element : *m_value.object)
19888 {
19889 element.second.m_parent = this;
19890 }
19891 break;
19892 }
19893
19894 case value_t::null:
19895 case value_t::string:
19896 case value_t::boolean:
19897 case value_t::number_integer:
19898 case value_t::number_unsigned:
19899 case value_t::number_float:
19900 case value_t::binary:
19901 case value_t::discarded:
19902 default:
19903 break;
19904 }
19905#endif
19906 }
19907
19908 iterator set_parents(iterator it, typename iterator::difference_type count_set_parents)
19909 {

Callers 6

set_parentFunction · 0.85
basic_jsonFunction · 0.85
json.hppFile · 0.85
operator[]Function · 0.85
insert_iteratorFunction · 0.85
swapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected