9 #ifndef THEPEG_ObjectIndexer_H
10 #define THEPEG_ObjectIndexer_H
13 #include "ThePEG/Config/ThePEG.h"
24 template <
typename IntT,
typename ObjT, IntT NoIndex = static_cast<IntT>(-1)>
49 typename ObjectIndexMap::iterator it =
objectIndex.find(o);
72 typename ObjectIndexMap::const_iterator it =
objectIndex.find(o);
73 return it ==
objectIndex.end()? NoIndex: it->second;
81 if ( i == NoIndex )
return tTPtr();
82 typename IndexObjectMap::iterator it =
indexObject.find(i);
84 TPtr o = new_ptr<ObjT>();
107 typename IndexObjectMap::const_iterator it =
indexObject.find(i);
117 if ( i == NoIndex )
return;
118 typename IndexObjectMap::iterator iit =
indexObject.find(i);
120 typename ObjectIndexMap::iterator oit =
objectIndex.find(o);