PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/test/language/unclassified/aux_ph4_splay_dictionary_item.e

http://github.com/tybor/Liberty
Specman e | 58 lines | 28 code | 9 blank | 21 comment | 0 complexity | 6462533d20674d92990bb8bae4d1724d 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--
 4class AUX_PH4_SPLAY_DICTIONARY_ITEM[E, I -> COMPARABLE]
 5
 6create {ANY}
 7   make
 8
 9feature {ANY}
10   index: I
11
12   item: E
13
14   parent, left, right: like Current
15
16   make (i: E; ind: I; p, l, r: like Current)
17      do
18         index := ind
19         item := i
20         parent := p
21         left := l
22         right := r
23      end
24
25   set_parent (p: like parent)
26      do
27         parent := p
28      end
29
30   set_left (l: like left)
31      do
32         left := l
33      end
34
35   set_right (r: like right)
36      do
37         right := r
38      end
39
40end -- class AUX_PH4_SPLAY_DICTIONARY_ITEM
41--
42-- ------------------------------------------------------------------------------------------------------------------------------
43-- Copyright notice below. Please read.
44--
45-- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License,
46-- as published by the Free Software Foundation; either version 2, or (at your option) any later version.
47-- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty
48-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have
49-- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free
50-- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
51--
52-- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P.       - University of Nancy 1 - FRANCE
53-- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE
54--
55-- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN
56--
57-- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr
58-- ------------------------------------------------------------------------------------------------------------------------------