|
|
using | value_type = int |
| |
|
using | reference = value_type & |
| |
|
using | pointer = value_type * |
| |
|
using | difference_type = ptrdiff_t |
| |
|
using | iterator_category = std::forward_iterator_tag |
| |
| TreeStringSet::Iterator::Iterator |
( |
Element * |
current | ) |
|
|
private |
Friends create non-default iterators.
Creates an iterator.
- Returns
- Constructor does not return anything, but creates the Iterator.
- Parameters
-
| current | Pointer to the element the iterator should be created at. |
| void TreeStringSet::iterator::iterHelper |
( |
Element *& |
elem, |
|
|
queue< Element * > & |
order_ |
|
) |
| |
Helper for iterator constructor. Recursively adds element adresses to the queue.
- Parameters
-
| elem | Reference to an element pointer at which the function starts |
| order_ | Queue holding addresses |
| bool TreeStringSet::Iterator::operator!= |
( |
const Iterator & |
rhs | ) |
const |
Determines if iterators are not equal. Uses the == operator.
- Returns
- True if iterators are not equal, false else.
- Parameters
-
| string & TreeStringSet::Iterator::operator* |
( |
| ) |
const |
Derefences an iterator.
- Returns
- The string value of the current iterator
Increments an iterator.
- Returns
- Reference to an iterator incremented by one
| bool TreeStringSet::Iterator::operator== |
( |
const Iterator & |
rhs | ) |
const |
Determines if iterators are equal.
- Returns
- True if iterators are equal, false else.
- Parameters
-
The documentation for this class was generated from the following files: