[Groonga-commit] groonga/grnxx at 69cb95f [master] Add grnxx::Array<bool>::get_unit().

Back to archive index

susumu.yata null+****@clear*****
Tue May 28 16:46:36 JST 2013


susumu.yata	2013-05-28 16:46:36 +0900 (Tue, 28 May 2013)

  New Revision: 69cb95f4b52f9053affead36a7ff23df5d76e6c6
  https://github.com/groonga/grnxx/commit/69cb95f4b52f9053affead36a7ff23df5d76e6c6

  Message:
    Add grnxx::Array<bool>::get_unit().

  Modified files:
    lib/grnxx/array.hpp

  Modified: lib/grnxx/array.hpp (+5 -0)
===================================================================
--- lib/grnxx/array.hpp    2013-05-28 16:37:25 +0900 (fae634c)
+++ lib/grnxx/array.hpp    2013-05-28 16:46:36 +0900 (c84f420)
@@ -579,6 +579,11 @@ class Array<bool, PAGE_SIZE_IN_BITS, TABLE_SIZE, SECONDARY_TABLE_SIZE> {
     return true;
   }
 
+  // Get a unit and return its address on success.
+  Unit *get_unit(uint64_t unit_id) {
+    return impl_.get_value(unit_id);
+  }
+
   // Get a page and return its starting address on success.
   Unit *get_page(uint64_t page_id) {
     return impl_.get_page(page_id);
-------------- next part --------------
HTML����������������������������...
Télécharger 



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