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

Function fromJSON

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

Standard deserializers are provided for primitive types. See comments on Value.

Source from the content-addressed store, hash-verified

560// Standard deserializers are provided for primitive types.
561// See comments on Value.
562inline bool fromJSON(const Value &E, std::string &Out) {
563 if (auto S = E.getAsString()) {
564 Out = std::string(*S);
565 return true;
566 }
567 return false;
568}
569inline bool fromJSON(const Value &E, int &Out) {
570 if (auto S = E.getAsInteger()) {
571 Out = *S;

Callers 1

mapMethod · 0.85

Calls 11

getAsStringMethod · 0.80
getAsNumberMethod · 0.80
getAsBooleanMethod · 0.80
getAsNullMethod · 0.80
getAsArrayMethod · 0.80
getAsObjectMethod · 0.80
StringRefClass · 0.70
getAsIntegerMethod · 0.45
clearMethod · 0.45
resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected