• Home
  • Raw
  • Download

Lines Matching refs:HashMap

2 //  HashMap.m
33 #import "HashMap.h"
106 * in the HashMap.
108 - (void) recordAccess:(HashMap *)m
117 - (void) recordRemoval:(HashMap *)m
133 + (HashIterator *)newIterator:(HashMap *)aHM
138 - (id) init:(HashMap *)aHM
201 + (HMValueIterator *)newIterator:(HashMap *)aHM
206 - (id) init:(HashMap *)aHM
223 + (HMKeyIterator *)newIterator:(HashMap *)aHM
228 - (id) init:(HashMap *)aHM
245 + (HMEntryIterator *)newIterator:(HashMap *)aHM
250 - (id) init:(HashMap *)aHM
270 + (HMKeySet *)newKeySet:(HashMap *)aHM
272 return [[HMKeySet alloc] init:(HashMap *)aHM];
275 - (id) init:(HashMap *)aHM
326 + (Values *)newValueSet:(HashMap *)aHM
331 - (id) init:(HashMap *)aHM
377 + (HMEntrySet *)newEntrySet:(HashMap *)aHM
382 - (id) init:(HashMap *)aHM
454 * Start of HashMap
456 @implementation HashMap implementation
476 return [[HashMap alloc] init];
481 return [[HashMap alloc] initWithLen:aBuffSize];
486 return [[HashMap alloc] init:initialCapacity loadFactor:DEFAULT_LOAD_FACTOR];
491 return [[HashMap alloc] init:initialCapacity loadFactor:aLoadFactor];
495 * Constructs an empty <tt>HashMap</tt> with the default initial capacity
521 Scope = ((HashMap *)fNext)->Scope+1;
523 ptrBuffer[idx] = ((HashMap *)fNext)->ptrBuffer[idx];
557 Scope = ((HashMap *)fNext)->Scope+1;
559 ptrBuffer[idx] = ((HashMap *)fNext)->ptrBuffer[idx];
570 * Constructs an empty <tt>HashMap</tt> with the specified initial
613 * Constructs an empty <tt>HashMap</tt> with the specified initial
645 * Constructs a new <tt>HashMap</tt> with the same mappings as the
646 * specified <tt>Map</tt>. The <tt>HashMap</tt> is created with
653 - (id) initWithM:(HashMap *)m
684 NSLog( @"called dealloc in HashMap" );
692 while ( tmp && tmp != [((HashMap *)fNext) getptrBufferEntry:idx] ) {
746 while ( tmp && tmp != (LinkBase *)[((HashMap *)fNext) getptrBufferEntry:idx] ) {
755 -(HashMap *)PushScope:(HashMap **)map
758 HashMap *htmp;
760 htmp = [HashMap newHashMap];
762 ((HashMap *)htmp)->fNext = *map;
763 [htmp setScope:[((HashMap *)htmp->fNext) getScope]+1];
765 htmp->ptrBuffer[idx] = ((HashMap *)htmp->fNext)->ptrBuffer[idx];
773 -(HashMap *)PopScope:(HashMap **)map
777 HashMap *htmp;
781 *map = (HashMap *)htmp->fNext;
795 *map = (HashMap *)htmp->fNext;
804 * NSInteger hash( HashMap *self, char *s );
828 * because HashMap uses power-of-two length hash tables, that
852 * HashMap *findscope( HashMap *self, NSInteger scope );
856 * Returns: HashMap pointer to ptrBuffer of proper scope level
861 -(HashMap *)findscope:(NSInteger)scope
867 return( [((HashMap *)fNext) findscope:scope] );
875 * MapElement *lookup( HashMap *self, char *s, NSInteger scope );
899 * NSInteger install( HashMap *self, MapElement *sym, NSInteger scope );
927 * NSInteger RemoveSym( HashMap *self, char *s );
1161 * HashMap. Returns null if the HashMap contains no mapping
1257 - (void) putAllForCreate:(HashMap *)m
1331 - (void) putAll:(HashMap *)m
1372 * in the HashMap. Returns null if the HashMap contains no mapping
1492 * Returns a shallow copy of this <tt>HashMap</tt> instance: the keys and
1499 HashMap *result = nil;
1502 result = [HashMap allocWithZone:zone];
1503 // result = (HashMap *)[super copyWithZone:zone];
1575 * Subclass overrides this to alter the behavior of HashMap(Map),
1670 * Save the state of the <tt>HashMap</tt> instance to a stream (i.e.,
1673 * @serialData The <i>capacity</i> of the HashMap (the length of the
1700 * Reconstitute the <tt>HashMap</tt> instance from a stream (i.e.,