Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
WAST::Reference Struct Reference

#include <Parse.h>

Collaboration diagram for WAST::Reference:

Public Types

enum class  Type { invalid , name , index }
 

Public Member Functions

 Reference (const Name &inName)
 
 Reference (U32 inIndex)
 
 Reference ()
 
 operator bool () const
 

Public Attributes

Type type
 
union { 
 
   Name   name 
 
   U32   index 
 
};  
 
const Token * token
 

Detailed Description

Definition at line 91 of file Parse.h.

Member Enumeration Documentation

◆ Type

Enumerator
invalid 
name 
index 

Definition at line 93 of file Parse.h.

93{ invalid, name, index };

Constructor & Destructor Documentation

◆ Reference() [1/3]

WAST::Reference::Reference ( const Name & inName)
inline

Definition at line 101 of file Parse.h.

◆ Reference() [2/3]

WAST::Reference::Reference ( U32 inIndex)
inline

Definition at line 102 of file Parse.h.

◆ Reference() [3/3]

WAST::Reference::Reference ( )
inline

Definition at line 103 of file Parse.h.

103: type(Type::invalid), token(nullptr) {}
const Token * token
Definition Parse.h:100

Member Function Documentation

◆ operator bool()

WAST::Reference::operator bool ( ) const
inline

Definition at line 104 of file Parse.h.

104{ return type != Type::invalid; }

Member Data Documentation

◆ [union]

union { ... } WAST::Reference

◆ index

U32 WAST::Reference::index

Definition at line 98 of file Parse.h.

◆ name

Name WAST::Reference::name

Definition at line 97 of file Parse.h.

◆ token

const Token* WAST::Reference::token

Definition at line 100 of file Parse.h.

◆ type

Type WAST::Reference::type

Definition at line 94 of file Parse.h.


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