LLVM 20.0.0git
|
A DocNode that is an array. More...
#include "llvm/BinaryFormat/MsgPackDocument.h"
Public Member Functions | |
ArrayDocNode ()=default | |
ArrayDocNode (DocNode &N) | |
size_t | size () const |
bool | empty () const |
DocNode & | back () const |
ArrayTy::iterator | begin () |
ArrayTy::iterator | end () |
void | push_back (DocNode N) |
DocNode & | operator[] (size_t Index) |
Element access. This extends the array if necessary, with empty nodes. | |
Public Member Functions inherited from llvm::msgpack::DocNode | |
DocNode () | |
bool | isMap () const |
bool | isArray () const |
bool | isScalar () const |
bool | isString () const |
bool | isEmpty () const |
Type | getKind () const |
Document * | getDocument () const |
int64_t & | getInt () |
uint64_t & | getUInt () |
bool & | getBool () |
double & | getFloat () |
int64_t | getInt () const |
uint64_t | getUInt () const |
bool | getBool () const |
double | getFloat () const |
StringRef | getString () const |
MemoryBufferRef | getBinary () const |
ArrayDocNode & | getArray (bool Convert=false) |
Get an ArrayDocNode for an array node. | |
MapDocNode & | getMap (bool Convert=false) |
Get a MapDocNode for a map node. | |
std::string | toString () const |
Convert this node to a string, assuming it is scalar. | |
StringRef | fromString (StringRef S, StringRef Tag="") |
Convert the StringRef and use it to set this DocNode (assuming scalar). | |
DocNode & | operator= (const char *Val) |
Convenience assignment operators. | |
DocNode & | operator= (StringRef Val) |
DocNode & | operator= (MemoryBufferRef Val) |
DocNode & | operator= (bool Val) |
DocNode & | operator= (int Val) |
DocNode & | operator= (unsigned Val) |
DocNode & | operator= (int64_t Val) |
DocNode & | operator= (uint64_t Val) |
Additional Inherited Members | |
Public Types inherited from llvm::msgpack::DocNode | |
typedef std::map< DocNode, DocNode > | MapTy |
typedef std::vector< DocNode > | ArrayTy |
Protected Attributes inherited from llvm::msgpack::DocNode | |
union { | |
int64_t Int | |
uint64_t UInt | |
bool Bool | |
double Float | |
StringRef Raw | |
ArrayTy * Array | |
MapTy * Map | |
}; | |
A DocNode that is an array.
Definition at line 255 of file MsgPackDocument.h.
|
default |
|
inline |
Definition at line 258 of file MsgPackDocument.h.
References llvm::msgpack::Array, assert(), and llvm::msgpack::DocNode::getKind().
|
inline |
Definition at line 263 of file MsgPackDocument.h.
References llvm::msgpack::DocNode::Array.
|
inline |
Definition at line 264 of file MsgPackDocument.h.
References llvm::msgpack::DocNode::Array.
|
inline |
Definition at line 262 of file MsgPackDocument.h.
References size().
|
inline |
Definition at line 265 of file MsgPackDocument.h.
References llvm::msgpack::DocNode::Array.
DocNode & ArrayDocNode::operator[] | ( | size_t | Index | ) |
Element access. This extends the array if necessary, with empty nodes.
Array element access. This extends the array if necessary.
Definition at line 66 of file MsgPackDocument.cpp.
References llvm::msgpack::DocNode::Array, llvm::msgpack::DocNode::getDocument(), and size().
|
inline |
Definition at line 266 of file MsgPackDocument.h.
References llvm::msgpack::DocNode::Array, assert(), llvm::msgpack::DocNode::getDocument(), and N.
|
inline |
Definition at line 261 of file MsgPackDocument.h.
References llvm::msgpack::DocNode::Array.
Referenced by empty(), and operator[]().