|
KiCad PCB EDA Suite
|
Iterator for traversing all data items in the tree. More...
#include <dynamic_rtree.h>
Classes | |
| struct | STACK_ENTRY |
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| using | value_type = DATATYPE |
| using | difference_type = ptrdiff_t |
| using | pointer = const DATATYPE* |
| using | reference = const DATATYPE& |
Public Member Functions | |
| Iterator () | |
| Iterator (NODE *aRoot) | |
| const DATATYPE & | operator* () const |
| const DATATYPE * | operator-> () const |
| Iterator & | operator++ () |
| bool | operator== (const Iterator &aOther) const |
| bool | operator!= (const Iterator &aOther) const |
Private Member Functions | |
| void | advance () |
Private Attributes | |
| std::vector< STACK_ENTRY > | m_stack |
| DATATYPE | m_current = {} |
| bool | m_atEnd = true |
Iterator for traversing all data items in the tree.
Definition at line 365 of file dynamic_rtree.h.
| using KIRTREE::DYNAMIC_RTREE< DATATYPE, ELEMTYPE, NUMDIMS, TMAXNODES >::Iterator::difference_type = ptrdiff_t |
Definition at line 370 of file dynamic_rtree.h.
| using KIRTREE::DYNAMIC_RTREE< DATATYPE, ELEMTYPE, NUMDIMS, TMAXNODES >::Iterator::iterator_category = std::forward_iterator_tag |
Definition at line 368 of file dynamic_rtree.h.
| using KIRTREE::DYNAMIC_RTREE< DATATYPE, ELEMTYPE, NUMDIMS, TMAXNODES >::Iterator::pointer = const DATATYPE* |
Definition at line 371 of file dynamic_rtree.h.
| using KIRTREE::DYNAMIC_RTREE< DATATYPE, ELEMTYPE, NUMDIMS, TMAXNODES >::Iterator::reference = const DATATYPE& |
Definition at line 372 of file dynamic_rtree.h.
| using KIRTREE::DYNAMIC_RTREE< DATATYPE, ELEMTYPE, NUMDIMS, TMAXNODES >::Iterator::value_type = DATATYPE |
Definition at line 369 of file dynamic_rtree.h.
|
inline |
Definition at line 374 of file dynamic_rtree.h.
References m_atEnd.
Referenced by operator!=(), operator++(), and operator==().
|
inlineexplicit |
Definition at line 376 of file dynamic_rtree.h.
References advance(), KIRTREE::RTREE_NODE< DATATYPE, ELEMTYPE, NUMDIMS, MAXNODES >::count, m_atEnd, and m_stack.
|
inlineprivate |
Definition at line 415 of file dynamic_rtree.h.
References m_atEnd, m_current, m_stack, and top().
Referenced by Iterator(), and operator++().
|
inline |
Definition at line 403 of file dynamic_rtree.h.
References Iterator().
|
inline |
Definition at line 389 of file dynamic_rtree.h.
References m_current.
|
inline |
Definition at line 392 of file dynamic_rtree.h.
References advance(), and Iterator().
|
inline |
Definition at line 390 of file dynamic_rtree.h.
References m_current.
|
inline |
Definition at line 398 of file dynamic_rtree.h.
References Iterator(), and m_atEnd.
|
private |
Definition at line 453 of file dynamic_rtree.h.
Referenced by advance(), Iterator(), Iterator(), and operator==().
|
private |
Definition at line 452 of file dynamic_rtree.h.
Referenced by advance(), operator*(), and operator->().
|
private |
Definition at line 451 of file dynamic_rtree.h.
Referenced by advance(), and Iterator().