|
LLVM 22.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 | |
| LLVM_ABI | 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 |
References LLVM_ABI.
Referenced by operator==.
|
explicit |
Definition at line 89 of file JSON.cpp.
References back(), and emplace_back().
|
inlineexplicit |
Definition at line 176 of file JSON.h.
References llvm::CallingConv::C, and emplace_back().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 557 of file JSON.h.
Referenced by llvm::checkDebugInfoMetadata().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 562 of file JSON.h.
References E().
Referenced by checkFunctions(), checkInstructions(), checkVars(), llvm::symbolize::JSONPrinter::print(), and llvm::symbolize::JSONPrinter::print().
|
inline |