29 #ifndef BIMA_IDINDEX_H
30 #define BIMA_IDINDEX_H
90 std::map<casacore::Int, casacore::Int>
idmap;
void add(casacore::Int id)
add an ID to the set;
casacore::Int next()
return the next index to be mapped to when add is next called.
IDIndex(casacore::Int first=0)
create an ID set.
casacore::Int first()
return the output index that the first input ID is mapped to.
casacore::Int size()
return the number of input IDs mapped
void clear()
remove all ID mappings.
std::map< casacore::Int, casacore::Int > idmap
casacore::Int operator()(casacore::Int id)
return the ID mapping
~IDIndex()
destroy this index
a simple mapping from one indexing system to another