memgraph/include/storage/label/label_store.hpp

22 lines
397 B
C++
Raw Normal View History

#pragma once
#include <stdexcept>
2016-07-07 00:37:05 +08:00
#include "storage/label/label.hpp"
#include "data_structures/concurrent/concurrent_set.hpp"
class LabelStore
{
public:
const Label& find_or_create(const std::string& name);
bool contains(const std::string& name); // TODO: const
// TODO: implement find method
// return { Label, is_found }
private:
ConcurrentSet<Label> labels;
};