libscratchcpp
A library for C++ based Scratch project players
Loading...
Searching...
No Matches
libscratchcpp::CompilerContext Class Reference

The CompilerContext represents a context for a specific target which is used with the Compiler class. More...

#include <scratchcpp/compilercontext.h>

Public Member Functions

 CompilerContext (IEngine *engine, Target *target)
 
 CompilerContext (const CompilerContext &)=delete
 
virtual ~CompilerContext ()
 
IEngineengine () const
 
Targettarget () const
 
virtual void preoptimize ()
 

Detailed Description

The CompilerContext represents a context for a specific target which is used with the Compiler class.

Constructor & Destructor Documentation

◆ CompilerContext() [1/2]

CompilerContext::CompilerContext ( IEngine * engine,
Target * target )

Constructs CompilerContext.

◆ CompilerContext() [2/2]

libscratchcpp::CompilerContext::CompilerContext ( const CompilerContext & )
delete

◆ ~CompilerContext()

virtual libscratchcpp::CompilerContext::~CompilerContext ( )
inlinevirtual

Member Function Documentation

◆ engine()

IEngine * CompilerContext::engine ( ) const

Returns the engine of the project.

◆ preoptimize()

virtual void libscratchcpp::CompilerContext::preoptimize ( )
inlinevirtual

Optimizes compiled scripts ahead of time.

See also
Compiler::preoptimize()

◆ target()

Target * CompilerContext::target ( ) const

Returns the target of this context.


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