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 |
- Returns
- The kind of type.
Definition at line 63 of file Type.h.
◆ basic_type()
◆ named_type()
const NamedItem& AST::Type::named_type |
( |
| ) |
const |
|
inlinenoexcept |
◆ string_bound()
Dim AST::Type::string_bound |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- The string size bound if string has limited size. If size is not limited, returns 0.
- Invariant
tkind () == Kind::STRING || tkind () == Kind::WSTRING
Definition at line 87 of file Type.h.
◆ sequence()
const Sequence& AST::Type::sequence |
( |
| ) |
const |
|
inlinenoexcept |
◆ array()
const Array& AST::Type::array |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- The array descriptor.
- Invariant
tkind () == Kind::ARRAY
Definition at line 109 of file Type.h.
◆ 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
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
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: