memgraph/query_engine/i_code_cpu.hpp

15 lines
260 B
C++
Raw Normal View History

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