[Groonga-commit] groonga/groonga [master] add an interface class for grn_dat cursors.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 6月 18日 (土) 18:36:18 JST


Susumu Yata	2011-06-18 09:36:18 +0000 (Sat, 18 Jun 2011)

  New Revision: cf01f298e8e3ceeb61930dfcd5363ade4850f7be

  Log:
    add an interface class for grn_dat cursors.

  Added files:
    lib/dat/cursor.hpp
  Modified files:
    lib/dat/Makefile.am

  Modified: lib/dat/Makefile.am (+1 -0)
===================================================================
--- lib/dat/Makefile.am    2011-06-18 09:24:55 +0000 (cb306b5)
+++ lib/dat/Makefile.am    2011-06-18 09:36:18 +0000 (8481ece)
@@ -9,6 +9,7 @@ noinst_HEADERS =				\
 	base.hpp				\
 	block.hpp				\
 	check.hpp				\
+	cursor.hpp				\
 	dat.hpp					\
 	header.hpp				\
 	key-info.hpp				\

  Added: lib/dat/cursor.hpp (+25 -0) 100644
===================================================================
--- /dev/null
+++ lib/dat/cursor.hpp    2011-06-18 09:36:18 +0000 (ca209cf)
@@ -0,0 +1,25 @@
+#ifndef GRN_DAT_CURSOR_H
+#define GRN_DAT_CURSOR_H
+
+#include "key.hpp"
+
+namespace grn {
+namespace dat {
+
+class Cursor {
+ public:
+  Cursor() {}
+  virtual ~Cursor() {}
+
+  virtual bool next(Key *key) = 0;
+
+ private:
+  // Disallows copy and assignment.
+  Cursor(const Cursor &);
+  Cursor &operator=(const Cursor &);
+};
+
+}  // namespace grn
+}  // namespace dat
+
+#endif  // GRN_DAT_CURSOR_H




Groonga-commit メーリングリストの案内
Back to archive index