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

The IDL declarator. More...

#include <Declarators.h>

Inheritance diagram for AST::Declarator:
AST::SimpleDeclarator AST::Identifier AST::Location

Public Member Functions

 Declarator (const Identifier &name, const Location &loc, const FixedArraySizes &array)
 
 Declarator (Identifier &&name, const Location &loc, const FixedArraySizes &array)
 
 Declarator (const Identifier &name, const Location &loc)
 
 Declarator (Identifier &&name, const Location &loc)
 
const FixedArraySizesarray_sizes () const
 
- Public Member Functions inherited from AST::SimpleDeclarator
 SimpleDeclarator (const Identifier &name, const Location &loc)
 
 SimpleDeclarator (Identifier &&name, const Location &loc)
 
- Public Member Functions inherited from AST::Identifier
bool operator< (const Identifier &r) const noexcept
 CORBA IDL identifiers are case-insensitive.
 
 Identifier ()
 Default constructor.
 
 Identifier (const char *s, size_t len)
 
 Identifier (const char *s)
 
 Identifier (std::string &&s) noexcept
 
bool valid () const noexcept
 
bool operator== (const char *s) const noexcept
 Case-insensitive equivalency.
 
- Public Member Functions inherited from AST::Location
const std::filesystem::path & file () const noexcept
 
unsigned line () const noexcept
 

Detailed Description

The IDL declarator.

Definition at line 78 of file Declarators.h.

Constructor & Destructor Documentation

◆ Declarator() [1/4]

AST::Declarator::Declarator ( const Identifier name,
const Location loc,
const FixedArraySizes array 
)
inline

Array declarator.

Parameters
nameThe name.
locThe location.
arrayArray sizes.

Definition at line 90 of file Declarators.h.

◆ Declarator() [2/4]

AST::Declarator::Declarator ( Identifier &&  name,
const Location loc,
const FixedArraySizes array 
)
inline

Array declarator.

Parameters
nameThe name.
locThe location.
arrayArray sizes.

Definition at line 100 of file Declarators.h.

◆ Declarator() [3/4]

AST::Declarator::Declarator ( const Identifier name,
const Location loc 
)
inline

Simple declarator.

Parameters
nameThe name.
locThe location.

Definition at line 109 of file Declarators.h.

◆ Declarator() [4/4]

AST::Declarator::Declarator ( Identifier &&  name,
const Location loc 
)
inline

Simple declarator.

Parameters
nameThe name.
locThe location.

Definition at line 117 of file Declarators.h.

Member Function Documentation

◆ array_sizes()

const FixedArraySizes& AST::Declarator::array_sizes ( ) const
inline
Returns
Array dimensions.

Definition at line 136 of file Declarators.h.


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