25 #ifndef ODTRVISIDGENERATOR
26 #define ODTRVISIDGENERATOR
30 #include "../TrVisDefs.h"
40 typedef std::set<T> IdMap;
41 mutable IdMap m_idMap;
42 mutable T m_idMapCounter, m_idMapSearchEx;
44 T
inc(T &counter, T &searchEx)
const
46 const T NegativeId = (T)(-1);
47 if (counter == NegativeId)
55 }
while (
id < NegativeId);
76 m_idMapCounter = m_idMapSearchEx = 100;
81 const T freeId =
inc(m_idMapCounter, m_idMapSearchEx);
82 m_idMap.insert(freeId);
93 return m_idMap.find(
id) != m_idMap.end();
OdTrVisIdGeneratorImpl< OdTrVisId > OdTrVisGenericIdGenerator
T inc(T &counter, T &searchEx) const