[Groonga-commit] groonga/grnxx [master] Add create(), open(), and close() to grnxx::alpha::BlobVector.

Back to archive index

susumu.yata null+****@clear*****
Thu Dec 6 16:28:05 JST 2012


susumu.yata	2012-12-06 16:28:05 +0900 (Thu, 06 Dec 2012)

  New Revision: 052bea373ee65c33f4200c9c058da519e2cc8eab
  https://github.com/groonga/grnxx/commit/052bea373ee65c33f4200c9c058da519e2cc8eab

  Log:
    Add create(), open(), and close() to grnxx::alpha::BlobVector.

  Modified files:
    lib/alpha/blob_vector.hpp

  Modified: lib/alpha/blob_vector.hpp (+10 -0)
===================================================================
--- lib/alpha/blob_vector.hpp    2012-12-06 16:18:54 +0900 (acc5275)
+++ lib/alpha/blob_vector.hpp    2012-12-06 16:28:05 +0900 (9206e96)
@@ -481,6 +481,16 @@ class BlobVector {
     return static_cast<bool>(impl_);
   }
 
+  void create(io::Pool pool) {
+    *this = BlobVector(BLOB_VECTOR_CREATE, pool);
+  }
+  void open(io::Pool pool, uint32_t block_id) {
+    *this = BlobVector(BLOB_VECTOR_OPEN, pool, block_id);
+  }
+  void close() {
+    *this = BlobVector();
+  }
+
   // TODO
 //  BlobVectorValueRef operator[](uint64_t id);
 
-------------- next part --------------
HTML����������������������������...
Télécharger 



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