[Groonga-commit] groonga/grnxx at 2ab36a1 [master] Move a #include from .hpp to .cpp.

Back to archive index

susumu.yata null+****@clear*****
Thu Jun 6 18:39:40 JST 2013


susumu.yata	2013-06-06 18:39:40 +0900 (Thu, 06 Jun 2013)

  New Revision: 2ab36a107a9e2e9152ddfce2cb75465e634f2745
  https://github.com/groonga/grnxx/commit/2ab36a107a9e2e9152ddfce2cb75465e634f2745

  Message:
    Move a #include from .hpp to .cpp.

  Modified files:
    lib/grnxx/map/bytes_array.cpp
    lib/grnxx/map/bytes_array.hpp

  Modified: lib/grnxx/map/bytes_array.cpp (+5 -0)
===================================================================
--- lib/grnxx/map/bytes_array.cpp    2013-06-06 18:32:24 +0900 (0591e7a)
+++ lib/grnxx/map/bytes_array.cpp    2013-06-06 18:39:40 +0900 (1137757)
@@ -21,6 +21,7 @@
 #include <new>
 
 #include "grnxx/logger.hpp"
+#include "grnxx/map/bytes_store.hpp"
 #include "grnxx/storage.hpp"
 
 namespace grnxx {
@@ -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),

  Modified: lib/grnxx/map/bytes_array.hpp (+3 -4)
===================================================================
--- lib/grnxx/map/bytes_array.hpp    2013-06-06 18:32:24 +0900 (31751be)
+++ lib/grnxx/map/bytes_array.hpp    2013-06-06 18:39:40 +0900 (f37540d)
@@ -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"
 
@@ -35,6 +34,8 @@ class Storage;
 
 namespace map {
 
+class BytesStore;
+
 struct BytesArrayHeader;
 
 class BytesArray {
@@ -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_;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index