LLVM  8.0.1
Public Member Functions | Public Attributes | List of all members
llvm::pdb::Variant Struct Reference

#include "llvm/DebugInfo/PDB/PDBTypes.h"

Collaboration diagram for llvm::pdb::Variant:
Collaboration graph
[legend]

Public Member Functions

 Variant ()=default
 
 Variant (bool V)
 
 Variant (int8_t V)
 
 Variant (int16_t V)
 
 Variant (int32_t V)
 
 Variant (int64_t V)
 
 Variant (float V)
 
 Variant (double V)
 
 Variant (uint8_t V)
 
 Variant (uint16_t V)
 
 Variant (uint32_t V)
 
 Variant (uint64_t V)
 
 Variant (const Variant &Other)
 
 ~Variant ()
 
bool operator== (const Variant &Other) const
 
bool operator!= (const Variant &Other) const
 
Variantoperator= (const Variant &Other)
 

Public Attributes

PDB_VariantType Type = PDB_VariantType::Empty
 
union {
   bool   Bool
 
   int8_t   Int8
 
   int16_t   Int16
 
   int32_t   Int32
 
   int64_t   Int64
 
   float   Single
 
   double   Double
 
   uint8_t   UInt8
 
   uint16_t   UInt16
 
   uint32_t   UInt32
 
   uint64_t   UInt64
 
   char *   String
 
Value
 

Detailed Description

Definition at line 350 of file PDBTypes.h.

Constructor & Destructor Documentation

◆ Variant() [1/13]

llvm::pdb::Variant::Variant ( )
default

◆ Variant() [2/13]

llvm::pdb::Variant::Variant ( bool  V)
inlineexplicit

Definition at line 353 of file PDBTypes.h.

◆ Variant() [3/13]

llvm::pdb::Variant::Variant ( int8_t  V)
inlineexplicit

Definition at line 354 of file PDBTypes.h.

◆ Variant() [4/13]

llvm::pdb::Variant::Variant ( int16_t  V)
inlineexplicit

Definition at line 355 of file PDBTypes.h.

◆ Variant() [5/13]

llvm::pdb::Variant::Variant ( int32_t  V)
inlineexplicit

Definition at line 358 of file PDBTypes.h.

◆ Variant() [6/13]

llvm::pdb::Variant::Variant ( int64_t  V)
inlineexplicit

Definition at line 361 of file PDBTypes.h.

◆ Variant() [7/13]

llvm::pdb::Variant::Variant ( float  V)
inlineexplicit

Definition at line 364 of file PDBTypes.h.

◆ Variant() [8/13]

llvm::pdb::Variant::Variant ( double  V)
inlineexplicit

Definition at line 367 of file PDBTypes.h.

◆ Variant() [9/13]

llvm::pdb::Variant::Variant ( uint8_t  V)
inlineexplicit

Definition at line 370 of file PDBTypes.h.

◆ Variant() [10/13]

llvm::pdb::Variant::Variant ( uint16_t  V)
inlineexplicit

Definition at line 373 of file PDBTypes.h.

◆ Variant() [11/13]

llvm::pdb::Variant::Variant ( uint32_t  V)
inlineexplicit

Definition at line 376 of file PDBTypes.h.

◆ Variant() [12/13]

llvm::pdb::Variant::Variant ( uint64_t  V)
inlineexplicit

Definition at line 379 of file PDBTypes.h.

◆ Variant() [13/13]

llvm::pdb::Variant::Variant ( const Variant Other)
inline

Definition at line 383 of file PDBTypes.h.

◆ ~Variant()

llvm::pdb::Variant::~Variant ( )
inline

Definition at line 387 of file PDBTypes.h.

References llvm::String.

Member Function Documentation

◆ operator!=()

bool llvm::pdb::Variant::operator!= ( const Variant Other) const
inline

Definition at line 435 of file PDBTypes.h.

◆ operator=()

Variant& llvm::pdb::Variant::operator= ( const Variant Other)
inline

Definition at line 436 of file PDBTypes.h.

References llvm::String, String, Type, and Value.

◆ operator==()

bool llvm::pdb::Variant::operator== ( const Variant Other) const
inline

Member Data Documentation

◆ Bool

bool llvm::pdb::Variant::Bool

Definition at line 394 of file PDBTypes.h.

Referenced by llvm::pdb::operator<<().

◆ Double

double llvm::pdb::Variant::Double

Definition at line 400 of file PDBTypes.h.

Referenced by llvm::pdb::operator<<().

◆ Int16

int16_t llvm::pdb::Variant::Int16

Definition at line 396 of file PDBTypes.h.

Referenced by llvm::pdb::operator<<().

◆ Int32

int32_t llvm::pdb::Variant::Int32

Definition at line 397 of file PDBTypes.h.

Referenced by llvm::pdb::operator<<().

◆ Int64

int64_t llvm::pdb::Variant::Int64

Definition at line 398 of file PDBTypes.h.

Referenced by llvm::pdb::operator<<().

◆ Int8

int8_t llvm::pdb::Variant::Int8

Definition at line 395 of file PDBTypes.h.

Referenced by llvm::pdb::operator<<().

◆ Single

float llvm::pdb::Variant::Single

Definition at line 399 of file PDBTypes.h.

Referenced by llvm::pdb::operator<<().

◆ String

char* llvm::pdb::Variant::String

◆ Type

PDB_VariantType llvm::pdb::Variant::Type = PDB_VariantType::Empty

◆ UInt16

uint16_t llvm::pdb::Variant::UInt16

Definition at line 402 of file PDBTypes.h.

Referenced by llvm::pdb::operator<<().

◆ UInt32

uint32_t llvm::pdb::Variant::UInt32

Definition at line 403 of file PDBTypes.h.

Referenced by llvm::pdb::operator<<().

◆ UInt64

uint64_t llvm::pdb::Variant::UInt64

Definition at line 404 of file PDBTypes.h.

Referenced by llvm::pdb::operator<<().

◆ UInt8

uint8_t llvm::pdb::Variant::UInt8

Definition at line 401 of file PDBTypes.h.

Referenced by llvm::pdb::operator<<().

◆ Value

union { ... } llvm::pdb::Variant::Value

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