recursive space map
This commit is contained in:
10
space_map.h
10
space_map.h
@@ -2,6 +2,7 @@
|
||||
#define SPACE_MAP_H
|
||||
|
||||
#include "block.h"
|
||||
#include "block_counter.h"
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
@@ -49,6 +50,15 @@ namespace persistent_data {
|
||||
virtual void copy_root(void *dest, size_t len) = 0;
|
||||
};
|
||||
|
||||
class checked_space_map : public persistent_space_map {
|
||||
public:
|
||||
typedef boost::shared_ptr<checked_space_map> ptr;
|
||||
|
||||
virtual void check(block_counter &counter) const {
|
||||
throw std::runtime_error("not implemented");
|
||||
}
|
||||
};
|
||||
|
||||
class sm_adjust {
|
||||
public:
|
||||
sm_adjust(space_map::ptr sm, block_address b, int delta)
|
||||
|
||||
Reference in New Issue
Block a user