/src/lib/storage/internal/hashed_set_node.e

http://github.com/tybor/Liberty · Specman e · 57 lines · 23 code · 7 blank · 27 comment · 0 complexity · 6a0964f08bf0808e06df2e36869163f8 MD5 · raw file

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