MCPcopy Create free account
hub / github.com/ablab/spades / map

Method map

ext/include/llvm/Support/JSON.h:664–669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662
663 /// Maps a property to a field, if it exists.
664 template <typename T> bool map(StringRef Prop, T &Out) {
665 assert(*this && "Must check this is an object before calling map()");
666 if (const Value *E = O->get(Prop))
667 return fromJSON(*E, Out);
668 return false;
669 }
670
671 /// Maps a property to a field, if it exists.
672 /// (Optional requires special handling, because missing keys are OK).

Callers

nothing calls this directly

Calls 3

assertClass · 0.85
fromJSONFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected