OpenAtom  Version1.5a
IntMap.h File Reference

Author: Eric J Bohm Date Created: June 4th, 2006. More...

Go to the source code of this file.

Classes

class  IntMap4
 
class  IntMap3
 
class  IntMap2on2
 
class  IntMap2on1
 
class  IntMap1
 

Typedefs

typedef IntMap1 MapType1
 
typedef IntMap2on2 MapType2
 
typedef IntMap4 MapType4
 
typedef IntMap3 MapType3
 

Variables

int numPes
 

Detailed Description

Author: Eric J Bohm Date Created: June 4th, 2006.

Simple abstraction to replace CkHashtable with a straight array of integers when we know we can perfectly hash the keys into an int and only want an int back. Meaning storage is just int map[numKeys] and lookup is a constant time array offset. Array offset is an int multiply and int add. Should be significantly speedier than CkHashtable for the conditions under which it is appropriate.

IntMap4 is for 4D paircalc

IntMap2 is the more standard 2D

This is a much less flexible object than CkHashtable and probably only suitable for use within procmaps.

Definition in file IntMap.h.