18 #ifndef __itkWatershedSegmentTree_h
19 #define __itkWatershedSegmentTree_h
46 template<
class TScalarType >
77 struct merge_comp:
public std:: binary_function< bool, const merge_t &,
88 struct sort_comp:
public std:: binary_function< bool, const merge_t &,
97 typename DequeType::size_type
Size()
const
98 {
return m_Deque.size(); }
103 {
return m_Deque.empty(); }
108 {
return m_Deque.front(); }
113 {
return m_Deque.back(); }
117 {
return m_Deque.front(); }
121 {
return m_Deque.back(); }
125 { m_Deque.push_front(t); }
129 { m_Deque.push_back(t); }
133 { m_Deque.pop_front(); }
137 { m_Deque.pop_back(); }
141 {
return m_Deque.begin(); }
145 {
return m_Deque.begin(); }
150 {
return m_Deque.end(); }
155 {
return m_Deque.end(); }
170 void PrintSelf(std::ostream & os,
Indent indent)
const;
177 #ifndef ITK_MANUAL_INSTANTIATION
178 #include "itkWatershedSegmentTree.hxx"