DoubleLink.st
author Claus Gittinger <cg@exept.de>
Sat, 02 May 2020 21:40:13 +0200
changeset 5476 7355a4b11cb6
parent 3884 3c37c2b40c85
permissions -rw-r--r--
#FEATURE by cg class: Socket class added: #newTCPclientToHost:port:domain:domainOrder:withTimeout: changed: #newTCPclientToHost:port:domain:withTimeout:
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3883
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 2016 by eXept Software AG
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libbasic2' }"
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
"{ NameSpace: Smalltalk }"
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
Link subclass:#DoubleLink
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:'previousLink'
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	category:'Collections-Support'
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!DoubleLink class methodsFor:'documentation'!
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
copyright
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
"
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
 COPYRIGHT (c) 2016 by eXept Software AG
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
              All Rights Reserved
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 This software is furnished under a license and may be used
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 only in accordance with the terms of that license and with the
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 be provided or otherwise made available to, or used by, any
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 other person.  No title to or ownership of the software is
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
 hereby transferred.
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
"
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
!
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
documentation
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
"
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
    this class provides the basic functionality for DoubleLink-nodes.
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
    DoubleLinks are abstract in that they do not provide a place for storing 
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
    something, just the link-chains. So concrete linkedList elements
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
    must subclass from me and add their value slots.
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
    
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
    For more usability look at ValueDoubleLink or other subclasses.
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
    [author:]
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
        Claus Gittinger
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
"
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
! !
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
!DoubleLink methodsFor:'accessing'!
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
previousLink
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
    "return the previous link"
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
    
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
    ^ previousLink
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
!
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
previousLink:aLInk
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
    "set the previous link"
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
    previousLink := aLInk.
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
! !
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
3884
3c37c2b40c85 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
    67
!DoubleLink methodsFor:'converting'!
3c37c2b40c85 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
    68
3c37c2b40c85 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
    69
asDoubleLink
3c37c2b40c85 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
    70
    ^ self
3c37c2b40c85 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
    71
! !
3c37c2b40c85 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3883
diff changeset
    72
3883
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
!DoubleLink class methodsFor:'documentation'!
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
version
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
    ^ '$Header$'
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
!
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
version_CVS
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
    ^ '$Header$'
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
! !
8244f30310e8 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82