2016-02-22 05:21:15 +08:00
|
|
|
#pragma once
|
|
|
|
|
2016-08-10 16:39:02 +08:00
|
|
|
#include "query_engine/i_code_cpu.hpp"
|
|
|
|
#include "query_engine/query_stripped.hpp"
|
2016-02-22 05:21:15 +08:00
|
|
|
|
|
|
|
struct QueryProgram
|
|
|
|
{
|
2016-06-06 17:29:52 +08:00
|
|
|
QueryProgram(ICodeCPU *code, QueryStripped &&stripped)
|
|
|
|
: code(code), stripped(std::forward<QueryStripped>(stripped))
|
|
|
|
{
|
|
|
|
}
|
2016-02-22 05:21:15 +08:00
|
|
|
|
2016-06-06 17:29:52 +08:00
|
|
|
QueryProgram(QueryProgram &other) = delete;
|
|
|
|
QueryProgram(QueryProgram &&other) = default;
|
2016-02-22 05:21:15 +08:00
|
|
|
|
|
|
|
ICodeCPU *code;
|
|
|
|
QueryStripped stripped;
|
|
|
|
};
|