KiCad PCB EDA Suite
|
#include <shape_index.h>
Public Member Functions | |
Iterator (SHAPE_INDEX *aIndex) | |
Create an iterator for the index object. | |
T | operator* () |
Return the next data element. | |
bool | operator++ () |
Shift the iterator to the next element. | |
bool | operator++ (int) |
Shift the iterator to the next element. | |
bool | IsNull () const |
Check if the iterator has reached the end. | |
bool | IsNotNull () const |
Check if the iterator has not reached the end. | |
T | Next () |
Return the current element of the iterator and moves to the next position. | |
Private Types | |
typedef RTree< T, int, 2, double >::Iterator | RTreeIterator |
Private Member Functions | |
void | Init (RTree< T, int, 2, double > *aTree) |
Setup the internal tree iterator. | |
Private Attributes | |
RTreeIterator | iterator |
Definition at line 116 of file shape_index.h.
|
private |
Definition at line 119 of file shape_index.h.
|
inline |
Create an iterator for the index object.
aIndex | is a SHAPE_INDEX object to iterate. |
Definition at line 138 of file shape_index.h.
References SHAPE_INDEX< T >::Iterator::Init(), and SHAPE_INDEX< T >::m_tree.
|
inlineprivate |
Setup the internal tree iterator.
aTree | is a #RTREE object/ |
Definition at line 127 of file shape_index.h.
References SHAPE_INDEX< T >::Iterator::iterator.
Referenced by SHAPE_INDEX< T >::Iterator::Iterator().
|
inline |
Check if the iterator has not reached the end.
Definition at line 182 of file shape_index.h.
References SHAPE_INDEX< T >::Iterator::iterator.
|
inline |
Check if the iterator has reached the end.
Definition at line 172 of file shape_index.h.
References SHAPE_INDEX< T >::Iterator::iterator.
Referenced by SHAPE_INDEX< T >::Accept(), and SHAPE_INDEX< T >::Reindex().
|
inline |
Return the current element of the iterator and moves to the next position.
Definition at line 192 of file shape_index.h.
References SHAPE_INDEX< T >::Iterator::iterator.
|
inline |
Return the next data element.
Definition at line 146 of file shape_index.h.
References SHAPE_INDEX< T >::Iterator::iterator.
|
inline |
Shift the iterator to the next element.
Definition at line 154 of file shape_index.h.
References SHAPE_INDEX< T >::Iterator::iterator.
|
inline |
Shift the iterator to the next element.
Definition at line 162 of file shape_index.h.
References SHAPE_INDEX< T >::Iterator::iterator.
|
private |