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)

Declared at: llvm/include/llvm/Support/JSON.h:105

Parameters

std::initializer_list<KV> Properties

Object()

Declared at: llvm/include/llvm/Support/JSON.h:101

llvm::json::Object::iterator begin()

Declared at: llvm/include/llvm/Support/JSON.h:107

llvm::json::Object::const_iterator begin() const

Declared at: llvm/include/llvm/Support/JSON.h:108

void clear()

Declared at: llvm/include/llvm/Support/JSON.h:115

bool empty() const

Declared at: llvm/include/llvm/Support/JSON.h:112

llvm::json::Object::iterator end()

Declared at: llvm/include/llvm/Support/JSON.h:109

llvm::json::Object::const_iterator end() const

Declared at: llvm/include/llvm/Support/JSON.h:110

bool erase(llvm::StringRef K)

Declared at: llvm/include/llvm/Support/JSON.h:125

Parameters

llvm::StringRef K

void erase(llvm::json::Object::iterator I)

Declared at: llvm/include/llvm/Support/JSON.h:126

Parameters

llvm::json::Object::iterator I

llvm::json::Object::const_iterator find(
    llvm::StringRef K) const

Declared at: llvm/include/llvm/Support/JSON.h:129

Parameters

llvm::StringRef K

llvm::json::Object::iterator find(
    llvm::StringRef K)

Declared at: llvm/include/llvm/Support/JSON.h:128

Parameters

llvm::StringRef K

llvm::json::Value* get(llvm::StringRef K)

Declared at: llvm/include/llvm/Support/JSON.h:134

Parameters

llvm::StringRef K

const llvm::json::Value* get(
    llvm::StringRef K) const

Declared at: llvm/include/llvm/Support/JSON.h:135

Parameters

llvm::StringRef K

const json::Array* getArray(
    llvm::StringRef K) const

Declared at: llvm/include/llvm/Support/JSON.h:146

Parameters

llvm::StringRef K

json::Array* getArray(llvm::StringRef K)

Declared at: llvm/include/llvm/Support/JSON.h:147

Parameters

llvm::StringRef K

llvm::Optional<bool> getBoolean(
    llvm::StringRef K) const

Declared at: llvm/include/llvm/Support/JSON.h:140

Parameters

llvm::StringRef K

llvm::Optional<int64_t> getInteger(
    llvm::StringRef K) const

Declared at: llvm/include/llvm/Support/JSON.h:142

Parameters

llvm::StringRef K

llvm::Optional<std::nullptr_t> getNull(
    llvm::StringRef K) const

Declared at: llvm/include/llvm/Support/JSON.h:139

Parameters

llvm::StringRef K

llvm::Optional<double> getNumber(
    llvm::StringRef K) const

Declared at: llvm/include/llvm/Support/JSON.h:141

Parameters

llvm::StringRef K

const json::Object* getObject(
    llvm::StringRef K) const

Declared at: llvm/include/llvm/Support/JSON.h:144

Parameters

llvm::StringRef K

json::Object* getObject(llvm::StringRef K)

Declared at: llvm/include/llvm/Support/JSON.h:145

Parameters

llvm::StringRef K

llvm::Optional<llvm::StringRef> getString(
    llvm::StringRef K) const

Declared at: llvm/include/llvm/Support/JSON.h:143

Parameters

llvm::StringRef K

std::pair<iterator, bool> insert(
    llvm::json::Object::KV E)

Declared at: llvm/include/llvm/Support/JSON.h:116

Parameters

llvm::json::Object::KV E

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)

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)

Declared at: llvm/include/llvm/Support/JSON.h:122

Templates

Ts

Parameters

llvm::json::ObjectKey&& K
Ts&&... Args