/test/language/unclassified/aux_jlp8_operator.e

http://github.com/tybor/Liberty · Specman e · 83 lines · 50 code · 12 blank · 21 comment · 0 complexity · 904b049c4a520afd3ff83c7978f471d1 MD5 · raw file

  1. -- This file is part of SmartEiffel The GNU Eiffel Compiler Tools and Libraries.
  2. -- See the Copyright notice at the end of this file.
  3. --
  4. deferred class AUX_JLP8_OPERATOR[E]
  5. feature {ANY}
  6. run
  7. do
  8. before_run
  9. for_each
  10. after_run
  11. end
  12. make (p: AUX_JLP8_PROVIDER[E])
  13. do
  14. provider := p.twin
  15. end
  16. attach (p: AUX_JLP8_PROVIDER[E])
  17. do
  18. provider := p
  19. end
  20. is_runnable: BOOLEAN
  21. do
  22. Result := provider /= Void and then provider.is_runnable
  23. end
  24. abort
  25. do
  26. provider.abort
  27. end
  28. aborted: BOOLEAN
  29. do
  30. Result := provider.aborted
  31. end
  32. before_run
  33. do
  34. end
  35. after_run
  36. do
  37. end
  38. item_action (elem: E)
  39. deferred
  40. end
  41. provider: AUX_JLP8_PROVIDER[E]
  42. for_each
  43. do
  44. from
  45. provider.start
  46. until
  47. provider.exhausted
  48. loop
  49. item_action(provider.item)
  50. provider.next
  51. end
  52. end
  53. end -- class AUX_JLP8_OPERATOR
  54. --
  55. -- ------------------------------------------------------------------------------------------------------------------------------
  56. -- Copyright notice below. Please read.
  57. --
  58. -- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License,
  59. -- as published by the Free Software Foundation; either version 2, or (at your option) any later version.
  60. -- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty
  61. -- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have
  62. -- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free
  63. -- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
  64. --
  65. -- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P. - University of Nancy 1 - FRANCE
  66. -- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE
  67. --
  68. -- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN
  69. --
  70. -- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr
  71. -- ------------------------------------------------------------------------------------------------------------------------------