18 #ifndef __itkLabelMap_h
19 #define __itkLabelMap_h
69 template<
class TLabelObject >
97 itkStaticConstMacro(ImageDimension,
unsigned int, LabelObjectType::ImageDimension);
136 virtual void Initialize();
139 virtual void Allocate();
157 bool HasLabel(
const LabelType label)
const;
240 void RemoveLabel(
const LabelType & label);
265 itkGetConstMacro(BackgroundValue,
LabelType);
273 void PrintLabelObjects(std::ostream & os)
const;
275 void PrintLabelObjects()
const
277 this->PrintLabelObjects(std::cerr);
297 m_Begin = lm->m_LabelObjectContainer.begin();
298 m_End = lm->m_LabelObjectContainer.end();
299 m_Iterator = m_Begin;
319 return m_Iterator->second;
324 return m_Iterator->first;
347 return !( *
this == iter );
352 m_Iterator = m_Begin;
357 return m_Iterator == m_End;
379 m_Begin = lm->m_LabelObjectContainer.begin();
380 m_End = lm->m_LabelObjectContainer.end();
381 m_Iterator = m_Begin;
401 return m_Iterator->second;
406 return m_Iterator->first;
429 return !( *
this == iter );
434 m_Iterator = m_Begin;
439 return m_Iterator == m_End;
454 void PrintSelf(std::ostream & os,
Indent indent)
const;
458 void operator=(
const Self &);
463 typedef typename LabelObjectContainerType::const_iterator
475 bool iEmitModifiedEvent );
479 #ifndef ITK_MANUAL_INSTANTIATION
480 #include "itkLabelMap.hxx"