GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
gd::ExpressionCodeGenerationInformation Class Reference

Information about how generate code for an expression. More...

#include <ExpressionMetadata.h>

Public Member Functions

ExpressionCodeGenerationInformationSetFunctionName (const gd::String &functionName)
 Set the function name which will be used when generating the code. More...
 
ExpressionCodeGenerationInformationSetStatic ()
 Set that the function is static.
 
ExpressionCodeGenerationInformationSetIncludeFile (const gd::String &includeFile)
 Erase any existing include file and add the specified include.
 
ExpressionCodeGenerationInformationAddIncludeFile (const gd::String &includeFile)
 Add a file to the already existing include files.
 
const std::vector< gd::String > & GetIncludeFiles () const
 Get the files that must be included to use the instruction.
 
ExpressionCodeGenerationInformationSetCustomCodeGenerator (std::function< gd::String(const std::vector< gd::Expression > &parameters, gd::EventsCodeGenerator &codeGenerator, gd::EventsCodeGenerationContext &context)> codeGenerator)
 Set that the function must be generated using a custom code generator.
 
ExpressionCodeGenerationInformationRemoveCustomCodeGenerator ()
 
bool HasCustomCodeGenerator () const
 

Public Attributes

bool staticFunction
 
gd::String functionCallName
 
bool hasCustomCodeGenerator
 
std::function< gd::String(const
std::vector< gd::Expression >
&parameters,
gd::EventsCodeGenerator
&codeGenerator,
gd::EventsCodeGenerationContext
&context)> 
customCodeGenerator
 

Detailed Description

Information about how generate code for an expression.

Member Function Documentation

ExpressionCodeGenerationInformation& gd::ExpressionCodeGenerationInformation::SetFunctionName ( const gd::String functionName)
inline

Set the function name which will be used when generating the code.

Parameters
functionNamethe name of the function to call

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