1
|
1 |
"
|
5
|
2 |
COPYRIGHT (c) 1992 by Claus Gittinger
|
379
|
3 |
All Rights Reserved
|
1
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
17260
|
12 |
"{ Package: 'stx:libbasic' }"
|
|
13 |
|
|
14 |
"{ NameSpace: Smalltalk }"
|
1
|
15 |
|
|
16 |
Object subclass:#Link
|
1290
|
17 |
instanceVariableNames:'nextLink'
|
|
18 |
classVariableNames:''
|
|
19 |
poolDictionaries:''
|
|
20 |
category:'Collections-Support'
|
1
|
21 |
!
|
|
22 |
|
88
|
23 |
!Link class methodsFor:'documentation'!
|
|
24 |
|
|
25 |
copyright
|
|
26 |
"
|
|
27 |
COPYRIGHT (c) 1992 by Claus Gittinger
|
379
|
28 |
All Rights Reserved
|
1
|
29 |
|
88
|
30 |
This software is furnished under a license and may be used
|
|
31 |
only in accordance with the terms of that license and with the
|
|
32 |
inclusion of the above copyright notice. This software may not
|
|
33 |
be provided or otherwise made available to, or used by, any
|
|
34 |
other person. No title to or ownership of the software is
|
|
35 |
hereby transferred.
|
|
36 |
"
|
|
37 |
!
|
1
|
38 |
|
88
|
39 |
documentation
|
|
40 |
"
|
|
41 |
this class provides the basic functionality for Link-nodes.
|
|
42 |
Links are abstract in that they do not provide a place for storing
|
19971
|
43 |
something, just the link-chain. So concrete linkedList elements
|
|
44 |
must subclass from me and add their value slots.
|
|
45 |
|
88
|
46 |
For more usability look at ValueLink or other subclasses.
|
1290
|
47 |
|
|
48 |
[author:]
|
|
49 |
Claus Gittinger
|
88
|
50 |
"
|
|
51 |
! !
|
1
|
52 |
|
|
53 |
!Link methodsFor:'accessing'!
|
|
54 |
|
|
55 |
nextLink
|
|
56 |
"return the next link"
|
|
57 |
|
|
58 |
^ nextLink
|
|
59 |
!
|
|
60 |
|
|
61 |
nextLink:aLink
|
|
62 |
"set the next link"
|
|
63 |
|
|
64 |
nextLink := aLink
|
|
65 |
! !
|
607
|
66 |
|
17260
|
67 |
!Link methodsFor:'converting'!
|
|
68 |
|
|
69 |
asLink
|
|
70 |
^ self
|
|
71 |
! !
|
|
72 |
|
629
|
73 |
!Link class methodsFor:'documentation'!
|
|
74 |
|
|
75 |
version
|
19971
|
76 |
^ '$Header$'
|
629
|
77 |
! !
|
17260
|
78 |
|