memgraph/include/storage/vertex.hpp

19 lines
472 B
C++

#pragma once
#include "database/graph_db.hpp"
#include "mvcc/record.hpp"
#include "mvcc/version_list.hpp"
#include "storage/typed_value_store.hpp"
// forward declare Edge because there is a circular usage Edge <-> Vertex
class Edge;
class Vertex : public mvcc::Record<Vertex> {
public:
std::vector<mvcc::VersionList<Edge> *> out_;
std::vector<mvcc::VersionList<Edge> *> in_;
std::set<GraphDb::Label> labels_;
TypedValueStore<GraphDb::Property> properties_;
};