memgraph/src/storage/edge.hpp

22 lines
608 B
C++
Raw Normal View History

2015-12-06 23:37:42 +08:00
#pragma once
2015-07-07 22:18:26 +08:00
#include "database/graph_db.hpp"
2015-12-06 23:37:42 +08:00
#include "mvcc/record.hpp"
#include "mvcc/version_list.hpp"
#include "storage/typed_value_store.hpp"
2015-07-07 22:18:26 +08:00
// forward declare Vertex because there is a circular usage Edge <-> Vertex
class Vertex;
class Edge : public mvcc::Record<Edge> {
public:
Edge(mvcc::VersionList<Vertex>& from, mvcc::VersionList<Vertex>& to,
GraphDb::EdgeType edge_type)
: from_(from), to_(to), edge_type_(edge_type) {}
mvcc::VersionList<Vertex>& from_;
mvcc::VersionList<Vertex>& to_;
GraphDb::EdgeType edge_type_;
TypedValueStore<GraphDb::Property> properties_;
2015-12-06 23:37:42 +08:00
};