File tom/BucketDictElement


class tom.BucketDictElement

Inherits

State supers
BucketElement

instance tom.BucketDictElement

variables

All key;
This bucket element's key.
public _builtin_.Any value;
The value in this bucket element.

methods

_builtin_.Any
  key;
Undocumented.

id
  initWith (All, All) (k, v);
Designated initializer.

_builtin_.Any
  member All k;
Return the value associated with the key k, asking the next element if this element does not match.

The implementation by BucketDictElement, considers its key and returns its value.

_builtin_.Any
  member All k
   equal selector cmp;
Like member, but using the selector cmp to have the objects compare themselves.

_builtin_.Any
  memq All k;
Undocumented.

int
  add (All, All) (k, v);
Add the (k, v) pair to this bucket, if the key is not already present. Return the number by which this bucket's length has increased.

int
  addq (All, All) (k, v);
Add the (k, v) pair to this bucket, if the key is not already present. Return the number by which this bucket's length has increased.

(id, int)
  remove All k;
Remove the object with the key equal to k. Return the replacement for this element, and the number of bucket elements that were removed from this bucket list (max 1).

(id, int)
  removeq All k;
Remove the object with the identical key k. Return the replacement for this element, and the number of bucket elements that were removed from this bucket list (max 1).

void
  encodeUsingCoder Encoder coder;
Undocumented.

void
  initWithCoder Decoder coder;
Undocumented.

(id, int)
  gc_mark_values;
Starting with this bucket element, remove the objects of which the value is gc_dead. Return the replacement for this element, and the number of bucket elements that were removed from this bucket list.

(id, int)
  gc_mark_keys;
Similar to gc_mark_values, but consider the liveness of the key instead of the value.

int
  rehash;
Rehash the key of the receiving element.

int
  rehashq;
Rehashq the key of the receiving element.


Generated by tm 1.01.