17 #ifndef __itkEquivalencyTable_h
18 #define __itkEquivalencyTable_h
21 #pragma warning ( disable : 4786 )
76 bool Add(
unsigned long a,
unsigned long b);
85 bool AddAndFlatten(
unsigned long a,
unsigned long b);
90 unsigned long Lookup(
const unsigned long a)
const
93 if ( result == m_HashMap.end() )
return a;
94 else return (*result).second;
101 unsigned long RecursiveLookup(
const unsigned long a)
const;
105 bool IsEntry(
const unsigned long a)
const
107 if ( m_HashMap.find(a) == m_HashMap.end() )
return false;
112 void Erase(
const unsigned long a)
113 { m_HashMap.erase(a); }
117 { m_HashMap.clear(); }
121 {
return m_HashMap.empty(); }
124 HashTableType::size_type
Size()
const
125 {
return m_HashMap.size(); }
141 void operator=(
const Self&);
142 void PrintSelf(std::ostream& os,
Indent indent)
const;