treelite
Public Member Functions | Static Public Member Functions | List of all members
Compiler Class Referenceabstract

interface of compiler More...

#include <compiler.h>

Inheritance diagram for Compiler:
Inheritance graph
[legend]

Public Member Functions

virtual ~Compiler ()=default
 virtual destructor
 
virtual compiler::CompiledModel Compile (const Model &model)=0
 convert tree ensemble model More...
 

Static Public Member Functions

static CompilerCreate (const std::string &name, const compiler::CompilerParam &param)
 create a compiler from given name More...
 

Detailed Description

interface of compiler

Definition at line 33 of file compiler.h.

Member Function Documentation

◆ Compile()

virtual compiler::CompiledModel Compile ( const Model model)
pure virtual

convert tree ensemble model

Returns
compiled model

Implemented in ASTNativeCompiler.

◆ Create()

Compiler * Create ( const std::string &  name,
const compiler::CompilerParam param 
)
static

create a compiler from given name

Parameters
namename of compiler
Returns
The created compiler

Definition at line 15 of file compiler.cc.


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