LLVM: llvm::msgpack::ArrayDocNode Class Reference (original) (raw)

A DocNode that is an array. More...

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

Inheritance diagram for llvm::msgpack::ArrayDocNode:

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)
LLVM_ABI 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.
LLVM_ABI std::string toString () const
Convert this node to a string, assuming it is scalar.
LLVM_ABI 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.
LLVM_ABI DocNode & operator= (StringRef Val)
LLVM_ABI DocNode & operator= (MemoryBufferRef Val)
LLVM_ABI DocNode & operator= (bool Val)
LLVM_ABI DocNode & operator= (int Val)
LLVM_ABI DocNode & operator= (unsigned Val)
LLVM_ABI DocNode & operator= (int64_t Val)
LLVM_ABI DocNode & operator= (uint64_t Val)
LLVM_ABI DocNode & operator= (double 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
};

Detailed Description

A DocNode that is an array.

Definition at line 257 of file MsgPackDocument.h.

Constructor & Destructor Documentation

llvm::msgpack::ArrayDocNode::ArrayDocNode ( ) default

ArrayDocNode() [2/2]

llvm::msgpack::ArrayDocNode::ArrayDocNode ( DocNode & N) inline

Member Function Documentation

back()

DocNode & llvm::msgpack::ArrayDocNode::back ( ) const inline

begin()

ArrayTy::iterator llvm::msgpack::ArrayDocNode::begin ( ) inline

empty()

bool llvm::msgpack::ArrayDocNode::empty ( ) const inline

end()

ArrayTy::iterator llvm::msgpack::ArrayDocNode::end ( ) inline

operator[]()

DocNode & ArrayDocNode::operator[] ( size_t Index )

push_back()

void llvm::msgpack::ArrayDocNode::push_back ( DocNode N) inline

size()

size_t llvm::msgpack::ArrayDocNode::size ( ) const inline

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