| 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 | // See base.hpp and check.hpp for details. |
| 22 | #include "base.hpp"cxx . . $ `<file>/lib/dat/base.hpp`/ |
| 23 | #include "check.hpp"cxx . . $ `<file>/lib/dat/check.hpp`/ |
| 24 | |
| 25 | namespace grncxx . . $ grn/ { |
| 26 | namespace datcxx . . $ grn/dat/ { |
| 27 | |
| 28 | class GRN_DAT_APIcxx . . $ `lib/dat/dat.hpp:44:12`! Nodecxx . . $ grn/dat/Node# { |
| 29 | public: |
| 30 | Nodecxx . . $ grn/dat/Node#Node(49f6e7a06ebc5aa8).() : base_cxx . . $ grn/dat/Node#base_.(), check_cxx . . $ grn/dat/Node#check_.() {} |
| 31 | |
| 32 | Basecxx . . $ grn/dat/Base# basecxx . . $ grn/dat/Node#base(46688f87b1388fe2).() const { |
| 33 | return base_cxx . . $ grn/dat/Node#base_.; |
| 34 | } |
| 35 | bool is_linkercxx . . $ grn/dat/Node#is_linker(50ce9a9e25b4a850).() const { |
| 36 | GRN_DAT_DEBUG_THROW_IFcxx . . $ `lib/dat/dat.hpp:242:10`!(is_phantom()); |
| 37 | return base_cxx . . $ grn/dat/Node#base_..is_linkercxx . . $ grn/dat/Base#is_linker(50ce9a9e25b4a850).(); |
| 38 | } |
| 39 | UInt32cxx . . $ grn/dat/UInt32# offsetcxx . . $ grn/dat/Node#offset(ddd8539a2fcdd4ce).() const { |
| 40 | GRN_DAT_DEBUG_THROW_IFcxx . . $ `lib/dat/dat.hpp:242:10`!(is_phantom()); |
| 41 | return base_cxx . . $ grn/dat/Node#base_..offsetcxx . . $ grn/dat/Base#offset(ddd8539a2fcdd4ce).(); |
| 42 | } |
| 43 | UInt32cxx . . $ grn/dat/UInt32# key_poscxx . . $ grn/dat/Node#key_pos(ddd8539a2fcdd4ce).() const { |
| 44 | GRN_DAT_DEBUG_THROW_IFcxx . . $ `lib/dat/dat.hpp:242:10`!(is_phantom()); |
| 45 | return base_cxx . . $ grn/dat/Node#base_..key_poscxx . . $ grn/dat/Base#key_pos(ddd8539a2fcdd4ce).(); |
| 46 | } |
| 47 | |
| 48 | Checkcxx . . $ grn/dat/Check# checkcxx . . $ grn/dat/Node#check(b2d9caea2ffea148).() const { |
| 49 | return check_cxx . . $ grn/dat/Node#check_.; |
| 50 | } |
| 51 | bool is_offsetcxx . . $ grn/dat/Node#is_offset(50ce9a9e25b4a850).() const { |
| 52 | return check_cxx . . $ grn/dat/Node#check_..is_offsetcxx . . $ grn/dat/Check#is_offset(50ce9a9e25b4a850).(); |
| 53 | } |
| 54 | UInt32cxx . . $ grn/dat/UInt32# except_is_offsetcxx . . $ grn/dat/Node#except_is_offset(ddd8539a2fcdd4ce).() const { |
| 55 | return check_cxx . . $ grn/dat/Node#check_..except_is_offsetcxx . . $ grn/dat/Check#except_is_offset(ddd8539a2fcdd4ce).(); |
| 56 | } |
| 57 | bool is_phantomcxx . . $ grn/dat/Node#is_phantom(50ce9a9e25b4a850).() const { |
| 58 | return check_cxx . . $ grn/dat/Node#check_..is_phantomcxx . . $ grn/dat/Check#is_phantom(50ce9a9e25b4a850).(); |
| 59 | } |
| 60 | UInt32cxx . . $ grn/dat/UInt32# nextcxx . . $ grn/dat/Node#next(ddd8539a2fcdd4ce).() const { |
| 61 | return check_cxx . . $ grn/dat/Node#check_..nextcxx . . $ grn/dat/Check#next(ddd8539a2fcdd4ce).(); |
| 62 | } |
| 63 | UInt32cxx . . $ grn/dat/UInt32# prevcxx . . $ grn/dat/Node#prev(ddd8539a2fcdd4ce).() const { |
| 64 | return check_cxx . . $ grn/dat/Node#check_..prevcxx . . $ grn/dat/Check#prev(ddd8539a2fcdd4ce).(); |
| 65 | } |
| 66 | UInt32cxx . . $ grn/dat/UInt32# labelcxx . . $ grn/dat/Node#label(ddd8539a2fcdd4ce).() const { |
| 67 | return check_cxx . . $ grn/dat/Node#check_..labelcxx . . $ grn/dat/Check#label(ddd8539a2fcdd4ce).(); |
| 68 | } |
| 69 | UInt32cxx . . $ grn/dat/UInt32# childcxx . . $ grn/dat/Node#child(ddd8539a2fcdd4ce).() const { |
| 70 | return check_cxx . . $ grn/dat/Node#check_..childcxx . . $ grn/dat/Check#child(ddd8539a2fcdd4ce).(); |
| 71 | } |
| 72 | UInt32cxx . . $ grn/dat/UInt32# siblingcxx . . $ grn/dat/Node#sibling(ddd8539a2fcdd4ce).() const { |
| 73 | return check_cxx . . $ grn/dat/Node#check_..siblingcxx . . $ grn/dat/Check#sibling(ddd8539a2fcdd4ce).(); |
| 74 | } |
| 75 | |
| 76 | void set_basecxx . . $ grn/dat/Node#set_base(ee515c6d8c83a2fa).(Basecxx . . $ grn/dat/Base# x) { |
| 77 | GRN_DAT_DEBUG_THROW_IFcxx . . $ `lib/dat/dat.hpp:242:10`!(is_phantom()); |
| 78 | base_cxx . . $ grn/dat/Node#base_. =cxx . . $ grn/dat/Base#`operator=`(b1acc490144657e4). x; |
| 79 | } |
| 80 | void set_offsetcxx . . $ grn/dat/Node#set_offset(cb2f890c2fdad230).(UInt32cxx . . $ grn/dat/UInt32# x) { |
| 81 | GRN_DAT_DEBUG_THROW_IFcxx . . $ `lib/dat/dat.hpp:242:10`!(is_phantom()); |
| 82 | base_cxx . . $ grn/dat/Node#base_..set_offsetcxx . . $ grn/dat/Base#set_offset(cb2f890c2fdad230).(x); |
| 83 | } |
| 84 | void set_key_poscxx . . $ grn/dat/Node#set_key_pos(cb2f890c2fdad230).(UInt32cxx . . $ grn/dat/UInt32# x) { |
| 85 | GRN_DAT_DEBUG_THROW_IFcxx . . $ `lib/dat/dat.hpp:242:10`!(is_phantom()); |
| 86 | base_cxx . . $ grn/dat/Node#base_..set_key_poscxx . . $ grn/dat/Base#set_key_pos(cb2f890c2fdad230).(x); |
| 87 | } |
| 88 | |
| 89 | void set_checkcxx . . $ grn/dat/Node#set_check(50df4e9dae9488df).(Checkcxx . . $ grn/dat/Check# x) { |
| 90 | check_cxx . . $ grn/dat/Node#check_. =cxx . . $ grn/dat/Check#`operator=`(6ed192f063bd6f3b). x; |
| 91 | } |
| 92 | void set_is_offsetcxx . . $ grn/dat/Node#set_is_offset(b45ddcbc8423892c).(bool x) { |
| 93 | check_cxx . . $ grn/dat/Node#check_..set_is_offsetcxx . . $ grn/dat/Check#set_is_offset(b45ddcbc8423892c).(x); |
| 94 | } |
| 95 | void set_except_is_offsetcxx . . $ grn/dat/Node#set_except_is_offset(cb2f890c2fdad230).(UInt32cxx . . $ grn/dat/UInt32# x) { |
| 96 | check_cxx . . $ grn/dat/Node#check_..set_except_is_offsetcxx . . $ grn/dat/Check#set_except_is_offset(cb2f890c2fdad230).(x); |
| 97 | } |
| 98 | void set_is_phantomcxx . . $ grn/dat/Node#set_is_phantom(b45ddcbc8423892c).(bool x) { |
| 99 | GRN_DAT_DEBUG_THROW_IFcxx . . $ `lib/dat/dat.hpp:242:10`!(base_.offset() != INVALID_OFFSET); |
| 100 | check_cxx . . $ grn/dat/Node#check_..set_is_phantomcxx . . $ grn/dat/Check#set_is_phantom(b45ddcbc8423892c).(x); |
| 101 | } |
| 102 | void set_nextcxx . . $ grn/dat/Node#set_next(cb2f890c2fdad230).(UInt32cxx . . $ grn/dat/UInt32# x) { |
| 103 | GRN_DAT_DEBUG_THROW_IFcxx . . $ `lib/dat/dat.hpp:242:10`!(base_.offset() != INVALID_OFFSET); |
| 104 | check_cxx . . $ grn/dat/Node#check_..set_nextcxx . . $ grn/dat/Check#set_next(cb2f890c2fdad230).(x); |
| 105 | } |
| 106 | void set_prevcxx . . $ grn/dat/Node#set_prev(cb2f890c2fdad230).(UInt32cxx . . $ grn/dat/UInt32# x) { |
| 107 | GRN_DAT_DEBUG_THROW_IFcxx . . $ `lib/dat/dat.hpp:242:10`!(base_.offset() != INVALID_OFFSET); |
| 108 | check_cxx . . $ grn/dat/Node#check_..set_prevcxx . . $ grn/dat/Check#set_prev(cb2f890c2fdad230).(x); |
| 109 | } |
| 110 | void set_labelcxx . . $ grn/dat/Node#set_label(cb2f890c2fdad230).(UInt32cxx . . $ grn/dat/UInt32# x) { |
| 111 | GRN_DAT_DEBUG_THROW_IFcxx . . $ `lib/dat/dat.hpp:242:10`!(offset() != INVALID_OFFSET); |
| 112 | check_cxx . . $ grn/dat/Node#check_..set_labelcxx . . $ grn/dat/Check#set_label(cb2f890c2fdad230).(x); |
| 113 | } |
| 114 | void set_childcxx . . $ grn/dat/Node#set_child(cb2f890c2fdad230).(UInt32cxx . . $ grn/dat/UInt32# x) { |
| 115 | check_cxx . . $ grn/dat/Node#check_..set_childcxx . . $ grn/dat/Check#set_child(cb2f890c2fdad230).(x); |
| 116 | } |
| 117 | void set_siblingcxx . . $ grn/dat/Node#set_sibling(cb2f890c2fdad230).(UInt32cxx . . $ grn/dat/UInt32# x) { |
| 118 | check_cxx . . $ grn/dat/Node#check_..set_siblingcxx . . $ grn/dat/Check#set_sibling(cb2f890c2fdad230).(x); |
| 119 | } |
| 120 | |
| 121 | private: |
| 122 | Basecxx . . $ grn/dat/Base# base_cxx . . $ grn/dat/Node#base_.; |
| 123 | Checkcxx . . $ grn/dat/Check# check_cxx . . $ grn/dat/Node#check_.; |
| 124 | }; |
| 125 | |
| 126 | } // namespace dat |
| 127 | } // namespace grn |