LLVM 20.0.0git
|
An Array is a JSON array, which contains heterogeneous JSON values. More...
#include "llvm/Support/JSON.h"
Public Types | |
using | value_type = Value |
using | iterator = std::vector< Value >::iterator |
using | const_iterator = std::vector< Value >::const_iterator |
Public Member Functions | |
Array ()=default | |
Array (std::initializer_list< Value > Elements) | |
template<typename Collection > | |
Array (const Collection &C) | |
Value & | operator[] (size_t I) |
const Value & | operator[] (size_t I) const |
Value & | front () |
const Value & | front () const |
Value & | back () |
const Value & | back () const |
Value * | data () |
const Value * | data () const |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
bool | empty () const |
size_t | size () const |
void | reserve (size_t S) |
void | clear () |
void | push_back (const Value &E) |
void | push_back (Value &&E) |
template<typename... Args> | |
void | emplace_back (Args &&...A) |
void | pop_back () |
iterator | insert (const_iterator P, const Value &E) |
iterator | insert (const_iterator P, Value &&E) |
template<typename It > | |
iterator | insert (const_iterator P, It A, It Z) |
template<typename... Args> | |
iterator | emplace (const_iterator P, Args &&...A) |
Friends | |
bool | operator== (const Array &L, const Array &R) |
An Array is a JSON array, which contains heterogeneous JSON values.
It simulates std::vector<Value>.
using llvm::json::Array::const_iterator = std::vector<Value>::const_iterator |
using llvm::json::Array::iterator = std::vector<Value>::iterator |
using llvm::json::Array::value_type = Value |
|
default |
|
explicit |
Definition at line 98 of file JSON.cpp.
References back(), and emplace_back().
|
inlineexplicit |
Definition at line 174 of file JSON.h.
References llvm::CallingConv::C, and emplace_back().
|
inline |
Definition at line 537 of file JSON.h.
Referenced by Array(), and llvm::json::toJSON().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 547 of file JSON.h.
Referenced by llvm::checkDebugInfoMetadata().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 552 of file JSON.h.
References E.
Referenced by checkFunctions(), checkInstructions(), checkVars(), llvm::symbolize::JSONPrinter::print(), and llvm::json::toJSON().
|
inline |