class Object
Declaration
class Object { /* full declaration omitted */ };
Description
An Object is a JSON object, which maps strings to heterogenous JSON values. It simulates DenseMap <ObjectKey , Value>. ObjectKey is a maybe-owned string.
Declared at: llvm/include/llvm/Support/JSON.h:90
Method Overview
- public Object(std::initializer_list<KV> Properties)
- public Object()
- public llvm::json::Object::iterator begin()
- public llvm::json::Object::const_iterator begin() const
- public void clear()
- public bool empty() const
- public llvm::json::Object::iterator end()
- public llvm::json::Object::const_iterator end() const
- public bool erase(llvm::StringRef K)
- public void erase(llvm::json::Object::iterator I)
- public llvm::json::Object::const_iterator find(llvm::StringRef K) const
- public llvm::json::Object::iterator find(llvm::StringRef K)
- public llvm::json::Value * get(llvm::StringRef K)
- public const llvm::json::Value * get(llvm::StringRef K) const
- public const json::Array * getArray(llvm::StringRef K) const
- public json::Array * getArray(llvm::StringRef K)
- public llvm::Optional<bool> getBoolean(llvm::StringRef K) const
- public llvm::Optional<int64_t> getInteger(llvm::StringRef K) const
- public llvm::Optional<std::nullptr_t> getNull(llvm::StringRef K) const
- public llvm::Optional<double> getNumber(llvm::StringRef K) const
- public const json::Object * getObject(llvm::StringRef K) const
- public json::Object * getObject(llvm::StringRef K)
- public llvm::Optional<llvm::StringRef> getString(llvm::StringRef K) const
- public std::pair<iterator, bool> insert(llvm::json::Object::KV E)
- public size_t size() const
- public template <typename... Ts>std::pair<iterator, bool> try_emplace(const llvm::json::ObjectKey & K, Ts &&... Args)
- public template <typename... Ts>std::pair<iterator, bool> try_emplace(llvm::json::ObjectKey && K, Ts &&... Args)
Methods
¶Object(std::initializer_list<KV> Properties)
Object(std::initializer_list<KV> Properties)
Declared at: llvm/include/llvm/Support/JSON.h:105
Parameters
- std::initializer_list<KV> Properties
¶Object()
Object()
Declared at: llvm/include/llvm/Support/JSON.h:101
¶llvm::json::Object::iterator begin()
llvm::json::Object::iterator begin()
Declared at: llvm/include/llvm/Support/JSON.h:107
¶llvm::json::Object::const_iterator begin() const
llvm::json::Object::const_iterator begin() const
Declared at: llvm/include/llvm/Support/JSON.h:108
¶void clear()
void clear()
Declared at: llvm/include/llvm/Support/JSON.h:115
¶bool empty() const
bool empty() const
Declared at: llvm/include/llvm/Support/JSON.h:112
¶llvm::json::Object::iterator end()
llvm::json::Object::iterator end()
Declared at: llvm/include/llvm/Support/JSON.h:109
¶llvm::json::Object::const_iterator end() const
llvm::json::Object::const_iterator end() const
Declared at: llvm/include/llvm/Support/JSON.h:110
¶bool erase(llvm::StringRef K)
bool erase(llvm::StringRef K)
Declared at: llvm/include/llvm/Support/JSON.h:125
Parameters
¶void erase(llvm::json::Object::iterator I)
void erase(llvm::json::Object::iterator I)
Declared at: llvm/include/llvm/Support/JSON.h:126
Parameters
¶llvm::json::Object::const_iterator find(
llvm::StringRef K) const
llvm::json::Object::const_iterator find(
llvm::StringRef K) const
Declared at: llvm/include/llvm/Support/JSON.h:129
Parameters
¶llvm::json::Object::iterator find(
llvm::StringRef K)
llvm::json::Object::iterator find(
llvm::StringRef K)
Declared at: llvm/include/llvm/Support/JSON.h:128
Parameters
¶llvm::json::Value* get(llvm::StringRef K)
llvm::json::Value* get(llvm::StringRef K)
Declared at: llvm/include/llvm/Support/JSON.h:134
Parameters
¶const llvm::json::Value* get(
llvm::StringRef K) const
const llvm::json::Value* get(
llvm::StringRef K) const
Declared at: llvm/include/llvm/Support/JSON.h:135
Parameters
¶const json::Array* getArray(
llvm::StringRef K) const
const json::Array* getArray(
llvm::StringRef K) const
Declared at: llvm/include/llvm/Support/JSON.h:146
Parameters
¶json::Array* getArray(llvm::StringRef K)
json::Array* getArray(llvm::StringRef K)
Declared at: llvm/include/llvm/Support/JSON.h:147
Parameters
¶llvm::Optional<bool> getBoolean(
llvm::StringRef K) const
llvm::Optional<bool> getBoolean(
llvm::StringRef K) const
Declared at: llvm/include/llvm/Support/JSON.h:140
Parameters
¶llvm::Optional<int64_t> getInteger(
llvm::StringRef K) const
llvm::Optional<int64_t> getInteger(
llvm::StringRef K) const
Declared at: llvm/include/llvm/Support/JSON.h:142
Parameters
¶llvm::Optional<std::nullptr_t> getNull(
llvm::StringRef K) const
llvm::Optional<std::nullptr_t> getNull(
llvm::StringRef K) const
Declared at: llvm/include/llvm/Support/JSON.h:139
Parameters
¶llvm::Optional<double> getNumber(
llvm::StringRef K) const
llvm::Optional<double> getNumber(
llvm::StringRef K) const
Declared at: llvm/include/llvm/Support/JSON.h:141
Parameters
¶const json::Object* getObject(
llvm::StringRef K) const
const json::Object* getObject(
llvm::StringRef K) const
Declared at: llvm/include/llvm/Support/JSON.h:144
Parameters
¶json::Object* getObject(llvm::StringRef K)
json::Object* getObject(llvm::StringRef K)
Declared at: llvm/include/llvm/Support/JSON.h:145
Parameters
¶llvm::Optional<llvm::StringRef> getString(
llvm::StringRef K) const
llvm::Optional<llvm::StringRef> getString(
llvm::StringRef K) const
Declared at: llvm/include/llvm/Support/JSON.h:143
Parameters
¶std::pair<iterator, bool> insert(
llvm::json::Object::KV E)
std::pair<iterator, bool> insert(
llvm::json::Object::KV E)
Declared at: llvm/include/llvm/Support/JSON.h:116
Parameters
¶size_t size() const
size_t size() const
Declared at: llvm/include/llvm/Support/JSON.h:113
¶template <typename... Ts>
std::pair<iterator, bool> try_emplace(
const llvm::json::ObjectKey& K,
Ts&&... Args)
template <typename... Ts>
std::pair<iterator, bool> try_emplace(
const llvm::json::ObjectKey& K,
Ts&&... Args)
Declared at: llvm/include/llvm/Support/JSON.h:118
Templates
- Ts
Parameters
- const llvm::json::ObjectKey& K
- Ts&&... Args
¶template <typename... Ts>
std::pair<iterator, bool> try_emplace(
llvm::json::ObjectKey&& K,
Ts&&... Args)
template <typename... Ts>
std::pair<iterator, bool> try_emplace(
llvm::json::ObjectKey&& K,
Ts&&... Args)
Declared at: llvm/include/llvm/Support/JSON.h:122
Templates
- Ts
Parameters
- llvm::json::ObjectKey&& K
- Ts&&... Args