| 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 | #include "vector.hpp"cxx . . $ `<file>/lib/dat/vector.hpp`/ |
| 23 | |
| 24 | namespace grncxx . . $ grn/ { |
| 25 | namespace datcxx . . $ grn/dat/ { |
| 26 | |
| 27 | class Triecxx . . $ grn/dat/Trie#; |
| 28 | |
| 29 | class GRN_DAT_APIcxx . . $ `lib/dat/dat.hpp:44:12`! PredictiveCursorcxx . . $ grn/dat/PredictiveCursor# : public Cursorcxx . . $ grn/dat/Cursor# { |
| 30 | public: |
| 31 | PredictiveCursorcxx . . $ grn/dat/PredictiveCursor#PredictiveCursor(49f6e7a06ebc5aa8).(); |
| 32 | ~cxx . . $ grn/dat/PredictiveCursor#`~PredictiveCursor`(ced63f7c635d850d).PredictiveCursorcxx . . $ grn/dat/PredictiveCursor#(); |
| 33 | |
| 34 | void opencxx . . $ grn/dat/PredictiveCursor#open(51969a13d721bec0).(const Triecxx . . $ grn/dat/Trie# &trie, |
| 35 | const Stringcxx . . $ grn/dat/String# &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 closecxx . . $ grn/dat/PredictiveCursor#close(49f6e7a06ebc5aa8).() override; |
| 41 | |
| 42 | const Keycxx . . $ grn/dat/Key# &nextcxx . . $ grn/dat/PredictiveCursor#next(741ea5814372790).() override; |
| 43 | |
| 44 | UInt32cxx . . $ grn/dat/UInt32# offsetcxx . . $ grn/dat/PredictiveCursor#offset(ddd8539a2fcdd4ce).() const override { |
| 45 | return offset_cxx . . $ grn/dat/PredictiveCursor#offset_.; |
| 46 | } |
| 47 | UInt32cxx . . $ grn/dat/UInt32# limitcxx . . $ grn/dat/PredictiveCursor#limit(ddd8539a2fcdd4ce).() const override { |
| 48 | return limit_cxx . . $ grn/dat/PredictiveCursor#limit_.; |
| 49 | } |
| 50 | UInt32cxx . . $ grn/dat/UInt32# flagscxx . . $ grn/dat/PredictiveCursor#flags(ddd8539a2fcdd4ce).() const override { |
| 51 | return flags_cxx . . $ grn/dat/PredictiveCursor#flags_.; |
| 52 | } |
| 53 | |
| 54 | private: |
| 55 | const Triecxx . . $ grn/dat/Trie# *trie_cxx . . $ grn/dat/PredictiveCursor#trie_.; |
| 56 | UInt32cxx . . $ grn/dat/UInt32# offset_cxx . . $ grn/dat/PredictiveCursor#offset_.; |
| 57 | UInt32cxx . . $ grn/dat/UInt32# limit_cxx . . $ grn/dat/PredictiveCursor#limit_.; |
| 58 | UInt32cxx . . $ grn/dat/UInt32# flags_cxx . . $ grn/dat/PredictiveCursor#flags_.; |
| 59 | |
| 60 | Vectorcxx . . $ grn/dat/Vector#<UInt32cxx . . $ grn/dat/UInt32#> buf_cxx . . $ grn/dat/PredictiveCursor#buf_.; |
| 61 | UInt32cxx . . $ grn/dat/UInt32# cur_cxx . . $ grn/dat/PredictiveCursor#cur_.; |
| 62 | UInt32cxx . . $ grn/dat/UInt32# end_cxx . . $ grn/dat/PredictiveCursor#end_.; |
| 63 | UInt32cxx . . $ grn/dat/UInt32# min_length_cxx . . $ grn/dat/PredictiveCursor#min_length_.; |
| 64 | |
| 65 | PredictiveCursorcxx . . $ grn/dat/PredictiveCursor#PredictiveCursor(86ae9facf0bf692d).(const Triecxx . . $ grn/dat/Trie# &trie, |
| 66 | UInt32cxx . . $ grn/dat/UInt32# offset, UInt32cxx . . $ grn/dat/UInt32# limit, UInt32cxx . . $ grn/dat/UInt32# flags); |
| 67 | |
| 68 | UInt32cxx . . $ grn/dat/UInt32# fix_flagscxx . . $ grn/dat/PredictiveCursor#fix_flags(560347b7e9428769).(UInt32cxx . . $ grn/dat/UInt32# flags) const; |
| 69 | void initcxx . . $ grn/dat/PredictiveCursor#init(134f24f25bda342e).(const Stringcxx . . $ grn/dat/String# &str); |
| 70 | void swapcxx . . $ grn/dat/PredictiveCursor#swap(5346b7e23c5692d1).(PredictiveCursorcxx . . $ grn/dat/PredictiveCursor# *cursor); |
| 71 | |
| 72 | const Keycxx . . $ grn/dat/Key# &ascending_nextcxx . . $ grn/dat/PredictiveCursor#ascending_next(741ea5814372790).(); |
| 73 | const Keycxx . . $ grn/dat/Key# &descending_nextcxx . . $ grn/dat/PredictiveCursor#descending_next(741ea5814372790).(); |
| 74 | |
| 75 | static const UInt32cxx . . $ grn/dat/UInt32# IS_ROOT_FLAGcxx . . $ grn/dat/PredictiveCursor#IS_ROOT_FLAG. = 0x80000000U; |
| 76 | static const UInt32cxx . . $ grn/dat/UInt32# POST_ORDER_FLAGcxx . . $ grn/dat/PredictiveCursor#POST_ORDER_FLAG. = 0x80000000U; |
| 77 | |
| 78 | // Disallows copy and assignment. |
| 79 | PredictiveCursorcxx . . $ grn/dat/PredictiveCursor#PredictiveCursor(5be69466bbe5fe1c).(const PredictiveCursorcxx . . $ grn/dat/PredictiveCursor# &); |
| 80 | PredictiveCursorcxx . . $ grn/dat/PredictiveCursor# &operatorcxx . . $ grn/dat/PredictiveCursor#`operator=`(49f444a1f25c079d).=(const PredictiveCursorcxx . . $ grn/dat/PredictiveCursor# &); |
| 81 | }; |
| 82 | |
| 83 | } // namespace dat |
| 84 | } // namespace grn |