Represents a request to compile a specific source code artifact. A compilation request consists of a unique identifier, a source code artifact and a set of compilation options.
More...
#include <CompilationRequest.hpp>
|
static std::shared_ptr< CompilationRequest > | create (std::unique_ptr< SourceCode > sourceCode, std::string name, bool profileCompilation, bool profileExecution, bool optimizeCompilation, bool debug, std::vector< std::shared_ptr< ExternalAPI >> externalApis={}) |
| Creates a new @CompilationRequest. More...
|
|
Represents a request to compile a specific source code artifact. A compilation request consists of a unique identifier, a source code artifact and a set of compilation options.
◆ CompilationRequest()
NES::Compiler::CompilationRequest::CompilationRequest |
( |
std::unique_ptr< SourceCode > |
sourceCode, |
|
|
std::string |
name, |
|
|
bool |
profileCompilation, |
|
|
bool |
profileExecution, |
|
|
bool |
optimizeCompilation, |
|
|
bool |
debug, |
|
|
std::vector< std::shared_ptr< ExternalAPI >> |
externalApis = {} |
|
) |
| |
Creates a new @CompilationRequest.
- Parameters
-
sourceCode | The source code artifact that should be compiled |
name | the identifier of this request |
profileCompilation | enables profiling for the compilation |
profileExecution | enables profiling for the execution |
optimizeCompilation | enables optimizations |
debug | enables debug options |
externalApis | a vector of external APIs to add to the compilation process (empty by default) |
- Returns
- std::unique_ptr<CompilationRequest>
◆ create()
std::shared_ptr< CompilationRequest > NES::Compiler::CompilationRequest::create |
( |
std::unique_ptr< SourceCode > |
sourceCode, |
|
|
std::string |
name, |
|
|
bool |
profileCompilation, |
|
|
bool |
profileExecution, |
|
|
bool |
optimizeCompilation, |
|
|
bool |
debug, |
|
|
std::vector< std::shared_ptr< ExternalAPI >> |
externalApis = {} |
|
) |
| |
|
static |
◆ enableCompilationProfiling()
bool NES::Compiler::CompilationRequest::enableCompilationProfiling |
( |
| ) |
const |
Indicates if the compilation process should be profiled.
- Returns
- profile compilation flag
◆ enableDebugging()
bool NES::Compiler::CompilationRequest::enableDebugging |
( |
| ) |
const |
Indicates if debugging should be enabled.
- Returns
- debug flag
◆ enableExecutionProfiling()
bool NES::Compiler::CompilationRequest::enableExecutionProfiling |
( |
| ) |
const |
Indicates if the execution should be profiled.
- Returns
- profile compilation flag
◆ enableOptimizations()
bool NES::Compiler::CompilationRequest::enableOptimizations |
( |
| ) |
const |
Indicates if optimizations should be enabled.
- Returns
- optimization flag
◆ getExternalAPIs()
std::vector< std::shared_ptr< ExternalAPI > > NES::Compiler::CompilationRequest::getExternalAPIs |
( |
| ) |
const |
Returns the external APIs.
- Returns
- std::vector<std::shared_ptr<ExternalAPI>>
◆ getName()
std::string NES::Compiler::CompilationRequest::getName |
( |
| ) |
const |
Returns the identifier.
- Returns
- name
◆ getSourceCode()
const std::shared_ptr< SourceCode > NES::Compiler::CompilationRequest::getSourceCode |
( |
| ) |
const |
Returns the source code artifact.
- Returns
- @SourceCode
◆ operator!=()
bool NES::Compiler::CompilationRequest::operator!= |
( |
const CompilationRequest & |
rhs | ) |
const |
◆ operator==()
bool NES::Compiler::CompilationRequest::operator== |
( |
const CompilationRequest & |
rhs | ) |
const |
The documentation for this class was generated from the following files: