memgraph/src/query_engine/i_code_cpu.hpp

16 lines
309 B
C++
Raw Normal View History

#pragma once
2016-02-11 06:34:49 +08:00
#include "query_engine/query_result.hpp"
#include "query_stripped.hpp"
#include "database/db.hpp"
class ICodeCPU
{
public:
virtual QueryResult::sptr run(Db& db, code_args_t& args) = 0;
virtual ~ICodeCPU() {}
};
2016-02-11 06:34:49 +08:00
using produce_t = ICodeCPU*(*)();
using destruct_t = void (*)(ICodeCPU*);