MCPcopy Create free account
hub / github.com/apache/qpid-proton / value

Method value

cpp/src/map.cpp:137–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135
136template <class K, class T>
137void map<K,T>::value(const proton::value& x) {
138 if (x.empty()) {
139 clear();
140 } else {
141 std::unique_ptr<map_type> tmp(new map_type);
142 proton::get(x, *tmp); // Validate by decoding, may throw
143 map_.reset(tmp.release());
144 value_.clear();
145 }
146}
147
148template <class K, class T>
149proton::value& map<K,T>::value() { return flush(); }

Callers 7

test_cppmapFunction · 0.45
test_valueFunction · 0.45
map.cppFile · 0.45
dynamic_propertiesMethod · 0.45
flushMethod · 0.45
described=Method · 0.45
putMethod · 0.45

Calls 6

clearFunction · 0.85
getFunction · 0.70
emptyMethod · 0.45
resetMethod · 0.45
releaseMethod · 0.45
clearMethod · 0.45

Tested by 2

test_cppmapFunction · 0.36
test_valueFunction · 0.36