2015-07-07 22:18:26 +08:00
|
|
|
#ifndef MEMGRAPH_STORAGE_RECORD_HPP
|
|
|
|
#define MEMGRAPH_STORAGE_RECORD_HPP
|
|
|
|
|
|
|
|
#include <mutex>
|
|
|
|
|
2015-07-31 18:31:08 +08:00
|
|
|
#include "utils/crtp.hpp"
|
|
|
|
|
2015-07-07 22:18:26 +08:00
|
|
|
#include "sync/spinlock.hpp"
|
2015-07-31 18:31:08 +08:00
|
|
|
#include "sync/lockable.hpp"
|
|
|
|
|
|
|
|
#include "storage/model/utils/mvcc.hpp"
|
2015-07-07 22:18:26 +08:00
|
|
|
|
2015-08-30 07:12:46 +08:00
|
|
|
#include "properties/properties.hpp"
|
|
|
|
|
2015-07-31 18:31:08 +08:00
|
|
|
template <class Derived>
|
2015-07-07 22:18:26 +08:00
|
|
|
class Record
|
2015-07-31 18:31:08 +08:00
|
|
|
: public Crtp<Derived>,
|
|
|
|
public Mvcc<Derived>,
|
|
|
|
Lockable<SpinLock>
|
2015-07-07 22:18:26 +08:00
|
|
|
{
|
|
|
|
public:
|
2015-08-30 07:12:46 +08:00
|
|
|
Properties props;
|
2015-07-07 22:18:26 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|