Link.st
author Jan Vrany <jan.vrany@labware.com>
Wed, 22 Mar 2023 13:57:18 +0000
branchjv
changeset 25445 1623217d2268
parent 20078 a680abc90e84
permissions -rw-r--r--
Cherry-picked OrderedCollection.st from 0b286fd51da7: * d4c86d7c0bfc: #TUNING by stefan, Stefan Vogel <sv@exept.de> * 692b6497a669: #DOCUMENTATION by stefan, Stefan Vogel <sv@exept.de> * d47bb2912953: #DOCUMENTATION by stefan, Stefan Vogel <sv@exept.de> * abb4316c6bff: #FEATURE by cg, Claus Gittinger <cg@exept.de> * 3a8fce0e8d11: #TUNING by stefan, Stefan Vogel <sv@exept.de> * 03d29bf8c5bb: #REFACTORING by stefan, Stefan Vogel <sv@exept.de> * cccc6c4abcfc: #REFACTORING by stefan, Stefan Vogel <sv@exept.de> * 35d957c7a840: #FEATURE by cg, Claus Gittinger <cg@exept.de> * 6b11890f5f2c: #OTHER by cg, Claus Gittinger <cg@exept.de> * abb6108fb06b: #FEATURE by cg, Claus Gittinger <cg@exept.de> * 2c4768bb2e89: #FEATURE by cg, Claus Gittinger <cg@exept.de> * 4029e964d0f1: #FEATURE by cg, Claus Gittinger <cg@exept.de> * ddcab3a9c2df: #OTHER by cg, Claus Gittinger <cg@exept.de> * 2213eb56e0c7: #REFACTORING by exept, Claus Gittinger <cg@exept.de> * 09ca874a6160: #REFACTORING by exept, Claus Gittinger <cg@exept.de> * 30b332af1f33: #BUGFIX by stefan, Stefan Vogel <sv@exept.de> * 779764ba117b: #REFACTORING by cg, Claus Gittinger <cg@exept.de> * b3d232a613c9: #BUGFIX by stefan, Stefan Vogel <sv@exept.de> * c417f7edaec1: #BUGFIX by stefan, Stefan Vogel <sv@exept.de> * 904b6538f379: #FEATURE by exept, Claus Gittinger <cg@exept.de> * c5887f03e01f: #REFACTORING by stefan, Stefan Vogel <sv@exept.de> * 8912d03aff48: #BUGFIX by exept, Claus Gittinger <cg@exept.de> * de5cd1dab4c3: #DOCUMENTATION by exept, Claus Gittinger <cg@exept.de> * 9bbd26603378: #OTHER by exept, Claus Gittinger <cg@exept.de> * c2c9dc110f42: #FEATURE by stefan, Stefan Vogel <sv@exept.de> * 81d123c6703d: #DOCUMENTATION by stefan, Stefan Vogel <sv@exept.de> * 8aadbb21458a: #BUGFIX by stefan, Stefan Vogel <sv@exept.de> * f210dbb8b2f6: #TUNING by stefan, Stefan Vogel <sv@exept.de> * c2c774fc53c0: #FEATURE by exept, Claus Gittinger <cg@exept.de> * b6f462670875: #DOCUMENTATION by exept, Claus Gittinger <cg@exept.de> * 27ae4021d5d6: #FEATURE by stefan, Stefan Vogel <sv@exept.de> * 10d9e9d85594: #TUNING by exept, Claus Gittinger <cg@exept.de> * 2653d855dcc7: #DOCUMENTATION by exept, Claus Gittinger <cg@exept.de> * 6ea1698a1a34: #FEATURE by stefan, Stefan Vogel <sv@exept.de> * 28762315e664: #OTHER by exept, Claus Gittinger <cg@exept.de> * 7142ea786f3e: #TUNING by stefan, Stefan Vogel <sv@exept.de> * 7875acb42b53: #BUGFIX by stefan, Stefan Vogel <sv@exept.de> * 163a0eebc97e: #BUGFIX by Maren, matilk
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
     1
"
5
67342904af11 *** empty log message ***
claus
parents: 3
diff changeset
     2
 COPYRIGHT (c) 1992 by Claus Gittinger
379
5b5a130ccd09 revision added
claus
parents: 93
diff changeset
     3
	      All Rights Reserved
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
     4
a27a279701f8 Initial revision
claus
parents:
diff changeset
     5
 This software is furnished under a license and may be used
a27a279701f8 Initial revision
claus
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
a27a279701f8 Initial revision
claus
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
a27a279701f8 Initial revision
claus
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
a27a279701f8 Initial revision
claus
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
a27a279701f8 Initial revision
claus
parents:
diff changeset
    10
 hereby transferred.
a27a279701f8 Initial revision
claus
parents:
diff changeset
    11
"
17260
c86df97b698d class: Link
Claus Gittinger <cg@exept.de>
parents: 1290
diff changeset
    12
"{ Package: 'stx:libbasic' }"
c86df97b698d class: Link
Claus Gittinger <cg@exept.de>
parents: 1290
diff changeset
    13
c86df97b698d class: Link
Claus Gittinger <cg@exept.de>
parents: 1290
diff changeset
    14
"{ NameSpace: Smalltalk }"
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
    15
a27a279701f8 Initial revision
claus
parents:
diff changeset
    16
Object subclass:#Link
1290
15ba3221b89b documentation
Claus Gittinger <cg@exept.de>
parents: 629
diff changeset
    17
	instanceVariableNames:'nextLink'
15ba3221b89b documentation
Claus Gittinger <cg@exept.de>
parents: 629
diff changeset
    18
	classVariableNames:''
15ba3221b89b documentation
Claus Gittinger <cg@exept.de>
parents: 629
diff changeset
    19
	poolDictionaries:''
15ba3221b89b documentation
Claus Gittinger <cg@exept.de>
parents: 629
diff changeset
    20
	category:'Collections-Support'
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
    21
!
a27a279701f8 Initial revision
claus
parents:
diff changeset
    22
88
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    23
!Link class methodsFor:'documentation'!
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    24
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    25
copyright
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    26
"
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    27
 COPYRIGHT (c) 1992 by Claus Gittinger
379
5b5a130ccd09 revision added
claus
parents: 93
diff changeset
    28
	      All Rights Reserved
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
    29
88
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    30
 This software is furnished under a license and may be used
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    31
 only in accordance with the terms of that license and with the
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    33
 be provided or otherwise made available to, or used by, any
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    34
 other person.  No title to or ownership of the software is
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    35
 hereby transferred.
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    36
"
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    37
!
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
    38
88
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    39
documentation
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    40
"
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    41
    this class provides the basic functionality for Link-nodes.
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    42
    Links are abstract in that they do not provide a place for storing 
19971
9bf68cbff965 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17260
diff changeset
    43
    something, just the link-chain. So concrete linkedList elements
9bf68cbff965 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17260
diff changeset
    44
    must subclass from me and add their value slots.
9bf68cbff965 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17260
diff changeset
    45
    
88
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    46
    For more usability look at ValueLink or other subclasses.
1290
15ba3221b89b documentation
Claus Gittinger <cg@exept.de>
parents: 629
diff changeset
    47
15ba3221b89b documentation
Claus Gittinger <cg@exept.de>
parents: 629
diff changeset
    48
    [author:]
15ba3221b89b documentation
Claus Gittinger <cg@exept.de>
parents: 629
diff changeset
    49
        Claus Gittinger
88
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    50
"
81dacba7a63a *** empty log message ***
claus
parents: 5
diff changeset
    51
! !
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
    52
a27a279701f8 Initial revision
claus
parents:
diff changeset
    53
!Link methodsFor:'accessing'!
a27a279701f8 Initial revision
claus
parents:
diff changeset
    54
a27a279701f8 Initial revision
claus
parents:
diff changeset
    55
nextLink
a27a279701f8 Initial revision
claus
parents:
diff changeset
    56
    "return the next link"
a27a279701f8 Initial revision
claus
parents:
diff changeset
    57
a27a279701f8 Initial revision
claus
parents:
diff changeset
    58
    ^ nextLink
a27a279701f8 Initial revision
claus
parents:
diff changeset
    59
!
a27a279701f8 Initial revision
claus
parents:
diff changeset
    60
a27a279701f8 Initial revision
claus
parents:
diff changeset
    61
nextLink:aLink
a27a279701f8 Initial revision
claus
parents:
diff changeset
    62
    "set the next link"
a27a279701f8 Initial revision
claus
parents:
diff changeset
    63
a27a279701f8 Initial revision
claus
parents:
diff changeset
    64
    nextLink := aLink
a27a279701f8 Initial revision
claus
parents:
diff changeset
    65
! !
607
a9a526c51233 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
    66
17260
c86df97b698d class: Link
Claus Gittinger <cg@exept.de>
parents: 1290
diff changeset
    67
!Link methodsFor:'converting'!
c86df97b698d class: Link
Claus Gittinger <cg@exept.de>
parents: 1290
diff changeset
    68
c86df97b698d class: Link
Claus Gittinger <cg@exept.de>
parents: 1290
diff changeset
    69
asLink
c86df97b698d class: Link
Claus Gittinger <cg@exept.de>
parents: 1290
diff changeset
    70
    ^ self
c86df97b698d class: Link
Claus Gittinger <cg@exept.de>
parents: 1290
diff changeset
    71
! !
c86df97b698d class: Link
Claus Gittinger <cg@exept.de>
parents: 1290
diff changeset
    72
629
2ceefe9b5a19 version at the end
Claus Gittinger <cg@exept.de>
parents: 607
diff changeset
    73
!Link class methodsFor:'documentation'!
2ceefe9b5a19 version at the end
Claus Gittinger <cg@exept.de>
parents: 607
diff changeset
    74
2ceefe9b5a19 version at the end
Claus Gittinger <cg@exept.de>
parents: 607
diff changeset
    75
version
19971
9bf68cbff965 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17260
diff changeset
    76
    ^ '$Header$'
629
2ceefe9b5a19 version at the end
Claus Gittinger <cg@exept.de>
parents: 607
diff changeset
    77
! !
17260
c86df97b698d class: Link
Claus Gittinger <cg@exept.de>
parents: 1290
diff changeset
    78