home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Programming / sofa / archive / SmallEiffel.lha / SmallEiffel / lib_std / pointer_ref.e < prev    next >
Text File  |  1999-06-05  |  940b  |  34 lines

  1. -- This file is  free  software, which  comes  along  with  SmallEiffel. This
  2. -- software  is  distributed  in the hope that it will be useful, but WITHOUT 
  3. -- ANY  WARRANTY;  without  even  the  implied warranty of MERCHANTABILITY or
  4. -- FITNESS  FOR A PARTICULAR PURPOSE. You can modify it as you want, provided
  5. -- this header is kept unaltered, and a notification of the changes is added.
  6. -- You  are  allowed  to  redistribute  it and sell it, alone or as a part of 
  7. -- another product.
  8. --          Copyright (C) 1994-98 LORIA - UHP - CRIN - INRIA - FRANCE
  9. --            Dominique COLNET and Suzanne COLLIN - colnet@loria.fr 
  10. --                       http://SmallEiffel.loria.fr
  11. --
  12. class POINTER_REF
  13.  
  14. inherit HASHABLE;
  15.  
  16. feature 
  17.  
  18.    item: POINTER;
  19.  
  20. feature
  21.  
  22.    set_item(value: like item) is
  23.       do
  24.          item := value;
  25.       end;
  26.  
  27.    hash_code: INTEGER is
  28.       do
  29.          Result := item.hash_code;
  30.       end;
  31.  
  32. end -- POINTER_REF
  33.  
  34.