memgraph/include/storage/vertex_accessor.hpp
Kruno Tomola Fabro 1849514159 First step in database accessor refactoring done.
It's compiling.
All tests with exception of integration_querys pass
2016-08-12 23:01:39 +01:00

25 lines
458 B
C++

#pragma once
#include "storage/record_accessor.hpp"
#include "storage/vertex.hpp"
class Vertices;
class Vertex::Accessor : public RecordAccessor<Vertex, Vertex::Accessor>
{
public:
using RecordAccessor::RecordAccessor;
size_t out_degree() const;
size_t in_degree() const;
size_t degree() const;
void add_label(const Label &label);
bool has_label(const Label &label) const;
const std::set<label_ref_t> &labels() const;
};