CacheDictionary.st
author Stefan Vogel <sv@exept.de>
Tue, 07 Feb 2017 22:24:49 +0100
changeset 4302 f50a1263f3ce
parent 4141 e25ce4d8fbab
child 4673 9a0b7710fe9d
permissions -rw-r--r--
#BUGFIX by stefan class: HTMLUtilities comment/format in: #unEscape: changed: #urlEncode2:on: (obsolete) #urlEncoded2: (obsolete) #urlEncode:on: #urlEncoded: Encode characters > 16r7F as UTF8 as defined in standards.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
07d9ee98e092 *** empty log message ***
claus
parents: 0
diff changeset
     1
"
07d9ee98e092 *** empty log message ***
claus
parents: 0
diff changeset
     2
 COPYRIGHT (c) 1993 by Claus Gittinger
84
claus
parents: 80
diff changeset
     3
	      All Rights Reserved
2
07d9ee98e092 *** empty log message ***
claus
parents: 0
diff changeset
     4
07d9ee98e092 *** empty log message ***
claus
parents: 0
diff changeset
     5
 This software is furnished under a license and may be used
07d9ee98e092 *** empty log message ***
claus
parents: 0
diff changeset
     6
 only in accordance with the terms of that license and with the
07d9ee98e092 *** empty log message ***
claus
parents: 0
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
07d9ee98e092 *** empty log message ***
claus
parents: 0
diff changeset
     8
 be provided or otherwise made available to, or used by, any
07d9ee98e092 *** empty log message ***
claus
parents: 0
diff changeset
     9
 other person.  No title to or ownership of the software is
07d9ee98e092 *** empty log message ***
claus
parents: 0
diff changeset
    10
 hereby transferred.
07d9ee98e092 *** empty log message ***
claus
parents: 0
diff changeset
    11
"
910
af28d492d1eb examples
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
    12
"{ Package: 'stx:libbasic2' }"
af28d492d1eb examples
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
    13
3461
f4ff6526ac02 renamed the private emptyCheck of Set & Dictionary
Claus Gittinger <cg@exept.de>
parents: 3209
diff changeset
    14
"{ NameSpace: Smalltalk }"
f4ff6526ac02 renamed the private emptyCheck of Set & Dictionary
Claus Gittinger <cg@exept.de>
parents: 3209
diff changeset
    15
0
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    16
Dictionary subclass:#CacheDictionary
238
5cd00f81c000 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
    17
	instanceVariableNames:''
5cd00f81c000 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
    18
	classVariableNames:''
5cd00f81c000 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
    19
	poolDictionaries:''
5cd00f81c000 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
    20
	category:'Collections-Unordered'
0
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    21
!
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    22
31
e223f3cf2995 *** empty log message ***
claus
parents: 13
diff changeset
    23
!CacheDictionary class methodsFor:'documentation'!
e223f3cf2995 *** empty log message ***
claus
parents: 13
diff changeset
    24
e223f3cf2995 *** empty log message ***
claus
parents: 13
diff changeset
    25
copyright
e223f3cf2995 *** empty log message ***
claus
parents: 13
diff changeset
    26
"
e223f3cf2995 *** empty log message ***
claus
parents: 13
diff changeset
    27
 COPYRIGHT (c) 1993 by Claus Gittinger
84
claus
parents: 80
diff changeset
    28
	      All Rights Reserved
0
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    29
31
e223f3cf2995 *** empty log message ***
claus
parents: 13
diff changeset
    30
 This software is furnished under a license and may be used
e223f3cf2995 *** empty log message ***
claus
parents: 13
diff changeset
    31
 only in accordance with the terms of that license and with the
e223f3cf2995 *** empty log message ***
claus
parents: 13
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
e223f3cf2995 *** empty log message ***
claus
parents: 13
diff changeset
    33
 be provided or otherwise made available to, or used by, any
e223f3cf2995 *** empty log message ***
claus
parents: 13
diff changeset
    34
 other person.  No title to or ownership of the software is
e223f3cf2995 *** empty log message ***
claus
parents: 13
diff changeset
    35
 hereby transferred.
e223f3cf2995 *** empty log message ***
claus
parents: 13
diff changeset
    36
"
e223f3cf2995 *** empty log message ***
claus
parents: 13
diff changeset
    37
!
0
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    38
31
e223f3cf2995 *** empty log message ***
claus
parents: 13
diff changeset
    39
documentation
e223f3cf2995 *** empty log message ***
claus
parents: 13
diff changeset
    40
"
4141
e25ce4d8fbab #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
    41
    a CacheDictionary is a Dictionary which will not grow beyond a given max. size
e25ce4d8fbab #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
    42
    - i.e. keep only a limited number of elements.
31
e223f3cf2995 *** empty log message ***
claus
parents: 13
diff changeset
    43
    It can be used as a cache, for keeping recently used objects alive.
4141
e25ce4d8fbab #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
    44
    Must be created with an initial (=maximal) size. 
e25ce4d8fbab #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
    45
    I.e. (CacheDictionary new:100)
254
cccfa2590e6e documentation
Claus Gittinger <cg@exept.de>
parents: 238
diff changeset
    46
4141
e25ce4d8fbab #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
    47
    [see also:]
e25ce4d8fbab #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
    48
        Dictionary
e25ce4d8fbab #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
    49
        OrderedCollection
e25ce4d8fbab #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
    50
        OrderedDictionary
e25ce4d8fbab #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4024
diff changeset
    51
        
254
cccfa2590e6e documentation
Claus Gittinger <cg@exept.de>
parents: 238
diff changeset
    52
    [author:]
cccfa2590e6e documentation
Claus Gittinger <cg@exept.de>
parents: 238
diff changeset
    53
        Claus Gittinger
31
e223f3cf2995 *** empty log message ***
claus
parents: 13
diff changeset
    54
"
538
9cffa21b8dd4 added example
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    55
!
9cffa21b8dd4 added example
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    56
9cffa21b8dd4 added example
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    57
examples
9cffa21b8dd4 added example
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    58
"
910
af28d492d1eb examples
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
    59
                                                                        [exBegin]
538
9cffa21b8dd4 added example
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    60
    |d|
9cffa21b8dd4 added example
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    61
9cffa21b8dd4 added example
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    62
    d := CacheDictionary new:16.
9cffa21b8dd4 added example
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    63
    1 to:20 do:[:i |
910
af28d492d1eb examples
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
    64
        d at:i printString put:i.
538
9cffa21b8dd4 added example
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    65
    ].
9cffa21b8dd4 added example
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    66
    21 to:40 do:[:i |
910
af28d492d1eb examples
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
    67
        d at:i printString put:i.
538
9cffa21b8dd4 added example
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    68
    ].
9cffa21b8dd4 added example
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    69
    d inspect
910
af28d492d1eb examples
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
    70
                                                                        [exEnd]
538
9cffa21b8dd4 added example
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    71
"
31
e223f3cf2995 *** empty log message ***
claus
parents: 13
diff changeset
    72
! !
0
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    73
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    74
!CacheDictionary methodsFor:'private'!
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    75
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    76
findKeyOrNil:key  
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    77
    "Look for the key in the receiver.  If it is found, return
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    78
     the index of the association containing the key, otherwise
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    79
     return the index of the first unused slot. If no empty slot
489
27859443b951 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 459
diff changeset
    80
     is available, make one empty (but never grow)."
0
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    81
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    82
    |index  "{ Class:SmallInteger }"
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    83
     length "{ Class:SmallInteger }"
3792
ac218195f34c #TUNING by stefan
Stefan Vogel <sv@exept.de>
parents: 3473
diff changeset
    84
     startIndex probe
ac218195f34c #TUNING by stefan
Stefan Vogel <sv@exept.de>
parents: 3473
diff changeset
    85
     delIndex "{ Class:SmallInteger }"|
ac218195f34c #TUNING by stefan
Stefan Vogel <sv@exept.de>
parents: 3473
diff changeset
    86
ac218195f34c #TUNING by stefan
Stefan Vogel <sv@exept.de>
parents: 3473
diff changeset
    87
    delIndex := 0.
0
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    88
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    89
    length := keyArray basicSize.
1126
0ca4b7558465 refactored to invoke #hash/#identityHash only from one place
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
    90
    startIndex := index := self initialIndexForKey:key.
0
1cf8d1747859 Initial revision
claus
parents:
diff changeset
    91
3209
bed5afb12dcf [true] whileTrue: -> #loop
Stefan Vogel <sv@exept.de>
parents: 2700
diff changeset
    92
    [
238
5cd00f81c000 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
    93
        probe := keyArray basicAt:index.
1126
0ca4b7558465 refactored to invoke #hash/#identityHash only from one place
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
    94
        key = probe ifTrue:[^ index].
489
27859443b951 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 459
diff changeset
    95
        probe isNil ifTrue:[
3792
ac218195f34c #TUNING by stefan
Stefan Vogel <sv@exept.de>
parents: 3473
diff changeset
    96
            delIndex == 0 ifTrue:[^ index].
1126
0ca4b7558465 refactored to invoke #hash/#identityHash only from one place
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
    97
0ca4b7558465 refactored to invoke #hash/#identityHash only from one place
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
    98
            keyArray basicAt:delIndex put:nil.
0ca4b7558465 refactored to invoke #hash/#identityHash only from one place
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
    99
            valueArray basicAt:delIndex put:nil.
0ca4b7558465 refactored to invoke #hash/#identityHash only from one place
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
   100
            ^ delIndex
489
27859443b951 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 459
diff changeset
   101
        ].
0
1cf8d1747859 Initial revision
claus
parents:
diff changeset
   102
3792
ac218195f34c #TUNING by stefan
Stefan Vogel <sv@exept.de>
parents: 3473
diff changeset
   103
        (delIndex == 0 and:[probe == DeletedEntry]) ifTrue:[
1126
0ca4b7558465 refactored to invoke #hash/#identityHash only from one place
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
   104
            delIndex := index
238
5cd00f81c000 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
   105
        ].
13
f089ff744cd1 *** empty log message ***
claus
parents: 2
diff changeset
   106
238
5cd00f81c000 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
   107
        index := index + 1.
5cd00f81c000 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
   108
        index > length ifTrue:[
5cd00f81c000 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
   109
            index := 1.
5cd00f81c000 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
   110
        ].
5cd00f81c000 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
   111
        index == startIndex ifTrue:[
489
27859443b951 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 459
diff changeset
   112
            "/ mhmh - actually, a kind of round-robin would be better
3792
ac218195f34c #TUNING by stefan
Stefan Vogel <sv@exept.de>
parents: 3473
diff changeset
   113
            delIndex == 0 ifTrue:[
1126
0ca4b7558465 refactored to invoke #hash/#identityHash only from one place
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
   114
                delIndex := startIndex
238
5cd00f81c000 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
   115
            ].
13
f089ff744cd1 *** empty log message ***
claus
parents: 2
diff changeset
   116
1126
0ca4b7558465 refactored to invoke #hash/#identityHash only from one place
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
   117
            keyArray basicAt:delIndex put:nil.
0ca4b7558465 refactored to invoke #hash/#identityHash only from one place
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
   118
            valueArray basicAt:delIndex put:nil.
238
5cd00f81c000 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
   119
            tally := tally - 1.
1126
0ca4b7558465 refactored to invoke #hash/#identityHash only from one place
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
   120
            ^ delIndex
238
5cd00f81c000 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
   121
        ].
3209
bed5afb12dcf [true] whileTrue: -> #loop
Stefan Vogel <sv@exept.de>
parents: 2700
diff changeset
   122
    ] loop.
238
5cd00f81c000 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
   123
2700
b480eda50a6a comment/format in: #findKeyOrNil:
Claus Gittinger <cg@exept.de>
parents: 1126
diff changeset
   124
    "Modified: / 01-03-1997 / 00:59:55 / cg"
b480eda50a6a comment/format in: #findKeyOrNil:
Claus Gittinger <cg@exept.de>
parents: 1126
diff changeset
   125
    "Modified (format): / 26-12-2011 / 10:42:08 / cg"
489
27859443b951 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 459
diff changeset
   126
!
27859443b951 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 459
diff changeset
   127
4024
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   128
findKeyOrNilOrDeletedEntry:key  
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   129
    "Look for the key in the receiver.  If it is found, return
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   130
     the index of the association containing the key, otherwise
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   131
     return the index of the first unused slot. If no empty slot
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   132
     is available, make one empty (but never grow)."
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   133
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   134
    |index  "{ Class:SmallInteger }"
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   135
     length "{ Class:SmallInteger }"
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   136
     startIndex probe
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   137
     delIndex "{ Class:SmallInteger }"|
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   138
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   139
    delIndex := 0.
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   140
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   141
    length := keyArray basicSize.
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   142
    startIndex := index := self initialIndexForKey:key.
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   143
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   144
    [
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   145
        probe := keyArray basicAt:index.
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   146
        key = probe ifTrue:[^ index].
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   147
        probe isNil ifTrue:[
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   148
            delIndex == 0 ifTrue:[^ index].
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   149
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   150
            valueArray basicAt:delIndex put:nil.
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   151
            ^ delIndex
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   152
        ].
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   153
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   154
        (delIndex == 0 and:[probe == DeletedEntry]) ifTrue:[
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   155
            delIndex := index
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   156
        ].
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   157
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   158
        index := index + 1.
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   159
        index > length ifTrue:[
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   160
            index := 1.
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   161
        ].
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   162
        index == startIndex ifTrue:[
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   163
            "/ mhmh - actually, a kind of round-robin would be better
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   164
            delIndex == 0 ifTrue:[
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   165
                delIndex := startIndex
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   166
            ].
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   167
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   168
            valueArray basicAt:delIndex put:DeletedEntry.
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   169
            valueArray basicAt:delIndex put:nil.
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   170
            tally := tally - 1.
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   171
            ^ delIndex
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   172
        ].
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   173
    ] loop.
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   174
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   175
    "Modified: / 01-03-1997 / 00:59:55 / cg"
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   176
    "Modified (format): / 26-12-2011 / 10:42:08 / cg"
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   177
!
626a498ce5bf #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3792
diff changeset
   178
3461
f4ff6526ac02 renamed the private emptyCheck of Set & Dictionary
Claus Gittinger <cg@exept.de>
parents: 3209
diff changeset
   179
possiblyGrow
489
27859443b951 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 459
diff changeset
   180
    "redefined - never grow"
27859443b951 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 459
diff changeset
   181
27859443b951 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 459
diff changeset
   182
    ^ self
27859443b951 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 459
diff changeset
   183
27859443b951 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 459
diff changeset
   184
    "Modified: 30.1.1997 / 15:17:18 / cg"
3461
f4ff6526ac02 renamed the private emptyCheck of Set & Dictionary
Claus Gittinger <cg@exept.de>
parents: 3209
diff changeset
   185
!
f4ff6526ac02 renamed the private emptyCheck of Set & Dictionary
Claus Gittinger <cg@exept.de>
parents: 3209
diff changeset
   186
f4ff6526ac02 renamed the private emptyCheck of Set & Dictionary
Claus Gittinger <cg@exept.de>
parents: 3209
diff changeset
   187
possiblyShrink
f4ff6526ac02 renamed the private emptyCheck of Set & Dictionary
Claus Gittinger <cg@exept.de>
parents: 3209
diff changeset
   188
    "redefined - never shrink"
f4ff6526ac02 renamed the private emptyCheck of Set & Dictionary
Claus Gittinger <cg@exept.de>
parents: 3209
diff changeset
   189
f4ff6526ac02 renamed the private emptyCheck of Set & Dictionary
Claus Gittinger <cg@exept.de>
parents: 3209
diff changeset
   190
    ^ self
f4ff6526ac02 renamed the private emptyCheck of Set & Dictionary
Claus Gittinger <cg@exept.de>
parents: 3209
diff changeset
   191
f4ff6526ac02 renamed the private emptyCheck of Set & Dictionary
Claus Gittinger <cg@exept.de>
parents: 3209
diff changeset
   192
    "Modified: 30.1.1997 / 15:17:12 / cg"
0
1cf8d1747859 Initial revision
claus
parents:
diff changeset
   193
! !
125
8ee6268bd5ed checkin from browser
Claus Gittinger <cg@exept.de>
parents: 112
diff changeset
   194
134
4ef060494a86 version at the end
Claus Gittinger <cg@exept.de>
parents: 125
diff changeset
   195
!CacheDictionary class methodsFor:'documentation'!
4ef060494a86 version at the end
Claus Gittinger <cg@exept.de>
parents: 125
diff changeset
   196
4ef060494a86 version at the end
Claus Gittinger <cg@exept.de>
parents: 125
diff changeset
   197
version
3792
ac218195f34c #TUNING by stefan
Stefan Vogel <sv@exept.de>
parents: 3473
diff changeset
   198
    ^ '$Header$'
134
4ef060494a86 version at the end
Claus Gittinger <cg@exept.de>
parents: 125
diff changeset
   199
! !
3209
bed5afb12dcf [true] whileTrue: -> #loop
Stefan Vogel <sv@exept.de>
parents: 2700
diff changeset
   200