MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / set_parents

Function set_parents

include/behaviortree_cpp/contrib/json.hpp:20005–20040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20003 }
20004
20005 void set_parents()
20006 {
20007#if JSON_DIAGNOSTICS
20008 switch (m_data.m_type)
20009 {
20010 case value_t::array:
20011 {
20012 for (auto& element : *m_data.m_value.array)
20013 {
20014 element.m_parent = this;
20015 }
20016 break;
20017 }
20018
20019 case value_t::object:
20020 {
20021 for (auto& element : *m_data.m_value.object)
20022 {
20023 element.second.m_parent = this;
20024 }
20025 break;
20026 }
20027
20028 case value_t::null:
20029 case value_t::string:
20030 case value_t::boolean:
20031 case value_t::number_integer:
20032 case value_t::number_unsigned:
20033 case value_t::number_float:
20034 case value_t::binary:
20035 case value_t::discarded:
20036 default:
20037 break;
20038 }
20039#endif
20040 }
20041
20042 iterator set_parents(iterator it, typename iterator::difference_type count_set_parents)
20043 {

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