memgraph/src/storage/edge_accessor.cpp

13 lines
321 B
C++
Raw Normal View History

#include "storage/edge_accessor.hpp"
2016-08-28 22:47:13 +08:00
void EdgeAccessor::edge_type(const EdgeType &edge_type)
{
2016-08-28 22:47:13 +08:00
this->record->data.edge_type = &edge_type;
}
2016-08-28 22:47:13 +08:00
const EdgeType &EdgeAccessor::edge_type() const
{
runtime_assert(this->record->data.edge_type != nullptr, "EdgeType is null");
2016-08-28 22:47:13 +08:00
return *this->record->data.edge_type;
}