MCPcopy Create free account
hub / github.com/boostorg/compute / get

Method get

include/boost/compute/detail/parameter_cache.hpp:71–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 }
70
71 uint_ get(const std::string &object, const std::string &parameter, uint_ default_value)
72 {
73 std::map<std::pair<std::string, std::string>, uint_>::iterator
74 iter = m_cache.find(std::make_pair(object, parameter));
75 if(iter != m_cache.end()){
76 return iter->second;
77 }
78 else {
79 return default_value;
80 }
81 }
82
83 static boost::shared_ptr<parameter_cache> get_global_cache(const device &device)
84 {

Callers

nothing calls this directly

Calls 3

make_pairFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected