LLVM 20.0.0git
|
A DocNode that is a map. More...
#include "llvm/BinaryFormat/MsgPackDocument.h"
Public Member Functions | |
MapDocNode ()=default | |
MapDocNode (DocNode &N) | |
size_t | size () const |
bool | empty () const |
MapTy::iterator | begin () |
MapTy::iterator | end () |
MapTy::iterator | find (DocNode Key) |
MapTy::iterator | find (StringRef Key) |
Find the key in the MapDocNode. | |
MapTy::iterator | erase (MapTy::const_iterator I) |
size_t | erase (DocNode Key) |
MapTy::iterator | erase (MapTy::const_iterator First, MapTy::const_iterator Second) |
DocNode & | operator[] (StringRef S) |
Member access. | |
DocNode & | operator[] (DocNode Key) |
Member access, with convenience versions for an integer key. | |
DocNode & | operator[] (int Key) |
Member access for MapDocNode for integer key. | |
DocNode & | operator[] (unsigned Key) |
DocNode & | operator[] (int64_t Key) |
DocNode & | operator[] (uint64_t Key) |
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 a map.
Definition at line 225 of file MsgPackDocument.h.
|
default |
|
inline |
Definition at line 228 of file MsgPackDocument.h.
References assert(), llvm::msgpack::DocNode::getKind(), and llvm::msgpack::Map.
|
inline |
Definition at line 233 of file MsgPackDocument.h.
References llvm::msgpack::DocNode::Map.
|
inline |
Definition at line 232 of file MsgPackDocument.h.
References size().
|
inline |
Definition at line 234 of file MsgPackDocument.h.
References llvm::msgpack::DocNode::Map.
|
inline |
Definition at line 238 of file MsgPackDocument.h.
References llvm::msgpack::DocNode::Map.
|
inline |
Definition at line 239 of file MsgPackDocument.h.
References llvm::First, and llvm::msgpack::DocNode::Map.
|
inline |
Definition at line 237 of file MsgPackDocument.h.
References I, and llvm::msgpack::DocNode::Map.
|
inline |
Definition at line 235 of file MsgPackDocument.h.
References llvm::msgpack::DocNode::Map.
Referenced by find().
DocNode::MapTy::iterator MapDocNode::find | ( | StringRef | Key | ) |
Find the key in the MapDocNode.
Definition at line 30 of file MsgPackDocument.cpp.
References find(), llvm::msgpack::DocNode::getDocument(), and getNode().
Member access, with convenience versions for an integer key.
Member access for MapDocNode.
Definition at line 41 of file MsgPackDocument.cpp.
References assert(), llvm::msgpack::DocNode::getDocument(), llvm::msgpack::Document::getEmptyNode(), and N.
DocNode & MapDocNode::operator[] | ( | int | Key | ) |
Member access for MapDocNode for integer key.
Definition at line 52 of file MsgPackDocument.cpp.
References llvm::msgpack::DocNode::getDocument(), and llvm::msgpack::Document::getNode().
DocNode & MapDocNode::operator[] | ( | int64_t | Key | ) |
Definition at line 58 of file MsgPackDocument.cpp.
References llvm::msgpack::DocNode::getDocument(), and llvm::msgpack::Document::getNode().
Member access.
Member access for MapDocNode.
The string data must remain valid for the lifetime of the Document.
Definition at line 36 of file MsgPackDocument.cpp.
References llvm::msgpack::DocNode::getDocument(), and llvm::msgpack::Document::getNode().
Definition at line 61 of file MsgPackDocument.cpp.
References llvm::msgpack::DocNode::getDocument(), and llvm::msgpack::Document::getNode().
Definition at line 55 of file MsgPackDocument.cpp.
References llvm::msgpack::DocNode::getDocument(), and llvm::msgpack::Document::getNode().
|
inline |
Definition at line 231 of file MsgPackDocument.h.
References llvm::msgpack::DocNode::Map.
Referenced by empty().