org.jikesrvm.compilers.opt.util
Interface BitSetMapping

All Known Implementing Classes:
ArchitectureSpecificOpt.PhysicalRegisterSet, GenericPhysicalRegisterSet, PhysicalRegisterSet

public interface BitSetMapping

An object that implements a bijection between whole numbers and objects.


Method Summary
 int getMappedIndex(Object o)
          Return the number of a given object.
 Object getMappedObject(int n)
          Return the object numbered n.
 int getMappingSize()
          Return the size of the domain of the bijection.
 

Method Detail

getMappedObject

Object getMappedObject(int n)
Return the object numbered n.


getMappedIndex

int getMappedIndex(Object o)
Return the number of a given object.


getMappingSize

int getMappingSize()
Return the size of the domain of the bijection.