[caching/mapping_array] namespace tweaking
This commit is contained in:
parent
42fd6b928b
commit
96143f0bed
@ -11,8 +11,8 @@
|
||||
|
||||
using namespace std;
|
||||
using namespace caching;
|
||||
using namespace caching::mapping_array_detail;
|
||||
using namespace caching::superblock_detail;
|
||||
using namespace caching::mapping_array_damage;
|
||||
using namespace caching::superblock_damage;
|
||||
|
||||
//----------------------------------------------------------------
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
#include "caching/mapping_array.h"
|
||||
#include "persistent-data/endian_utils.h"
|
||||
|
||||
using namespace caching::mapping_array_detail;
|
||||
using namespace caching;
|
||||
using namespace caching::mapping_array_damage;
|
||||
|
||||
//----------------------------------------------------------------
|
||||
|
||||
|
@ -6,7 +6,6 @@
|
||||
//----------------------------------------------------------------
|
||||
|
||||
namespace caching {
|
||||
namespace mapping_array_detail {
|
||||
enum mapping_flags {
|
||||
M_VALID = 1,
|
||||
M_DIRTY = 2
|
||||
@ -26,6 +25,7 @@ namespace caching {
|
||||
static void pack(value_type const &value, disk_type &disk);
|
||||
};
|
||||
|
||||
namespace mapping_array_damage {
|
||||
class damage_visitor;
|
||||
|
||||
struct damage {
|
||||
@ -45,7 +45,7 @@ namespace caching {
|
||||
public:
|
||||
virtual ~damage_visitor() {}
|
||||
|
||||
virtual void visit(mapping_array_detail::damage const &d) {
|
||||
virtual void visit(mapping_array_damage::damage const &d) {
|
||||
d.visit(*this);
|
||||
}
|
||||
|
||||
@ -53,10 +53,10 @@ namespace caching {
|
||||
};
|
||||
}
|
||||
|
||||
typedef persistent_data::array<mapping_array_detail::mapping_traits> mapping_array;
|
||||
typedef persistent_data::array<mapping_traits> mapping_array;
|
||||
|
||||
void check_mapping_array(mapping_array const &array,
|
||||
mapping_array_detail::damage_visitor &visitor);
|
||||
mapping_array_damage::damage_visitor &visitor);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------
|
||||
|
@ -3,7 +3,6 @@
|
||||
#include "caching/mapping_array.h"
|
||||
|
||||
using namespace caching;
|
||||
using namespace mapping_array_detail;
|
||||
using namespace std;
|
||||
using namespace superblock_damage;
|
||||
|
||||
@ -59,7 +58,7 @@ namespace {
|
||||
virtual void mapping(pd::block_address cblock,
|
||||
pd::block_address oblock,
|
||||
bool dirty) {
|
||||
mapping_array_detail::mapping m;
|
||||
typename caching::mapping m;
|
||||
m.oblock_ = oblock;
|
||||
m.flags_ = M_VALID;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user