IDL compiler front-end library
Public Member Functions | List of all members
AST::StructDecl Class Reference

The struct forward declaration. More...

#include <Struct.h>

Inheritance diagram for AST::StructDecl:
AST::ItemWithId AST::NamedItem AST::Item AST::Location

Public Member Functions

const Structdefinition () const
 
- Public Member Functions inherited from AST::ItemWithId
std::string repository_id () const
 
- Public Member Functions inherited from AST::NamedItem
const Identifiername () const noexcept
 
const ItemScopeparent () const noexcept
 
std::string qualified_name () const
 
ScopedName scoped_name () const
 
const Symbolsparent_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
 

Additional Inherited Members

- 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...
 
- Static Public Member Functions inherited from AST::ItemWithId
static const ItemWithIdcast (const NamedItem *item) noexcept
 

Detailed Description

The struct forward declaration.

Invariant
kind () == Item::Kind::STRUCT_DECL
Examples
Printer.cpp.

Definition at line 42 of file Struct.h.

Member Function Documentation

◆ definition()

const Struct& AST::StructDecl::definition ( ) const
inline
Returns
struct definition reference.

Definition at line 47 of file Struct.h.


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