IDL compiler front-end library
|
union
element definition.
More...
#include <UnionElement.h>
Public Types | |
typedef std::vector< Variant > | Labels |
The vector of case labels. | |
Public Types inherited from AST::Item | |
enum class | Kind { ROOT , INCLUDE , NATIVE , TYPE_DEF , CONSTANT , MODULE , MODULE_ITEMS , INTERFACE_DECL , INTERFACE , OPERATION , PARAMETER , ATTRIBUTE , EXCEPTION , STRUCT_DECL , STRUCT , MEMBER , UNION_DECL , UNION , UNION_ELEMENT , ENUM , ENUM_ITEM , VALUE_TYPE_DECL , VALUE_TYPE , VALUE_BOX , STATE_MEMBER , VALUE_FACTORY } |
The kind of item. More... | |
Public Types inherited from AST::Type | |
enum class | Kind { VOID , BASIC_TYPE , NAMED_TYPE , STRING , WSTRING , FIXED , SEQUENCE , ARRAY } |
The kind of type. More... | |
Public Member Functions | |
const Labels & | labels () const noexcept |
bool | is_default () const noexcept |
Public Member Functions inherited from AST::NamedItem | |
const Identifier & | name () const noexcept |
const ItemScope * | parent () const noexcept |
std::string | qualified_name () const |
ScopedName | scoped_name () const |
const Symbols * | parent_scope () const noexcept |
Public Member Functions inherited from AST::Item | |
Kind | kind () const noexcept |
bool | is_type () const noexcept |
bool | is_forward_decl () const noexcept |
Public Member Functions inherited from AST::Location | |
const std::filesystem::path & | file () const noexcept |
unsigned | line () const noexcept |
Public Member Functions inherited from AST::Type | |
Kind | tkind () const noexcept |
BasicType | basic_type () const noexcept |
const NamedItem & | named_type () const noexcept |
Dim | string_bound () const noexcept |
Dim | string_size () const noexcept |
Obsolete. Use Type::string_bound () instead. | |
const Sequence & | sequence () const noexcept |
const Array & | array () const noexcept |
uint16_t | fixed_digits () const noexcept |
uint16_t | fixed_scale () const noexcept |
const Type & | dereference_type () const noexcept |
~Type () | |
Destructor. | |
Type () | |
Default constructor. | |
Type (const Type &src) | |
Copy constructor. | |
Type (Type &&src) noexcept | |
Move constructor. | |
Type & | operator= (const Type &src) |
Copy assignment. | |
Type & | operator= (Type &&src) noexcept |
Move assignment. | |
bool | operator== (const Type &rhs) const noexcept |
Check types for equality. | |
union
element definition.
Definition at line 41 of file UnionElement.h.
|
inlinenoexcept |
case
labels for this element. Empty for the default
case. Definition at line 49 of file UnionElement.h.
|
inlinenoexcept |
true
if this is the default
element. Definition at line 55 of file UnionElement.h.