/[eiffelstudio]/FreeELKS/trunk/library/structures/cursors/recursive_tree_cursor.e
ViewVC logotype

Contents of /FreeELKS/trunk/library/structures/cursors/recursive_tree_cursor.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 91477 - (show annotations)
Sun Jan 14 09:47:13 2007 UTC (13 years ago) by ericb
File size: 1497 byte(s)
Synchronized with ISE 6.0.65740
1 indexing
2
3 description:
4 "Cursors for recursive trees"
5 legal: "See notice at end of class."
6
7 status: "See notice at end of class."
8 names: recursive_tree_cursor, cursor;
9 contents: generic;
10 date: "$Date$"
11 revision: "$Revision$"
12
13 class RECURSIVE_TREE_CURSOR [G] inherit
14
15 CURSOR
16
17 create
18 make
19
20 feature {NONE} -- Initialization
21
22 make (active_node, parent_of_active: like active;
23 aft, bef, bel: BOOLEAN) is
24 -- Create a cursor and set it up on `active_node'.
25 do
26 active := active_node
27 active_parent := parent_of_active
28 after := aft
29 before := bef
30 below := bel
31 end
32
33 feature {RECURSIVE_CURSOR_TREE} -- Access
34
35 active: DYNAMIC_TREE [G]
36 -- Current node
37
38 active_parent: like active
39 -- Parent of current node
40
41 feature {RECURSIVE_CURSOR_TREE} -- Status report
42
43 after: BOOLEAN
44 -- Is there no valid cursor position to the right of cursor?
45
46 before: BOOLEAN
47 -- Is there no valid cursor position to the left of cursor?
48
49 below: BOOLEAN;
50 -- Is there no valid cursor position below cursor?
51
52 indexing
53 library: "EiffelBase: Library of reusable components for Eiffel."
54 copyright: "Copyright (c) 1984-2006, Eiffel Software and others"
55 license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
56 source: "[
57 Eiffel Software
58 356 Storke Road, Goleta, CA 93117 USA
59 Telephone 805-685-1006, Fax 805-685-6869
60 Website http://www.eiffel.com
61 Customer support http://support.eiffel.com
62 ]"
63
64
65
66
67
68
69
70 end -- class RECURSIVE_TREE_CURSOR
71
72
73

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23