/src/lib/storage/internal/hashed_dictionary_node.e
Specman e | 68 lines | 32 code | 9 blank | 27 comment | 0 complexity | 393b9bc7859a07d39a9819c018610332 MD5 | raw file
1-- This file is part of a Liberty Eiffel library. 2-- See the full copyright at the end. 3-- 4class HASHED_DICTIONARY_NODE[V_, K_] 5 -- 6 -- Auxiliary class to implement HASHED_DICTIONARY. 7 -- 8 9inherit 10 ANY_HASHED_DICTIONARY_NODE 11 12create {ABSTRACT_HASHED_DICTIONARY} 13 make 14 15feature {ABSTRACT_HASHED_DICTIONARY} 16 item: V_ 17 18 key: K_ 19 20 next: like Current 21 -- The `next' one when some clash occurs. 22 23 set_item (i: like item) 24 do 25 item := i 26 ensure 27 item = i 28 end 29 30 set_next (n: like next) 31 do 32 next := n 33 ensure 34 next = n 35 end 36 37 make (i: like item; k: like key; n: like next) 38 do 39 item := i 40 key := k 41 next := n 42 ensure 43 item = i 44 key = k 45 next = n 46 end 47 48end -- class HASHED_DICTIONARY_NODE 49-- 50-- Copyright (C) 2009-2017: by all the people cited in the AUTHORS file. 51-- 52-- Permission is hereby granted, free of charge, to any person obtaining a copy 53-- of this software and associated documentation files (the "Software"), to deal 54-- in the Software without restriction, including without limitation the rights 55-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 56-- copies of the Software, and to permit persons to whom the Software is 57-- furnished to do so, subject to the following conditions: 58-- 59-- The above copyright notice and this permission notice shall be included in 60-- all copies or substantial portions of the Software. 61-- 62-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 63-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 64-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 65-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 66-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 67-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 68-- THE SOFTWARE.