build fixes

This commit is contained in:
Kruno Tomola Fabro 2016-08-11 15:32:58 +01:00
parent 02ec6dd401
commit 2113546b9c
7 changed files with 12 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#pragma once
#include "mvcc/edge_record.hpp"
#include "storage/edge.hpp"
#include "storage/edge_record.hpp"
#include "storage/record_accessor.hpp"
#include "utils/assert.hpp"
#include "utils/reference_wrapper.hpp"

View File

@ -1,6 +1,7 @@
#pragma once
#include "data_structures/concurrent/concurrent_map.hpp"
#include "mvcc/version_list.hpp"
#include "storage/common.hpp"
#include "storage/edge_accessor.hpp"
@ -8,7 +9,8 @@ class Edges
{
public:
Edge::Accessor find(tx::Transaction &t, const Id &id);
Edge::Accessor insert(tx::Transaction &t);
Edge::Accessor insert(tx::Transaction &t, VertexRecord *from,
VertexRecord *to);
private:
ConcurrentMap<uint64_t, EdgeRecord> edges;

View File

@ -3,6 +3,7 @@
#include <vector>
#include "mvcc/version_list.hpp"
#include "storage/edge_record.hpp"
class EdgeList
{

View File

@ -1,6 +1,8 @@
#pragma once
#include "storage/label/label_collection.hpp"
#include "storage/model/edge_list.hpp"
#include "storage/model/edge_map.hpp"
#include "storage/model/property_model.hpp"
class VertexModel : public PropertyModel

View File

@ -4,3 +4,5 @@ project(memgraph_poc)
add_executable(poc_astar astar.cpp)
target_link_libraries(poc_astar memgraph)
target_link_libraries(poc_astar Threads::Threads)
target_link_libraries(poc_astar ${fmt_static_lib})

View File

@ -15,13 +15,14 @@ Edge::Accessor Edges::find(tx::Transaction &t, const Id &id)
return Edge::Accessor(edge, &edges_iterator->second, this);
}
Edge::Accessor Edges::insert(tx::Transaction &t)
Edge::Accessor Edges::insert(tx::Transaction &t, VertexRecord *from,
VertexRecord *to)
{
// get next vertex id
auto next = counter.next(std::memory_order_acquire);
// create new vertex record
EdgeRecord edge_record(next);
EdgeRecord edge_record(next, from, to);
// insert the new vertex record into the vertex store
auto edges_accessor = edges.access();