| 1 | /* |
| 2 | Copyright(C) 2011-2016 Brazil |
| 3 | |
| 4 | This library is free software; you can redistribute it and/or |
| 5 | modify it under the terms of the GNU Lesser General Public |
| 6 | License as published by the Free Software Foundation; either |
| 7 | version 2.1 of the License, or (at your option) any later version. |
| 8 | |
| 9 | This library is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | Lesser General Public License for more details. |
| 13 | |
| 14 | You should have received a copy of the GNU Lesser General Public |
| 15 | License along with this library; if not, write to the Free Software |
| 16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 17 | */ |
| 18 | |
| 19 | #pragma once |
| 20 | |
| 21 | #include "cursor.hpp"cxx . . $ `<file>/lib/dat/cursor.hpp`/ |
| 22 | |
| 23 | namespace grncxx . . $ grn/ { |
| 24 | namespace datcxx . . $ grn/dat/ { |
| 25 | |
| 26 | class Triecxx . . $ grn/dat/Trie#; |
| 27 | |
| 28 | class GRN_DAT_APIcxx . . $ `lib/dat/dat.hpp:44:12`! IdCursorcxx . . $ grn/dat/IdCursor# : public Cursorcxx . . $ grn/dat/Cursor# { |
| 29 | public: |
| 30 | IdCursorcxx . . $ grn/dat/IdCursor#IdCursor(49f6e7a06ebc5aa8).(); |
| 31 | ~cxx . . $ grn/dat/IdCursor#`~IdCursor`(ced63f7c635d850d).IdCursorcxx . . $ grn/dat/IdCursor#(); |
| 32 | |
| 33 | void opencxx . . $ grn/dat/IdCursor#open(ff67b50667d7ad53).(const Triecxx . . $ grn/dat/Trie# &trie, |
| 34 | const Stringcxx . . $ grn/dat/String# &min_str, |
| 35 | const Stringcxx . . $ grn/dat/String# &max_str, |
| 36 | UInt32cxx . . $ grn/dat/UInt32# offset = 0, |
| 37 | UInt32cxx . . $ grn/dat/UInt32# limit = MAX_UINT32cxx . . $ grn/dat/MAX_UINT32., |
| 38 | UInt32cxx . . $ grn/dat/UInt32# flags = 0); |
| 39 | |
| 40 | void opencxx . . $ grn/dat/IdCursor#open(55ee5e0940af299).(const Triecxx . . $ grn/dat/Trie# &trie, |
| 41 | UInt32cxx . . $ grn/dat/UInt32# min_id, |
| 42 | UInt32cxx . . $ grn/dat/UInt32# max_id, |
| 43 | UInt32cxx . . $ grn/dat/UInt32# offset = 0, |
| 44 | UInt32cxx . . $ grn/dat/UInt32# limit = MAX_UINT32cxx . . $ grn/dat/MAX_UINT32., |
| 45 | UInt32cxx . . $ grn/dat/UInt32# flags = 0); |
| 46 | |
| 47 | void closecxx . . $ grn/dat/IdCursor#close(49f6e7a06ebc5aa8).() override; |
| 48 | |
| 49 | const Keycxx . . $ grn/dat/Key# &nextcxx . . $ grn/dat/IdCursor#next(741ea5814372790).() override; |
| 50 | |
| 51 | UInt32cxx . . $ grn/dat/UInt32# offsetcxx . . $ grn/dat/IdCursor#offset(ddd8539a2fcdd4ce).() const override { |
| 52 | return offset_cxx . . $ grn/dat/IdCursor#offset_.; |
| 53 | } |
| 54 | UInt32cxx . . $ grn/dat/UInt32# limitcxx . . $ grn/dat/IdCursor#limit(ddd8539a2fcdd4ce).() const override { |
| 55 | return limit_cxx . . $ grn/dat/IdCursor#limit_.; |
| 56 | } |
| 57 | UInt32cxx . . $ grn/dat/UInt32# flagscxx . . $ grn/dat/IdCursor#flags(ddd8539a2fcdd4ce).() const override { |
| 58 | return flags_cxx . . $ grn/dat/IdCursor#flags_.; |
| 59 | } |
| 60 | |
| 61 | private: |
| 62 | const Triecxx . . $ grn/dat/Trie# *trie_cxx . . $ grn/dat/IdCursor#trie_.; |
| 63 | UInt32cxx . . $ grn/dat/UInt32# offset_cxx . . $ grn/dat/IdCursor#offset_.; |
| 64 | UInt32cxx . . $ grn/dat/UInt32# limit_cxx . . $ grn/dat/IdCursor#limit_.; |
| 65 | UInt32cxx . . $ grn/dat/UInt32# flags_cxx . . $ grn/dat/IdCursor#flags_.; |
| 66 | |
| 67 | UInt32cxx . . $ grn/dat/UInt32# cur_cxx . . $ grn/dat/IdCursor#cur_.; |
| 68 | UInt32cxx . . $ grn/dat/UInt32# end_cxx . . $ grn/dat/IdCursor#end_.; |
| 69 | UInt32cxx . . $ grn/dat/UInt32# count_cxx . . $ grn/dat/IdCursor#count_.; |
| 70 | |
| 71 | IdCursorcxx . . $ grn/dat/IdCursor#IdCursor(86ae9facf0bf692d).(const Triecxx . . $ grn/dat/Trie# &trie, UInt32cxx . . $ grn/dat/UInt32# offset, UInt32cxx . . $ grn/dat/UInt32# limit, UInt32cxx . . $ grn/dat/UInt32# flags); |
| 72 | |
| 73 | UInt32cxx . . $ grn/dat/UInt32# fix_flagscxx . . $ grn/dat/IdCursor#fix_flags(560347b7e9428769).(UInt32cxx . . $ grn/dat/UInt32# flags) const; |
| 74 | void initcxx . . $ grn/dat/IdCursor#init(b4d55b1286ff73e8).(UInt32cxx . . $ grn/dat/UInt32# min_id, UInt32cxx . . $ grn/dat/UInt32# max_id); |
| 75 | void swapcxx . . $ grn/dat/IdCursor#swap(b05bc280ba22b3f5).(IdCursorcxx . . $ grn/dat/IdCursor# *cursor); |
| 76 | |
| 77 | // Disallows copy and assignment. |
| 78 | IdCursorcxx . . $ grn/dat/IdCursor#IdCursor(429a7868e8e04c12).(const IdCursorcxx . . $ grn/dat/IdCursor# &); |
| 79 | IdCursorcxx . . $ grn/dat/IdCursor# &operatorcxx . . $ grn/dat/IdCursor#`operator=`(fcf1de1390bf636c).=(const IdCursorcxx . . $ grn/dat/IdCursor# &); |
| 80 | }; |
| 81 | |
| 82 | } // namespace dat |
| 83 | } // namespace grn |