/src/lib/message_formatter/printable_reference.e

http://github.com/tybor/Liberty · Specman e · 53 lines · 24 code · 6 blank · 23 comment · 0 complexity · ac0ca6e133b5c797f1069cdf6044b995 MD5 · raw file

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