memgraph/include/query_engine/i_code_cpu.hpp

26 lines
544 B
C++
Raw Normal View History

#pragma once
#include "communication/communication.hpp"
#include "query_engine/query_stripped.hpp"
// #include "database/db.hpp"
// #include "database/db_accessor.hpp"
// BARRIER!
#include "barrier/barrier.hpp"
template <typename Stream>
class ICodeCPU
{
public:
virtual bool run(barrier::Db &db, code_args_t &args,
Stream &stream) = 0;
virtual ~ICodeCPU() {}
};
template <typename Stream>
using produce_t = ICodeCPU<Stream> *(*)();
template <typename Stream>
using destruct_t = void (*)(ICodeCPU<Stream> *);