MCPcopy Create free account
hub / github.com/apple/coremltools / hasKey

Method hasKey

modelpackage/src/utils/JsonMap.cpp:66–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64/* ==== Key operations ==== */
65
66bool JsonMapImpl::hasKey(const std::string& key) const {
67 return m_jsonObject.count(key) > 0;
68}
69
70void JsonMapImpl::getKeys(std::vector<std::string>& keys) {
71 for(json::iterator it = m_jsonObject.begin(); it != m_jsonObject.end(); ++it) {

Callers 6

validateMethod · 0.45
getItemInfoEntriesMethod · 0.45
getItemInfoEntryMethod · 0.45
setRootModelMethod · 0.45
replaceRootModelMethod · 0.45
getRootModelMethod · 0.45

Calls 1

countMethod · 0.45

Tested by

no test coverage detected