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

Base for code generators. Abstract class. More...

#include <CodeGen.h>

Public Member Functions

virtual void begin (const Root &)
 
virtual void end (const Root &)
 
virtual void leaf (const Include &)=0
 #include
 
virtual void leaf (const Native &)=0
 native
 
virtual void leaf (const TypeDef &)=0
 typedef
 
virtual void leaf (const Constant &)=0
 const
 
virtual void begin (const ModuleItems &)=0
 module begin.
 
virtual void end (const ModuleItems &)=0
 module end.
 
virtual void leaf (const InterfaceDecl &)=0
 interface forward declaration.
 
virtual void begin (const Interface &)=0
 interface begin.
 
virtual void end (const Interface &)=0
 interface end.
 
virtual void leaf (const Operation &)=0
 Operation.
 
virtual void leaf (const Attribute &)=0
 attribute
 
virtual void leaf (const Exception &)=0
 exception
 
virtual void leaf (const StructDecl &)=0
 struct forward declaration.
 
virtual void leaf (const Struct &)=0
 struct
 
virtual void leaf (const UnionDecl &)=0
 union forward declaration.
 
virtual void leaf (const Union &)=0
 union
 
virtual void leaf (const Enum &)=0
 enum
 
virtual void leaf (const ValueTypeDecl &)=0
 valuetype forward declaration.
 
virtual void begin (const ValueType &)=0
 valuetype begin.
 
virtual void end (const ValueType &)=0
 valuetype end.
 
virtual void leaf (const StateMember &)=0
 valuetype state member.
 
virtual void leaf (const ValueFactory &)=0
 factory
 
virtual void leaf (const ValueBox &)=0
 Boxed valuetype.
 

Detailed Description

Base for code generators. Abstract class.

Supported Building Blocks (https://www.omg.org/spec/IDL/4.2/):

In future versions, it may be extended with derived classes CodeGen2, CodeGen3 etc.

Examples
Printer.cpp.

Definition at line 74 of file CodeGen.h.

Member Function Documentation

◆ begin()

virtual void AST::CodeGen::begin ( const Root )
inlinevirtual

Begin code generation.

This method is not pure virtual and doed nothing by default.

Examples
Printer.cpp.

Definition at line 80 of file CodeGen.h.

◆ end()

virtual void AST::CodeGen::end ( const Root )
inlinevirtual

End code generation.

This method is not pure virtual and doed nothing by default.

Examples
Printer.cpp.

Definition at line 85 of file CodeGen.h.


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