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

The named item which defines a scope. More...

#include <ItemScope.h>

Inheritance diagram for AST::ItemScope:
AST::ItemWithId AST::NamedItem AST::Item AST::Location AST::IV_Base AST::Module AST::Interface AST::ValueType

Public Member Functions

 operator Symbols & () noexcept
 
 operator const Symbols & () const noexcept
 
- 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
 

Static Public Member Functions

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

The named item which defines a scope.

Definition at line 36 of file ItemScope.h.

Member Function Documentation

◆ operator Symbols &()

AST::ItemScope::operator Symbols & ( )
inlinenoexcept
Returns
Symbols reference.

Definition at line 41 of file ItemScope.h.

◆ operator const Symbols &()

AST::ItemScope::operator const Symbols & ( ) const
inlinenoexcept
Returns
Symbols const reference.

Definition at line 47 of file ItemScope.h.

◆ cast() [1/2]

static const ItemScope * AST::ItemScope::cast ( const NamedItem item)
inlinestaticnoexcept

Cast NamedItem to ItemScope. If item points to object derived from ItemScope, returns ItemScope pointer. Otherwise returns nullptr.

Parameters
itemNamedItem pointer.
Returns
ItemScope pointer or nullptr.

Definition at line 58 of file ItemScope.h.

◆ cast() [2/2]

static ItemScope * AST::ItemScope::cast ( NamedItem item)
staticnoexcept

Cast NamedItem to ItemScope. If item points to object derived from ItemScope, returns ItemScope pointer. Otherwise returns nullptr.

Parameters
itemNamedItem pointer.
Returns
ItemScope pointer or nullptr.

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