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

Method getString

modelpackage/src/utils/JsonMap.cpp:78–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76/* ==== Getter methods ==== */
77
78std::string JsonMapImpl::getString(const std::string& key) const {
79 return m_jsonObject.at(key).get<std::string>();
80}
81
82std::unique_ptr<JsonMapImpl> JsonMapImpl::getObject(const std::string& key) const {
83 auto childCopy = m_jsonObject.at(key);

Callers 5

validateMethod · 0.45
replaceRootModelMethod · 0.45
getRootModelMethod · 0.45
findItemMethod · 0.45
removeItemMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected