PageRenderTime 19ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/src/lib/storage/internal/linked_hashed_dictionary_node.e

http://github.com/tybor/Liberty
Specman e | 52 lines | 20 code | 5 blank | 27 comment | 0 complexity | d8b67c68e0d1b326fd316d4316bcd148 MD5 | raw file
 1-- This file is part of a Liberty Eiffel library.
 2-- See the full copyright at the end.
 3--
 4class LINKED_HASHED_DICTIONARY_NODE[V_, K_]
 5   --
 6   -- Auxiliary class to implement LINKED_HASHED_DICTIONARY.
 7   --
 8
 9inherit
10   HASHED_DICTIONARY_NODE[V_, K_]
11      export {ABSTRACT_HASHED_DICTIONARY, ITERATOR_ON_LINKED_HASHED_DICTIONARY_ITEMS, ITERATOR_ON_LINKED_HASHED_DICTIONARY_KEYS, ITERATOR_ON_LINKED_HASHED_DICTIONARY}
12         key, item
13      end
14
15create {ABSTRACT_LINKED_HASHED_DICTIONARY}
16   make
17
18feature {ABSTRACT_LINKED_HASHED_DICTIONARY, ITERATOR_ON_LINKED_HASHED_DICTIONARY_ITEMS, ITERATOR_ON_LINKED_HASHED_DICTIONARY_KEYS, ITERATOR_ON_LINKED_HASHED_DICTIONARY}
19   previous_link, next_link: like Current
20         -- To implement the good iterating order.
21
22feature {ABSTRACT_LINKED_HASHED_DICTIONARY}
23   set_links (a_previous, a_next: like Current)
24      do
25         previous_link := a_previous
26         next_link := a_next
27      ensure
28         previous_link = a_previous
29         next_link = a_next
30      end
31
32end -- class LINKED_HASHED_DICTIONARY_NODE
33--
34-- Copyright (C) 2009-2017: by all the people cited in the AUTHORS file.
35--
36-- Permission is hereby granted, free of charge, to any person obtaining a copy
37-- of this software and associated documentation files (the "Software"), to deal
38-- in the Software without restriction, including without limitation the rights
39-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
40-- copies of the Software, and to permit persons to whom the Software is
41-- furnished to do so, subject to the following conditions:
42--
43-- The above copyright notice and this permission notice shall be included in
44-- all copies or substantial portions of the Software.
45--
46-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
47-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
48-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
49-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
50-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
51-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
52-- THE SOFTWARE.