|
Krita Source Code Documentation
|
Classes | |
| class | BaseIterator |
| struct | BaseNode |
| class | ChildIterator |
| class | CompositionIterator |
| class | DepthFirstIterator |
| class | Forest |
| class | HierarchyIterator |
| struct | Node |
| struct | RootNodeImpl |
Typedefs | |
| template<typename T > | |
| using | RootNode = RootNodeImpl<Node<T>> |
Enumerations | |
| enum | TraversalState { Enter , Leave } |
Functions | |
| template<typename value_type , bool is_const> | |
| ChildIterator< value_type, is_const > | childBegin (const ChildIterator< value_type, is_const > &it) |
| template<typename T > | |
| Forest< T >::const_child_iterator | childBegin (const Forest< T > &forest) |
| template<typename T > | |
| Forest< T >::child_iterator | childBegin (Forest< T > &forest) |
| template<typename Iterator , bool is_const = std::is_const_v<typename Iterator::NodeType>, typename ResultIterator = ChildIterator<typename Iterator::value_type, is_const>> | |
| ResultIterator | childBegin (Iterator it) |
| template<typename value_type , bool is_const> | |
| ChildIterator< value_type, is_const > | childEnd (const ChildIterator< value_type, is_const > &it) |
| template<typename T > | |
| Forest< T >::const_child_iterator | childEnd (const Forest< T > &forest) |
| template<typename T > | |
| Forest< T >::child_iterator | childEnd (Forest< T > &forest) |
| template<typename Iterator , bool is_const = std::is_const_v<typename Iterator::NodeType>, typename ResultIterator = ChildIterator<typename Iterator::value_type, is_const>> | |
| ResultIterator | childEnd (Iterator it) |
| template<typename T > | |
| Forest< T >::const_composition_iterator | compositionBegin (const Forest< T > &forest) |
| template<typename T > | |
| Forest< T >::composition_iterator | compositionBegin (Forest< T > &forest) |
| template<typename Iterator , bool is_const = std::is_const_v<typename Iterator::NodeType>, typename ResultIterator = CompositionIterator<typename Iterator::value_type, is_const>> | |
| ResultIterator | compositionBegin (Iterator it) |
| template<typename T > | |
| Forest< T >::const_composition_iterator | compositionEnd (const Forest< T > &forest) |
| template<typename T > | |
| Forest< T >::composition_iterator | compositionEnd (Forest< T > &forest) |
| template<typename Iterator , bool is_const = std::is_const_v<typename Iterator::NodeType>, typename ResultIterator = CompositionIterator<typename Iterator::value_type, is_const>> | |
| ResultIterator | compositionEnd (Iterator it) |
| template<typename T > | |
| int | depth (const Forest< T > &forest) |
| template<typename T > | |
| int | depth (typename Forest< T >::const_child_iterator beginIt, typename Forest< T >::const_child_iterator endIt) |
| template<typename Iterator , bool is_const = std::is_const_v<typename Iterator::NodeType>, typename ResultIterator = HierarchyIterator<typename Iterator::value_type, is_const>> | |
| ResultIterator | hierarchyBegin (Iterator it) |
| template<typename Iterator , bool is_const = std::is_const_v<typename Iterator::NodeType>, typename ResultIterator = HierarchyIterator<typename Iterator::value_type, is_const>> | |
| ResultIterator | hierarchyEnd (Iterator it) |
| template<typename T , bool is_const> | |
| bool | isEnd (const ChildIterator< T, is_const > &it) |
| template<typename value_type , bool is_const> | |
| QDebug | operator<< (QDebug dbg, const ChildIterator< value_type, is_const > &it) |
| template<typename value_type , bool is_const> | |
| ChildIterator< value_type, is_const > | parent (const ChildIterator< value_type, is_const > &it) |
| template<typename value_type , bool is_const> | |
| ChildIterator< value_type, is_const > | siblingBegin (const ChildIterator< value_type, is_const > &it) |
| template<typename Iterator , bool is_const = std::is_const_v<typename Iterator::NodeType>, typename ResultIterator = ChildIterator<typename Iterator::value_type, is_const>> | |
| ResultIterator | siblingBegin (Iterator it) |
| template<typename value_type , bool is_const> | |
| ChildIterator< value_type, is_const > | siblingCurrent (ChildIterator< value_type, is_const > it) |
| template<typename Iterator , bool is_const = std::is_const_v<typename Iterator::NodeType>, typename ResultIterator = ChildIterator<typename Iterator::value_type, is_const>> | |
| ResultIterator | siblingCurrent (Iterator it) |
| template<typename value_type , bool is_const> | |
| ChildIterator< value_type, is_const > | siblingEnd (const ChildIterator< value_type, is_const > &it) |
| template<typename Iterator , bool is_const = std::is_const_v<typename Iterator::NodeType>, typename ResultIterator = ChildIterator<typename Iterator::value_type, is_const>> | |
| ResultIterator | siblingEnd (Iterator it) |
| template<typename T > | |
| int | size (const Forest< T > &forest) |
| template<typename Iterator , bool is_const = std::is_const_v<typename Iterator::NodeType>, typename ResultIterator = DepthFirstIterator<typename Iterator::value_type, Enter, is_const>> | |
| ResultIterator | subtreeBegin (Iterator it) |
| template<typename Iterator , bool is_const = std::is_const_v<typename Iterator::NodeType>, typename ResultIterator = DepthFirstIterator<typename Iterator::value_type, Enter, is_const>> | |
| ResultIterator | subtreeEnd (Iterator it) |
| template<typename T > | |
| Forest< T >::const_depth_first_tail_iterator | tailSubtreeBegin (const Forest< T > &forest) |
| template<typename T > | |
| Forest< T >::depth_first_tail_iterator | tailSubtreeBegin (Forest< T > &forest) |
| template<typename Iterator , bool is_const = std::is_const_v<typename Iterator::NodeType>, typename ResultIterator = DepthFirstIterator<typename Iterator::value_type, Leave, is_const>> | |
| ResultIterator | tailSubtreeBegin (Iterator it) |
| template<typename T > | |
| Forest< T >::const_depth_first_tail_iterator | tailSubtreeEnd (const Forest< T > &forest) |
| template<typename T > | |
| Forest< T >::depth_first_tail_iterator | tailSubtreeEnd (Forest< T > &forest) |
| template<typename Iterator , bool is_const = std::is_const_v<typename Iterator::NodeType>, typename ResultIterator = DepthFirstIterator<typename Iterator::value_type, Leave, is_const>> | |
| ResultIterator | tailSubtreeEnd (Iterator it) |
| using KisForestDetail::RootNode = RootNodeImpl<Node<T>> |
Definition at line 54 of file KisForest.h.
Composition iterator is used to traverse entire child-subtree of the node recursively in depth-first order. Every node it entered twice: first time, when subtree is entered; second time, when subtree is left. To check the current state of the iterator (Enter or Leave) use it.state() call.
Iterator models ForwardIterator concept.
WARNING: converting end() iterator to other iterator types currently leads to undefined behavior.
| Enumerator | |
|---|---|
| Enter | |
| Leave | |
Definition at line 479 of file KisForest.h.
| ChildIterator< value_type, is_const > KisForestDetail::childBegin | ( | const ChildIterator< value_type, is_const > & | it | ) |
Definition at line 290 of file KisForest.h.
References KisForestDetail::ChildIterator< T, is_const >::m_offsetToParent, KisForestDetail::ChildIterator< T, is_const >::m_parent, and KisForestDetail::BaseIterator< BaseClass, T, Tag, is_const >::node().
| Forest< T >::const_child_iterator KisForestDetail::childBegin | ( | const Forest< T > & | forest | ) |
Definition at line 1144 of file KisForest.h.
References KisForestDetail::Forest< T >::childBegin().
| Forest< T >::child_iterator KisForestDetail::childBegin | ( | Forest< T > & | forest | ) |
Definition at line 1138 of file KisForest.h.
References KisForestDetail::Forest< T >::childBegin().
| ResultIterator KisForestDetail::childBegin | ( | Iterator | it | ) |
Definition at line 312 of file KisForest.h.
References childBegin(), and siblingCurrent().
| ChildIterator< value_type, is_const > KisForestDetail::childEnd | ( | const ChildIterator< value_type, is_const > & | it | ) |
Definition at line 300 of file KisForest.h.
References KisForestDetail::ChildIterator< T, is_const >::m_offsetToParent, KisForestDetail::ChildIterator< T, is_const >::m_parent, and KisForestDetail::BaseIterator< BaseClass, T, Tag, is_const >::node().
| Forest< T >::const_child_iterator KisForestDetail::childEnd | ( | const Forest< T > & | forest | ) |
Definition at line 1157 of file KisForest.h.
References KisForestDetail::Forest< T >::childEnd().
Definition at line 1151 of file KisForest.h.
References KisForestDetail::Forest< T >::childEnd().
| ResultIterator KisForestDetail::childEnd | ( | Iterator | it | ) |
Definition at line 320 of file KisForest.h.
References childEnd(), and siblingCurrent().
| Forest< T >::const_composition_iterator KisForestDetail::compositionBegin | ( | const Forest< T > & | forest | ) |
Definition at line 1169 of file KisForest.h.
References KisForestDetail::Forest< T >::compositionBegin().
| Forest< T >::composition_iterator KisForestDetail::compositionBegin | ( | Forest< T > & | forest | ) |
Definition at line 1163 of file KisForest.h.
References KisForestDetail::Forest< T >::compositionBegin().
| ResultIterator KisForestDetail::compositionBegin | ( | Iterator | it | ) |
Definition at line 562 of file KisForest.h.
References Enter.
| Forest< T >::const_composition_iterator KisForestDetail::compositionEnd | ( | const Forest< T > & | forest | ) |
Definition at line 1182 of file KisForest.h.
References KisForestDetail::Forest< T >::compositionEnd().
| Forest< T >::composition_iterator KisForestDetail::compositionEnd | ( | Forest< T > & | forest | ) |
Definition at line 1176 of file KisForest.h.
References KisForestDetail::Forest< T >::compositionEnd().
| ResultIterator KisForestDetail::compositionEnd | ( | Iterator | it | ) |
Definition at line 570 of file KisForest.h.
References Leave.
| int KisForestDetail::depth | ( | const Forest< T > & | forest | ) |
Definition at line 1227 of file KisForest.h.
References childBegin(), and childEnd().
| int KisForestDetail::depth | ( | typename Forest< T >::const_child_iterator | beginIt, |
| typename Forest< T >::const_child_iterator | endIt ) |
Definition at line 1213 of file KisForest.h.
References childBegin(), and childEnd().
| ResultIterator KisForestDetail::hierarchyBegin | ( | Iterator | it | ) |
Definition at line 419 of file KisForest.h.
| ResultIterator KisForestDetail::hierarchyEnd | ( | Iterator | it | ) |
Definition at line 427 of file KisForest.h.
|
inline |
Definition at line 341 of file KisForest.h.
References KisForestDetail::BaseIterator< BaseClass, T, Tag, is_const >::node().
| QDebug KisForestDetail::operator<< | ( | QDebug | dbg, |
| const ChildIterator< value_type, is_const > & | it ) |
Definition at line 228 of file KisForest.h.
References KisForestDetail::ChildIterator< T, is_const >::m_offsetToParent, KisForestDetail::ChildIterator< T, is_const >::m_parent, and KisForestDetail::BaseIterator< BaseClass, T, Tag, is_const >::node().
| ChildIterator< value_type, is_const > KisForestDetail::parent | ( | const ChildIterator< value_type, is_const > & | it | ) |
Definition at line 327 of file KisForest.h.
References KisForestDetail::ChildIterator< T, is_const >::m_offsetToParent, and KisForestDetail::ChildIterator< T, is_const >::m_parent.
| ChildIterator< value_type, is_const > KisForestDetail::siblingBegin | ( | const ChildIterator< value_type, is_const > & | it | ) |
Definition at line 246 of file KisForest.h.
References KisForestDetail::ChildIterator< T, is_const >::m_offsetToParent, KisForestDetail::ChildIterator< T, is_const >::m_parent, KisForestDetail::BaseIterator< BaseClass, T, Tag, is_const >::node(), and parent().
| ResultIterator KisForestDetail::siblingBegin | ( | Iterator | it | ) |
Definition at line 276 of file KisForest.h.
References siblingBegin(), and siblingCurrent().
| ChildIterator< value_type, is_const > KisForestDetail::siblingCurrent | ( | ChildIterator< value_type, is_const > | it | ) |
Definition at line 240 of file KisForest.h.
| ResultIterator KisForestDetail::siblingCurrent | ( | Iterator | it | ) |
Definition at line 264 of file KisForest.h.
References KIS_SAFE_ASSERT_RECOVER_NOOP.
| ChildIterator< value_type, is_const > KisForestDetail::siblingEnd | ( | const ChildIterator< value_type, is_const > & | it | ) |
Definition at line 255 of file KisForest.h.
References KisForestDetail::ChildIterator< T, is_const >::m_offsetToParent, KisForestDetail::ChildIterator< T, is_const >::m_parent, and KisForestDetail::BaseIterator< BaseClass, T, Tag, is_const >::node().
| ResultIterator KisForestDetail::siblingEnd | ( | Iterator | it | ) |
Definition at line 284 of file KisForest.h.
References siblingCurrent(), and siblingEnd().
| int KisForestDetail::size | ( | const Forest< T > & | forest | ) |
Definition at line 1232 of file KisForest.h.
| ResultIterator KisForestDetail::subtreeBegin | ( | Iterator | it | ) |
Definition at line 688 of file KisForest.h.
References Enter.
| ResultIterator KisForestDetail::subtreeEnd | ( | Iterator | it | ) |
Definition at line 696 of file KisForest.h.
References Leave.
| Forest< T >::const_depth_first_tail_iterator KisForestDetail::tailSubtreeBegin | ( | const Forest< T > & | forest | ) |
Definition at line 1195 of file KisForest.h.
References KisForestDetail::Forest< T >::depthFirstTailBegin().
| Forest< T >::depth_first_tail_iterator KisForestDetail::tailSubtreeBegin | ( | Forest< T > & | forest | ) |
Definition at line 1189 of file KisForest.h.
References KisForestDetail::Forest< T >::depthFirstTailBegin().
| ResultIterator KisForestDetail::tailSubtreeBegin | ( | Iterator | it | ) |
Definition at line 706 of file KisForest.h.
References Enter.
| Forest< T >::const_depth_first_tail_iterator KisForestDetail::tailSubtreeEnd | ( | const Forest< T > & | forest | ) |
Definition at line 1207 of file KisForest.h.
References KisForestDetail::Forest< T >::depthFirstTailEnd().
| Forest< T >::depth_first_tail_iterator KisForestDetail::tailSubtreeEnd | ( | Forest< T > & | forest | ) |
Definition at line 1201 of file KisForest.h.
References KisForestDetail::Forest< T >::depthFirstTailEnd().
| ResultIterator KisForestDetail::tailSubtreeEnd | ( | Iterator | it | ) |
Definition at line 714 of file KisForest.h.
References Leave.