LLVM
15.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 580 of file JSON.h.
References move, P, and try_emplace().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 590 of file JSON.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::erase().
|
inline |
Definition at line 27 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 |
llvm::Optional< bool > llvm::json::Object::getBoolean | ( | StringRef | K | ) | const |
Definition at line 44 of file JSON.cpp.
References get(), and llvm::None.
llvm::Optional< int64_t > llvm::json::Object::getInteger | ( | StringRef | K | ) | const |
Definition at line 54 of file JSON.cpp.
References get(), and llvm::None.
llvm::Optional< std::nullptr_t > llvm::json::Object::getNull | ( | StringRef | K | ) | const |
Definition at line 39 of file JSON.cpp.
References get(), and llvm::None.
llvm::Optional< double > llvm::json::Object::getNumber | ( | StringRef | K | ) | const |
Definition at line 49 of file JSON.cpp.
References get(), and llvm::None.
json::Object * llvm::json::Object::getObject | ( | StringRef | K | ) |
const json::Object * llvm::json::Object::getObject | ( | StringRef | K | ) | const |
llvm::Optional< llvm::StringRef > llvm::json::Object::getString | ( | StringRef | K | ) | const |
Definition at line 59 of file JSON.cpp.
References get(), and llvm::None.
|
inline |
Definition at line 587 of file JSON.h.
References E, move, and try_emplace().
Definition at line 21 of file JSON.cpp.
References try_emplace().
Definition at line 24 of file JSON.cpp.
References move, and try_emplace().
|
inline |
|
inline |
Definition at line 119 of file JSON.h.
References llvm::AMDGPU::HSAMD::Kernel::Key::Args, and M.
Referenced by insert(), Object(), and operator[]().
|
inline |
Definition at line 123 of file JSON.h.
References llvm::AMDGPU::HSAMD::Kernel::Key::Args, M, and move.