21 lines
559 B
C++
21 lines
559 B
C++
#pragma once
|
|
#ifndef MESSMER_PARALLELACCESSSTORE_PARALLELACCESSBASESTORE_H_
|
|
#define MESSMER_PARALLELACCESSSTORE_PARALLELACCESSBASESTORE_H_
|
|
|
|
#include <messmer/cpp-utils/pointer/unique_ref.h>
|
|
#include <boost/optional.hpp>
|
|
|
|
namespace parallelaccessstore {
|
|
|
|
template<class Resource, class Key>
|
|
class ParallelAccessBaseStore {
|
|
public:
|
|
virtual ~ParallelAccessBaseStore() {}
|
|
virtual boost::optional<cpputils::unique_ref<Resource>> loadFromBaseStore(const Key &key) = 0;
|
|
virtual void removeFromBaseStore(cpputils::unique_ref<Resource> block) = 0;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|