Navigation Menu

Skip to content

Commit

Permalink
Move a #include from .hpp to .cpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Jun 6, 2013
1 parent 5d30b5d commit 2ab36a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions lib/grnxx/map/bytes_array.cpp
Expand Up @@ -21,6 +21,7 @@
#include <new>

#include "grnxx/logger.hpp"
#include "grnxx/map/bytes_store.hpp"
#include "grnxx/storage.hpp"

namespace grnxx {
Expand Down Expand Up @@ -121,6 +122,10 @@ bool BytesArray::set(uint64_t value_id, ValueArg value) {
return true;
}

bool BytesArray::sweep(Duration lifetime) {
return store_->sweep(lifetime);
}

BytesArray::BytesArray()
: storage_(nullptr),
storage_node_id_(STORAGE_INVALID_NODE_ID),
Expand Down
7 changes: 3 additions & 4 deletions lib/grnxx/map/bytes_array.hpp
Expand Up @@ -25,7 +25,6 @@
#include "grnxx/array.hpp"
#include "grnxx/bytes.hpp"
#include "grnxx/duration.hpp"
#include "grnxx/map/bytes_store.hpp"
#include "grnxx/traits.hpp"
#include "grnxx/types.hpp"

Expand All @@ -35,6 +34,8 @@ class Storage;

namespace map {

class BytesStore;

struct BytesArrayHeader;

class BytesArray {
Expand Down Expand Up @@ -86,9 +87,7 @@ class BytesArray {
bool set(uint64_t value_id, ValueArg value);

// Sweep empty pages whose modified time < (now - lifetime).
bool sweep(Duration lifetime) {
return store_->sweep(lifetime);
}
bool sweep(Duration lifetime);

private:
Storage *storage_;
Expand Down

0 comments on commit 2ab36a1

Please sign in to comment.