Eclipse Platform & Tools v3.6

org.eclipse.cdt.core.parser.util
Class CharArrayIntMap

java.lang.Object
  extended by org.eclipse.cdt.core.parser.util.HashTable
      extended by org.eclipse.cdt.core.parser.util.CharTable
          extended by org.eclipse.cdt.core.parser.util.CharArrayIntMap
All Implemented Interfaces:
Cloneable

public class CharArrayIntMap
extends CharTable


Field Summary
 int undefined
           
 
Fields inherited from class org.eclipse.cdt.core.parser.util.CharTable
keyTable
 
Fields inherited from class org.eclipse.cdt.core.parser.util.HashTable
currEntry, hashTable, minHashSize, nextTable
 
Constructor Summary
CharArrayIntMap(int initialSize, int undefined)
           
 
Method Summary
 void clear()
           
 Object clone()
           
 int get(char[] image)
           
 int get(char[] key, int start, int length)
           
 int get(int pos)
           
 int getKeyLocation(char[] key, int start, int length)
           
 int put(char[] key, int value)
           
 int put(char[] key, int start, int length, int value)
           
 void putAll(CharArrayIntMap map)
          Puts all mappings of map into this map.
protected  void resize(int size)
           
 
Methods inherited from class org.eclipse.cdt.core.parser.util.CharTable
addIndex, addIndex, containsKey, containsKey, findKey, hash, hash, hash, keyArray, keyAt, lookup, lookup, lookup, removeEntry, toList
 
Methods inherited from class org.eclipse.cdt.core.parser.util.HashTable
capacity, dumpNexts, isEmpty, linkIntoHashTable, partition, rehash, removeEntry, resize, size, sort
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

undefined

public final int undefined
Constructor Detail

CharArrayIntMap

public CharArrayIntMap(int initialSize,
                       int undefined)
Method Detail

resize

protected void resize(int size)
Overrides:
resize in class CharTable

clear

public void clear()
Overrides:
clear in class CharTable

clone

public Object clone()
Overrides:
clone in class CharTable

put

public int put(char[] key,
               int start,
               int length,
               int value)

put

public int put(char[] key,
               int value)

get

public int get(char[] key,
               int start,
               int length)

get

public int get(int pos)

getKeyLocation

public int getKeyLocation(char[] key,
                          int start,
                          int length)

get

public int get(char[] image)

putAll

public void putAll(CharArrayIntMap map)
Puts all mappings of map into this map. The keys are not cloned.

Since:
5.0

Eclipse Platform & Tools v3.6