27#ifndef IDLFE_AST_UNION_H_
28#define IDLFE_AST_UNION_H_
55 template <
class T>
friend class Ptr;
64 const Union* definition_;
80 return discriminator_type_;
90 return default_label_;
97 return default_element_;
105 return reinterpret_cast <const StructBase&
> (*this);
109 template <
class T>
friend class Ptr;
116 default_element_ (nullptr)
120 Type discriminator_type_;
121 const UnionElement* default_element_;
122 Variant default_label_;
Sequential container of the AST items.
The item that can be forward declared.
@ UNION_DECL
class UnionDecl
Items which have repository identifiers derive from this class.
const Identifier & name() const noexcept
The IDL simple declarator.
The common base for Struct and Exception.
union forward declaration.
const Union & definition() const
union element definition.
const Type & discriminator_type() const noexcept
const Variant & default_label() const noexcept
const UnionElement * default_element() const noexcept
Stores the constant value.
Abstract Syntax Tree namespace.