Go to the previous, next section.

Choosing the Right Class

Talk about keys or no keys, ordered or not ordered. Talk about the classes the require protocol-conforming objects as members.

<<This section unfinished.>>

Set

<<This section unfinished.>>

Bag

A Bag is ...

@deftypemethod Bag {} @keyword{-addObject:} newObject withOccurrences: (unsigned)count @deftypemethodx Bag {} @keyword{-addElement:} (elt)newElement withOccurrences: (unsigned)count

@deftypemethod Bag {} @keyword{-removeObject:} oldObject occurrences: (unsigned)count @deftypemethodx Bag {} @keyword{-removeElement:} (elt)oldElement occurrences: (unsigned)count

<<This section unfinished.>>

Dictionary

A Dictionary is ...

MappedCollector

A MappedCollector is ...

Array

An Array is ...

Array Methods

@deftypemethod {Array} {(unsigned)} @keyword{+defaultCapacity}

@deftypemethod {Array} {(unsigned)} @keyword{+defaultGrowFactor}

@deftypemethod {Array} {} @keyword{-initEncoding:} (const char *) contentEncoding @keyword{capacity:} (unsigned) aCapacity

@deftypemethod {Array} {} -setCapacity: (unsigned) newCapacity

@deftypemethod {Array} {} -setGrowFactor: (unsigned) aNum

Stack

@deftypemethod {Stack} {} -pushObject: newObject @deftypemethodx {Stack} {} -pushElement: (elt)newElement

@deftypemethod {Stack} {} -popObject: newObject @deftypemethodx {Stack} {} -popElement: (elt)newElement

@deftypemethod {Stack} {} -topObject @deftypemethodx {Stack} {(elt)} -topElement

@deftypemethod {Stack} {} -exchangeTop

A Collection is ...

KeyedCollection

IndexedCollection

Go to the previous, next section.