PageRenderTime 15ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/tools/interpreter/liberty_interpreter_object_hashable.e

http://github.com/tybor/Liberty
Specman e | 40 lines | 20 code | 6 blank | 14 comment | 0 complexity | 9c7a6f020ba7acc6508e6a1451189eb8 MD5 | raw file
 1-- This file is part of Liberty Eiffel.
 2--
 3-- Liberty Eiffel is free software: you can redistribute it and/or modify
 4-- it under the terms of the GNU General Public License as published by
 5-- the Free Software Foundation, version 3 of the License.
 6--
 7-- Liberty Eiffel is distributed in the hope that it will be useful,
 8-- but WITHOUT ANY WARRANTY; without even the implied warranty of
 9-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10-- GNU General Public License for more details.
11--
12-- You should have received a copy of the GNU General Public License
13-- along with Liberty Eiffel.  If not, see <http://www.gnu.org/licenses/>.
14--
15class LIBERTY_INTERPRETER_OBJECT_HASHABLE[E_ -> HASHABLE]
16
17inherit
18   LIBERTY_INTERPRETER_OBJECT_NATIVE[E_]
19
20creation {LIBERTY_INTERPRETER_OBJECT_CREATOR, LIBERTY_INTERPRETER_OBJECT_NATIVE, LIBERTY_INTERPRETER_NATIVE_ARRAY_ACCESSOR_FACTORY, LIBERTY_INTERPRETER}
21   make, with_item
22
23feature {ANY}
24   hash_code: INTEGER is
25      do
26         Result := item.hash_code
27      end
28
29   converted_to (target_type: LIBERTY_ACTUAL_TYPE): LIBERTY_INTERPRETER_OBJECT is
30      do
31         not_yet_implemented
32      end
33
34feature {}
35   expanded_twin: like Current is
36      do
37         create Result.with_item(interpreter, type, item, position)
38      end
39
40end -- class LIBERTY_INTERPRETER_OBJECT_HASHABLE