memgraph/src/storage/edge.hpp

24 lines
488 B
C++
Raw Normal View History

2015-12-06 23:37:42 +08:00
#pragma once
2015-07-07 22:18:26 +08:00
2015-12-06 23:37:42 +08:00
#include "mvcc/record.hpp"
#include "model/edge_model.hpp"
#include "model/properties/traversers/jsonwriter.hpp"
2015-07-07 22:18:26 +08:00
2015-12-06 23:37:42 +08:00
class Edge : public mvcc::Record<Edge>
2015-07-07 22:18:26 +08:00
{
2015-12-06 23:37:42 +08:00
public:
class Accessor;
2015-12-06 23:37:42 +08:00
Edge() = default;
Edge(const EdgeModel& data) : data(data) {}
Edge(EdgeModel&& data) : data(std::move(data)) {}
Edge(const Edge&) = delete;
Edge(Edge&&) = delete;
2015-07-07 22:18:26 +08:00
2015-12-06 23:37:42 +08:00
Edge& operator=(const Edge&) = delete;
Edge& operator=(Edge&&) = delete;
EdgeModel data;
};