20 lines
546 B
C++
20 lines
546 B
C++
#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
|