IDL compiler front-end library
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
AST::ItemWithId Class Reference

Items which have repository identifiers derive from this class. More...

#include <ItemWithId.h>

Inheritance diagram for AST::ItemWithId:
AST::NamedItem AST::Item AST::Location AST::Enum AST::InterfaceDecl AST::ItemScope AST::Native AST::StructBase AST::StructDecl AST::TypeDef AST::Union AST::UnionDecl AST::ValueBox AST::ValueTypeDecl

Public Member Functions

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
 

Static Public Member Functions

static const ItemWithIdcast (const NamedItem *item) 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...
 

Detailed Description

Items which have repository identifiers derive from this class.

Definition at line 41 of file ItemWithId.h.

Member Function Documentation

◆ repository_id()

std::string AST::ItemWithId::repository_id ( ) const
Returns
The repository id.

◆ cast()

static const ItemWithId * AST::ItemWithId::cast ( const NamedItem item)
inlinestaticnoexcept
Returns
ItemWithId const pointer if item derives from ItemWithId. Otherwise returns nullptr.

Definition at line 49 of file ItemWithId.h.


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