ValueLink.st
author Claus Gittinger <cg@exept.de>
Thu, 09 Jun 2016 12:30:05 +0200
changeset 3886 b4fe47975cce
parent 291 395079f968b6
child 3919 57fbcf872e8d
permissions -rw-r--r--
initial checkin class: ValueDoubleLink added: #copyright #documentation #value #value:
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
1cf8d1747859 Initial revision
claus
parents:
diff changeset
     1
"
4
1f66800df351 *** empty log message ***
claus
parents: 3
diff changeset
     2
 COPYRIGHT (c) 1992 by Claus Gittinger
84
claus
parents: 36
diff changeset
     3
	      All Rights Reserved
0
1cf8d1747859 Initial revision
claus
parents:
diff changeset
     4
1cf8d1747859 Initial revision
claus
parents:
diff changeset
     5
 This software is furnished under a license and may be used
1cf8d1747859 Initial revision
claus
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
1cf8d1747859 Initial revision
claus
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
1cf8d1747859 Initial revision
claus
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
1cf8d1747859 Initial revision
claus
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    10
 hereby transferred.
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    11
"
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    12
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    13
Link subclass:#ValueLink
254
cccfa2590e6e documentation
Claus Gittinger <cg@exept.de>
parents: 131
diff changeset
    14
	instanceVariableNames:'value'
cccfa2590e6e documentation
Claus Gittinger <cg@exept.de>
parents: 131
diff changeset
    15
	classVariableNames:''
cccfa2590e6e documentation
Claus Gittinger <cg@exept.de>
parents: 131
diff changeset
    16
	poolDictionaries:''
cccfa2590e6e documentation
Claus Gittinger <cg@exept.de>
parents: 131
diff changeset
    17
	category:'Collections-Support'
0
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    18
!
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    19
31
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    20
!ValueLink class methodsFor:'documentation'!
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    21
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    22
copyright
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    23
"
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    24
 COPYRIGHT (c) 1992 by Claus Gittinger
84
claus
parents: 36
diff changeset
    25
	      All Rights Reserved
0
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    26
31
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    27
 This software is furnished under a license and may be used
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    28
 only in accordance with the terms of that license and with the
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    29
 inclusion of the above copyright notice.   This software may not
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    30
 be provided or otherwise made available to, or used by, any
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    31
 other person.  No title to or ownership of the software is
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    32
 hereby transferred.
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    33
"
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    34
!
0
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    35
31
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    36
documentation
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    37
"
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    38
    this class provides Links which can hold a value.
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    39
    Instances are typically used as elements in a linkedList.
254
cccfa2590e6e documentation
Claus Gittinger <cg@exept.de>
parents: 131
diff changeset
    40
cccfa2590e6e documentation
Claus Gittinger <cg@exept.de>
parents: 131
diff changeset
    41
    [see also:]
cccfa2590e6e documentation
Claus Gittinger <cg@exept.de>
parents: 131
diff changeset
    42
        LinkedList
cccfa2590e6e documentation
Claus Gittinger <cg@exept.de>
parents: 131
diff changeset
    43
        Collection OrderedCollection
cccfa2590e6e documentation
Claus Gittinger <cg@exept.de>
parents: 131
diff changeset
    44
cccfa2590e6e documentation
Claus Gittinger <cg@exept.de>
parents: 131
diff changeset
    45
    [author:]
cccfa2590e6e documentation
Claus Gittinger <cg@exept.de>
parents: 131
diff changeset
    46
        Claus Gittinger
31
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    47
"
e223f3cf2995 *** empty log message ***
claus
parents: 4
diff changeset
    48
! !
0
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    49
291
395079f968b6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
    50
!ValueLink class methodsFor:'instance creation'!
395079f968b6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
    51
395079f968b6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
    52
value: aValue
395079f968b6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
    53
    "return a new instance with a value of aValue."
395079f968b6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
    54
395079f968b6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
    55
    ^self basicNew value:aValue
395079f968b6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
    56
395079f968b6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
    57
    "Created: 9.5.1996 / 16:12:19 / cg"
395079f968b6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
    58
! !
395079f968b6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
    59
0
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    60
!ValueLink methodsFor:'accessing'!
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    61
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    62
value
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    63
    "return the Links contents"
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    64
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    65
    ^ value
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    66
!
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    67
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    68
value:anObject
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    69
    "set the Links contents"
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    70
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    71
    value := anObject
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    72
! !
124
d919bc2f0078 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 112
diff changeset
    73
131
19e548711b65 version at the end
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
    74
!ValueLink class methodsFor:'documentation'!
19e548711b65 version at the end
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
    75
19e548711b65 version at the end
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
    76
version
291
395079f968b6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
    77
    ^ '$Header: /cvs/stx/stx/libbasic2/ValueLink.st,v 1.13 1996-05-09 14:12:38 cg Exp $'
131
19e548711b65 version at the end
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
    78
! !