18#ifndef itkOneWayEquivalencyTable_h
19#define itkOneWayEquivalencyTable_h
23#include <unordered_map>
24#include "ITKWatershedsExport.h"
82 Add(
unsigned long a,
unsigned long b);
90 auto result = m_HashMap.find(a);
92 if (result == m_HashMap.end())
98 return result->second;
114 if (m_HashMap.find(a) == m_HashMap.end())
143 return m_HashMap.empty();
151 return m_HashMap.begin();
159 return m_HashMap.end();
Base class for all data objects in ITK.
Control indentation during Print() invocation.
Base class for most ITK classes.
Hash table to manage integral label equivalencies that are order dependent.
OneWayEquivalencyTable()=default
~OneWayEquivalencyTable() override=default
unsigned long Lookup(const unsigned long a) const
bool IsEntry(const unsigned long a) const
std::unordered_map< unsigned long, unsigned long > HashTableType
HashTableType::value_type ValueType
void PrintSelf(std::ostream &os, Indent indent) const override
bool Add(unsigned long a, unsigned long b)
HashTableType::const_iterator ConstIterator
unsigned long RecursiveLookup(const unsigned long a) const
void Erase(const unsigned long a)
HashTableType::iterator Iterator
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
class ITK_FORWARD_EXPORT DataObject