LLVM  8.0.1
Public Member Functions | Public Attributes | List of all members
llvm::msgpack::Object Struct Reference

MessagePack object, represented as a tagged union of C++ types. More...

#include "llvm/BinaryFormat/MsgPackReader.h"

Collaboration diagram for llvm::msgpack::Object:
Collaboration graph
[legend]

Public Member Functions

 Object ()
 

Public Attributes

Type Kind
 
union {
   int64_t   Int
 Value for Type::Int. More...
 
   uint64_t   UInt
 Value for Type::Uint. More...
 
   bool   Bool
 Value for Type::Boolean. More...
 
   double   Float
 Value for Type::Float. More...
 
   StringRef   Raw
 Value for Type::String and Type::Binary. More...
 
   size_t   Length
 Value for Type::Array and Type::Map. More...
 
   ExtensionType   Extension
 Value for Type::Extension. More...
 
}; 
 

Detailed Description

MessagePack object, represented as a tagged union of C++ types.

All types except Type::Nil (which has only one value, and so is completely represented by the Kind itself) map to a exactly one union member.

Definition at line 76 of file MsgPackReader.h.

Constructor & Destructor Documentation

◆ Object()

llvm::msgpack::Object::Object ( )
inline

Definition at line 95 of file MsgPackReader.h.

Member Data Documentation

◆ @131

union { ... }

◆ Bool

bool llvm::msgpack::Object::Bool

Value for Type::Boolean.

Definition at line 84 of file MsgPackReader.h.

Referenced by llvm::msgpack::Reader::read().

◆ Extension

ExtensionType llvm::msgpack::Object::Extension

Value for Type::Extension.

Definition at line 92 of file MsgPackReader.h.

Referenced by llvm::msgpack::Reader::readExt().

◆ Float

double llvm::msgpack::Object::Float

Value for Type::Float.

Definition at line 86 of file MsgPackReader.h.

Referenced by llvm::msgpack::Reader::read().

◆ Int

int64_t llvm::msgpack::Object::Int

◆ Kind

Type llvm::msgpack::Object::Kind

Definition at line 77 of file MsgPackReader.h.

Referenced by llvm::msgpack::Reader::read().

◆ Length

size_t llvm::msgpack::Object::Length

◆ Raw

StringRef llvm::msgpack::Object::Raw

Value for Type::String and Type::Binary.

Definition at line 88 of file MsgPackReader.h.

Referenced by llvm::msgpack::Reader::readExt().

◆ UInt

uint64_t llvm::msgpack::Object::UInt

Value for Type::Uint.

Definition at line 82 of file MsgPackReader.h.

Referenced by llvm::msgpack::Reader::read(), and llvm::msgpack::Reader::readUInt().


The documentation for this struct was generated from the following file: