LLVM: llvm::json::Array Class Reference (original) (raw)

An Array is a JSON array, which contains heterogeneous JSON values. More...

#include "[llvm/Support/JSON.h](JSON%5F8h%5Fsource.html)"

Public Member Functions
Array ()=default
LLVM_ABI Array (std::initializer_list< Value > Elements)
template
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
iterator insert (const_iterator P, It A, It Z)
template<typename... Args>
iterator emplace (const_iterator P, Args &&...A)
iterator erase (const_iterator P)

An Array is a JSON array, which contains heterogeneous JSON values.

It simulates std::vector.

Definition at line 166 of file JSON.h.

const_iterator

iterator

value_type

Array() [1/3]

llvm::json::Array::Array ( ) default

Array() [2/3]

llvm::json::Array::Array ( std::initializer_list< Value > Elements) explicit

Array() [3/3]

template

llvm::json::Array::Array ( const Collection & C) inlineexplicit

back() [1/2]

Value & llvm::json::Array::back ( ) inline

back() [2/2]

begin() [1/2]

Array::iterator llvm::json::Array::begin ( ) inline

Definition at line 553 of file JSON.h.

begin() [2/2]

Array::const_iterator llvm::json::Array::begin ( ) const inline

Definition at line 554 of file JSON.h.

clear()

void llvm::json::Array::clear ( ) inline

Definition at line 562 of file JSON.h.

data() [1/2]

Value * llvm::json::Array::data ( ) inline

Definition at line 550 of file JSON.h.

data() [2/2]

emplace()

template<typename... Args>

Array::iterator llvm::json::Array::emplace ( const_iterator P, Args &&... A ) inline

emplace_back()

template<typename... Args>

void llvm::json::Array::emplace_back ( Args &&... A) inline

empty()

bool llvm::json::Array::empty ( ) const inline

end() [1/2]

Array::iterator llvm::json::Array::end ( ) inline

Definition at line 555 of file JSON.h.

end() [2/2]

Array::const_iterator llvm::json::Array::end ( ) const inline

Definition at line 556 of file JSON.h.

erase()

Array::iterator llvm::json::Array::erase ( const_iterator P) inline

Definition at line 583 of file JSON.h.

References P.

front() [1/2]

Value & llvm::json::Array::front ( ) inline

Definition at line 546 of file JSON.h.

front() [2/2]

insert() [1/3]

insert() [2/3]

template

Array::iterator llvm::json::Array::insert ( const_iterator P, It A, It Z ) inline

insert() [3/3]

Array::iterator llvm::json::Array::insert ( const_iterator P, Value && E ) inline

operator[]() [1/2]

Value & llvm::json::Array::operator[] ( size_t I) inline

Definition at line 544 of file JSON.h.

References I.

operator[]() [2/2]

const Value & llvm::json::Array::operator[] ( size_t I) const inline

Definition at line 545 of file JSON.h.

References I.

pop_back()

void llvm::json::Array::pop_back ( ) inline

Definition at line 568 of file JSON.h.

push_back() [1/2]

void llvm::json::Array::push_back ( const Value & E) inline

push_back() [2/2]

void llvm::json::Array::push_back ( Value && E) inline

reserve()

void llvm::json::Array::reserve ( size_t S) inline

Definition at line 560 of file JSON.h.

size()

size_t llvm::json::Array::size ( ) const inline

Definition at line 559 of file JSON.h.

operator==

Definition at line 584 of file JSON.h.

References Array().


The documentation for this class was generated from the following files: