Reviewers: teon.banek, dgleich Reviewed By: teon.banek, dgleich Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1110
30 lines
748 B
C++
30 lines
748 B
C++
#pragma once
|
|
|
|
#include "mvcc/record.hpp"
|
|
#include "mvcc/version_list.hpp"
|
|
#include "storage/address.hpp"
|
|
#include "storage/edges.hpp"
|
|
#include "storage/property_value_store.hpp"
|
|
#include "storage/types.hpp"
|
|
|
|
class Vertex : public mvcc::Record<Vertex> {
|
|
public:
|
|
Vertex() = default;
|
|
// Returns new Vertex with copy of data stored in this Vertex, but without
|
|
// copying superclass' members.
|
|
Vertex *CloneData() { return new Vertex(*this); }
|
|
|
|
Edges out_;
|
|
Edges in_;
|
|
std::vector<storage::Label> labels_;
|
|
PropertyValueStore properties_;
|
|
|
|
private:
|
|
Vertex(const Vertex &other)
|
|
: mvcc::Record<Vertex>(),
|
|
out_(other.out_),
|
|
in_(other.in_),
|
|
labels_(other.labels_),
|
|
properties_(other.properties_) {}
|
|
};
|