Internal class to store string -> index maps for extra info stored in Particle.
ClassDef(ParticleExtraInfoMap, 1)
Internal class to store string -> index maps for user-defined variables in Particle.
unsigned int getMapForNewVar(const std::string &name)
Return map ID to a map that has 'name' as first entry.
unsigned int getIndex(unsigned int mapID, const std::string &name) const
Find index for name in the given map, or return 0 if not found.
static bool isCompatible(const IndexMap &oldMap, const IndexMap &map, unsigned int insertIndex)
check if all entries in 'oldMap' prior to insertIndex are found in 'map' (with same idx).
std::vector< IndexMap > m_maps
List of string -> index maps.
unsigned int getNMaps() const
How many maps do we use?
const IndexMap & getMap(unsigned int mapID) const
Return reference to map with given ID.
std::map< std::string, unsigned int > IndexMap
string -> index map.