memgraph/include/storage/edge.hpp

18 lines
425 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> {
2015-12-06 23:37:42 +08:00
public:
mvcc::VersionList<Vertex>* from_;
mvcc::VersionList<Vertex>* to_;
GraphDb::EdgeType edge_type_;
TypedValueStore properties_;
2015-12-06 23:37:42 +08:00
};