18 #ifndef __itkOneWayEquivalencyTable_h
19 #define __itkOneWayEquivalencyTable_h
23 #include "itksys/hash_map.hxx"
58 typedef itksys::hash_map<
unsigned long,
unsigned long,
77 bool Add(
unsigned long a,
unsigned long b);
82 unsigned long Lookup(
const unsigned long a)
const
86 if ( result == m_HashMap.end() ) {
return a; }
87 else {
return ( *result ).second; }
94 unsigned long RecursiveLookup(
const unsigned long a)
const;
98 bool IsEntry(
const unsigned long a)
const
100 if ( m_HashMap.find(a) == m_HashMap.end() ) {
return false; }
101 else {
return true; }
106 void Erase(
const unsigned long a)
107 { m_HashMap.erase(a); }
111 { m_HashMap.clear(); }
115 {
return m_HashMap.empty(); }
132 void operator=(
const Self &);
134 void PrintSelf(std::ostream & os,
Indent indent)
const;