memgraph/include/storage/edge.hpp
2016-08-10 09:39:02 +01:00

24 lines
504 B
C++

#pragma once
#include "mvcc/record.hpp"
#include "storage/model/edge_model.hpp"
#include "storage/model/properties/traversers/jsonwriter.hpp"
class Edge : public mvcc::Record<Edge>
{
public:
class Accessor;
Edge() = default;
Edge(const EdgeModel& data) : data(data) {}
Edge(EdgeModel&& data) : data(std::move(data)) {}
Edge(const Edge&) = delete;
Edge(Edge&&) = delete;
Edge& operator=(const Edge&) = delete;
Edge& operator=(Edge&&) = delete;
EdgeModel data;
};