memgraph/include/mvcc/id.hpp
2016-07-05 13:20:33 +01:00

26 lines
428 B
C++

#pragma once
#include <ostream>
#include <stdint.h>
#include "utils/total_ordering.hpp"
class Id : public TotalOrdering<Id>
{
public:
Id() = default;
Id(uint64_t id);
friend bool operator<(const Id& a, const Id& b);
friend bool operator==(const Id& a, const Id& b);
friend std::ostream& operator<<(std::ostream& stream, const Id& id);
operator uint64_t() const;
private:
uint64_t id {0};
};