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

The attribute specification. More...

#include <Attribute.h>

Inheritance diagram for AST::Attribute:
AST::Member AST::NamedItem AST::Type AST::Item AST::Location

Public Member Functions

bool readonly () const noexcept
 
const Raisesgetraises () const noexcept
 
const Raisessetraises () const noexcept
 
- 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
 
- Public Member Functions inherited from AST::Type
Kind tkind () const noexcept
 
BasicType basic_type () const noexcept
 
const NamedItemnamed_type () const noexcept
 
Dim string_bound () const noexcept
 
Dim string_size () const noexcept
 Obsolete. Use Type::string_bound () instead.
 
const Sequencesequence () const noexcept
 
const Arrayarray () const noexcept
 
uint16_t fixed_digits () const noexcept
 
uint16_t fixed_scale () const noexcept
 
const Typedereference_type () const noexcept
 
 ~Type ()
 Destructor.
 
 Type ()
 Default constructor.
 
 Type (const Type &src)
 Copy constructor.
 
 Type (Type &&src) noexcept
 Move constructor.
 
Typeoperator= (const Type &src)
 Copy assignment.
 
Typeoperator= (Type &&src) noexcept
 Move assignment.
 
bool operator== (const Type &rhs) const noexcept
 Check types for equality.
 

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...
 
- Public Types inherited from AST::Type
enum class  Kind {
  VOID , BASIC_TYPE , NAMED_TYPE , STRING ,
  WSTRING , FIXED , SEQUENCE , ARRAY
}
 The kind of type. More...
 

Detailed Description

The attribute specification.

Examples
Printer.cpp.

Definition at line 37 of file Attribute.h.

Member Function Documentation

◆ readonly()

bool AST::Attribute::readonly ( ) const
inlinenoexcept
Returns
true if the attribute is marked as readonly.

Definition at line 42 of file Attribute.h.

◆ getraises()

const Raises& AST::Attribute::getraises ( ) const
inlinenoexcept
Returns
Potential user exceptions may be raised when the attribute is read.

Definition at line 48 of file Attribute.h.

◆ setraises()

const Raises& AST::Attribute::setraises ( ) const
inlinenoexcept
Returns
Potential user exceptions may be raised when the attribute is written.

Definition at line 54 of file Attribute.h.


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