An IDL type.
More...
#include <Type.h>
An IDL type.
- Examples
- Printer.cpp.
Definition at line 46 of file Type.h.
◆ Kind
The kind of type.
Enumerator |
---|
VOID | void
|
BASIC_TYPE | Type::basic_type ();
|
NAMED_TYPE | named_type ()
|
STRING | string_bound ()
|
WSTRING | string_bound ()
|
FIXED | fixed_digits (), fixed_scale ()
|
SEQUENCE | sequence ()
|
ARRAY | array ()
|
Definition at line 50 of file Type.h.
◆ tkind()
Kind AST::Type::tkind |
( |
| ) |
const |
|
inlinenoexcept |
◆ basic_type()
◆ named_type()
const NamedItem & AST::Type::named_type |
( |
| ) |
const |
|
inlinenoexcept |
◆ string_bound()
Dim AST::Type::string_bound |
( |
| ) |
const |
|
inlinenoexcept |
◆ sequence()
const Sequence & AST::Type::sequence |
( |
| ) |
const |
|
inlinenoexcept |
◆ array()
const Array & AST::Type::array |
( |
| ) |
const |
|
inlinenoexcept |
◆ fixed_digits()
uint16_t AST::Type::fixed_digits |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- Number of digits for fixed type. If type is a part of constant definition, returns 0.
- Invariant
tkind () == Kind::FIXED
- Examples
- Printer.cpp.
Definition at line 120 of file Type.h.
◆ fixed_scale()
uint16_t AST::Type::fixed_scale |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- Scale for fixed type. If type is a part of constant definition, returns 0.
- Invariant
tkind () == Kind::FIXED
- Examples
- Printer.cpp.
Definition at line 129 of file Type.h.
◆ dereference_type()
const Type & AST::Type::dereference_type |
( |
| ) |
const |
|
noexcept |
- Returns
- The referenced type.
The documentation for this class was generated from the following file: