LLVM 20.0.0git
|
An Object is a JSON object, which maps strings to heterogenous JSON values. More...
#include "llvm/Support/JSON.h"
Classes | |
struct | KV |
Public Types | |
using | key_type = ObjectKey |
using | mapped_type = Value |
using | value_type = Storage::value_type |
using | iterator = Storage::iterator |
using | const_iterator = Storage::const_iterator |
An Object is a JSON object, which maps strings to heterogenous JSON values.
It simulates DenseMap<ObjectKey, Value>. ObjectKey is a maybe-owned string.
using llvm::json::Object::mapped_type = Value |
|
default |
|
inlineexplicit |
Definition at line 636 of file JSON.h.
References P, and try_emplace().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 646 of file JSON.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::erase().
|
inline |
Definition at line 30 of file JSON.cpp.
References end(), find(), and I.
Referenced by getArray(), getBoolean(), getInteger(), getNull(), getNumber(), getObject(), getString(), llvm::json::ObjectMapper::map(), and llvm::json::ObjectMapper::mapOptional().
json::Array * llvm::json::Object::getArray | ( | StringRef | K | ) |
const json::Array * llvm::json::Object::getArray | ( | StringRef | K | ) | const |
std::optional< int64_t > llvm::json::Object::getInteger | ( | StringRef | K | ) | const |
std::optional< std::nullptr_t > llvm::json::Object::getNull | ( | StringRef | K | ) | const |
std::optional< double > llvm::json::Object::getNumber | ( | StringRef | K | ) | const |
json::Object * llvm::json::Object::getObject | ( | StringRef | K | ) |
const json::Object * llvm::json::Object::getObject | ( | StringRef | K | ) | const |
Definition at line 67 of file JSON.cpp.
References get().
Referenced by llvm::MachO::getInterfaceFileFromJSON().
std::optional< llvm::StringRef > llvm::json::Object::getString | ( | StringRef | K | ) | const |
|
inline |
Definition at line 643 of file JSON.h.
References E, and try_emplace().
Referenced by llvm::symbolize::toJSON().
Definition at line 24 of file JSON.cpp.
References try_emplace().
Definition at line 27 of file JSON.cpp.
References try_emplace().
|
inline |
Definition at line 126 of file JSON.h.
Referenced by insert(), Object(), operator[](), and llvm::DWARFVerifier::summarize().