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

Method get

cpp/src/map.cpp:155–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153
154template <class K, class T>
155T map<K,T>::get(const K& k) const {
156 if (this->empty()) return T();
157 typename map_type::const_iterator i = cache().find(k);
158 if (i == map_->end()) return T();
159 return i->second;
160}
161
162template <class K, class T>
163void map<K,T>::put(const K& k, const T& v) {

Callers 15

getFunction · 0.45
parse_saslFunction · 0.45
parseFunction · 0.45
test_useFunction · 0.45
test_cppmapFunction · 0.45
test_copy_constructorFunction · 0.45
createMethod · 0.45
closeMethod · 0.45
reconnectedMethod · 0.45
map.cppFile · 0.45
emptyMethod · 0.45

Calls 4

emptyMethod · 0.95
TClass · 0.85
findMethod · 0.80
endMethod · 0.45

Tested by 10

test_useFunction · 0.36
test_cppmapFunction · 0.36
test_copy_constructorFunction · 0.36
on_messageMethod · 0.36
test_message_mapsFunction · 0.36
test_message_reuseFunction · 0.36
test_messageFunction · 0.36