|
Krita Source Code Documentation
|
#include <KisForest.h>
Inheritance diagram for KisForestDetail::ChildIterator< T, is_const >:Public Types | |
| using | NodeType = typename BaseClass::NodeType |
| using | RootNodeType = std::add_const_if_t<is_const, RootNode<T>> |
Public Types inherited from KisForestDetail::BaseIterator< ChildIterator< T, is_const >, T, boost::bidirectional_traversal_tag, is_const > | |
| using | NodeType |
| using | value_type |
Public Member Functions | |
| ChildIterator (NodeType *node, RootNodeType *parent, int offsetToParent) | |
| operator ChildIterator< T, true > () const | |
Public Member Functions inherited from KisForestDetail::BaseIterator< ChildIterator< T, is_const >, T, boost::bidirectional_traversal_tag, is_const > | |
| BaseIterator (NodeType *node) | |
| NodeType * | node () const |
Private Types | |
| using | BaseClass |
Private Member Functions | |
| void | decrement () |
| bool | equal (const ChildIterator< T, is_const > &other) const |
| void | increment () |
Private Attributes | |
| int | m_offsetToParent |
| RootNodeType * | m_parent |
Friends | |
| class | boost::iterator_core_access |
| template<typename X , bool c> | |
| ChildIterator< X, c > | childBegin (const ChildIterator< X, c > &it) |
| template<typename X , bool c> | |
| ChildIterator< X, c > | childEnd (const ChildIterator< X, c > &it) |
| template<typename X > | |
| class | Forest |
| template<typename X , bool c> | |
| QDebug | operator<< (QDebug dbg, const ChildIterator< X, c > &it) |
| template<typename X , bool c> | |
| ChildIterator< X, c > | parent (const ChildIterator< X, c > &it) |
| template<typename X , bool c> | |
| ChildIterator< X, c > | siblingBegin (const ChildIterator< X, c > &it) |
| template<typename X , bool c> | |
| ChildIterator< X, c > | siblingEnd (const ChildIterator< X, c > &it) |
Additional Inherited Members | |
Protected Attributes inherited from KisForestDetail::BaseIterator< ChildIterator< T, is_const >, T, boost::bidirectional_traversal_tag, is_const > | |
| NodeType * | m_node |
Child iterator is used to traverse all the children of the current node. It models BidirectionalIterator concept, so you can traverse with it in both directions.
It is also possible to convert any iterator type into child iterator via siblingCurrent() function.
WARNING: converting end() iterator to other iterator types currently leads to undefined behavior.
Definition at line 160 of file KisForest.h.
|
private |
Definition at line 166 of file KisForest.h.
| using KisForestDetail::ChildIterator< T, is_const >::NodeType = typename BaseClass::NodeType |
Definition at line 174 of file KisForest.h.
| using KisForestDetail::ChildIterator< T, is_const >::RootNodeType = std::add_const_if_t<is_const, RootNode<T>> |
Definition at line 173 of file KisForest.h.
|
inline |
Definition at line 176 of file KisForest.h.
|
inlineprivate |
Definition at line 208 of file KisForest.h.
References KisForestDetail::BaseIterator< ChildIterator< T, is_const >, T, boost::bidirectional_traversal_tag, is_const >::m_node, KisForestDetail::ChildIterator< T, is_const >::m_offsetToParent, and KisForestDetail::ChildIterator< T, is_const >::m_parent.
|
inlineprivate |
Definition at line 215 of file KisForest.h.
References KisForestDetail::BaseIterator< BaseClass, T, Tag, is_const >::m_node, KisForestDetail::BaseIterator< ChildIterator< T, is_const >, T, boost::bidirectional_traversal_tag, is_const >::m_node, KisForestDetail::ChildIterator< T, is_const >::m_offsetToParent, and KisForestDetail::ChildIterator< T, is_const >::m_parent.
|
inlineprivate |
Definition at line 204 of file KisForest.h.
|
inline |
Definition at line 183 of file KisForest.h.
References KisForestDetail::BaseIterator< ChildIterator< T, is_const >, T, boost::bidirectional_traversal_tag, is_const >::m_node, KisForestDetail::ChildIterator< T, is_const >::m_offsetToParent, and KisForestDetail::ChildIterator< T, is_const >::m_parent.
|
friend |
Definition at line 188 of file KisForest.h.
|
friend |
|
friend |
Definition at line 202 of file KisForest.h.
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
Definition at line 224 of file KisForest.h.
|
private |
Definition at line 223 of file KisForest.h.