LLVM
8.0.1
|
Abstract base-class which can be any MessagePack type. More...
#include "llvm/BinaryFormat/MsgPackTypes.h"
Public Types | |
enum | NodeKind { NK_Scalar, NK_Array, NK_Map } |
Public Member Functions | |
NodeKind | getKind () const |
Node (NodeKind Kind) | |
Construct a Node. Used by derived classes to track kind information. More... | |
virtual | ~Node ()=default |
virtual void | write (Writer &MPWriter)=0 |
Write to a MessagePack writer MPWriter . More... | |
Static Public Member Functions | |
static Expected< OptNodePtr > | read (Reader &MPReader) |
Read from a MessagePack reader MPReader , returning an error if one is encountered, or None if MPReader is at the end of stream, or some Node pointer if some type is read. More... | |
Abstract base-class which can be any MessagePack type.
Definition at line 39 of file MsgPackTypes.h.
Enumerator | |
---|---|
NK_Scalar | |
NK_Array | |
NK_Map |
Definition at line 41 of file MsgPackTypes.h.
|
inline |
|
virtualdefault |
Referenced by Node().
|
inline |
Definition at line 55 of file MsgPackTypes.h.
Referenced by llvm::msgpack::ScalarNode::classof(), llvm::msgpack::ArrayNode::classof(), and llvm::msgpack::MapNode::classof().
|
static |
Read from a MessagePack reader MPReader
, returning an error if one is encountered, or None if MPReader
is at the end of stream, or some Node pointer if some type is read.
Definition at line 75 of file MsgPackTypes.cpp.
References llvm::msgpack::Reader::read().
Referenced by Node().
|
pure virtual |
Write to a MessagePack writer MPWriter
.
Implemented in llvm::msgpack::MapNode, llvm::msgpack::ArrayNode, and llvm::msgpack::ScalarNode.
Referenced by llvm::msgpack::ScalarNode::classof(), and Node().