27#ifndef IDLFE_AST_UNIONELEMENT_H_
28#define IDLFE_AST_UNIONELEMENT_H_
46 typedef std::vector <Variant>
Labels;
57 return labels_.empty ();
61 template <
class T>
friend class Ptr;
65 labels_ (std::move (
labels))
69 const std::vector <Variant> labels_;
@ UNION_ELEMENT
class UnionElement
The item with name and type.
const Identifier & name() const noexcept
The IDL simple declarator.
union element definition.
const Labels & labels() const noexcept
bool is_default() const noexcept
std::vector< Variant > Labels
The vector of case labels.
Abstract Syntax Tree namespace.