|
| Iterator (const Iterator &other) |
| Copy constructor.
|
|
Iterator & | operator= (const Iterator &other) |
| Copy assignment operator.
|
|
Iterator * | clone () const override |
| Creates a copy of this iterator.
|
|
std::string | className () const override |
| Gets iterator class name.
|
|
void | operator+= (integer steps) const override |
| Advances iterator by steps.
|
|
void | operator-= (integer steps) const override |
| Not supported.
|
|
integer | operator- (const iterator< couple< const K_TYPE, V_TYPE > > &other) const override |
| Not supported.
|
|
bool | hasNext () const override |
| Checks if more elements exist.
|
|
bool | hasPrev () const override |
| Not supported.
|
|
bool | atPrev (const iterator< couple< const K_TYPE, V_TYPE > > *other) const override |
| Checks if other is previous to this.
|
|
bool | atNext (const iterator< couple< const K_TYPE, V_TYPE > > *other) const override |
| Checks if other is next to this.
|
|
void | next () const override |
| Moves to next element.
|
|
void | prev () const override |
| Not supported.
|
|
Iterator * | getPrev () const override |
| Not supported.
|
|
couple< const K_TYPE, V_TYPE > & | get () override |
| Gets current element (non-const)
|
|
couple< const K_TYPE, V_TYPE > | get () const override |
| Gets current element (const)
|
|
void | set (const couple< const K_TYPE, V_TYPE > &data) override |
| Not supported.
|
|
bool | isValid () const override |
| Checks if iterator is valid.
|
|
bool | hasNext () const |
| Checks if more elements are available.
|
|
void | next () const |
| Advances to the next element.
|
|
void | operator+= (integer steps) const |
| Advances iterator by steps positions.
|
|
couple< const K_TYPE, V_TYPE > & | get () |
| Gets current key-value pair (non-const)
|
|
couple< const K_TYPE, V_TYPE > | get () const |
| Gets current key-value pair (const)
|
|
bool | isValid () const |
| Checks if iterator points to valid element.
|
|
| ~baseIterator () override=default |
| Virtual destructor for proper cleanup of derived objects.
|
|
TYPE & | operator* () |
| Dereferences the iterator to get the element.
|
|
TYPE | operator* () const |
| Dereferences the iterator to get a copy of the element.
|
|
void | operator++ () const |
| Moves the iterator forward by one position.
|
|
void | operator++ (int postfix) const |
| Moves the iterator forward by one position (postfix).
|
|
void | operator-- () const |
| Moves the iterator backward by one position.
|
|
void | operator-- (int postfix) const |
| Moves the iterator backward by one position (postfix).
|
|
integer | compareTo (const iterator &other) const override |
| Compares two iterators to determine their relative positions.
|
|
virtual integer | operator- (const iterator &other) const =0 |
| Returns the distance between this iterator and another iterator.
|
|
| operator bool () const |
| Checks if the iterator is valid (i.e., points to a valid element).
|
|
virtual bool | atPrev (const iterator *other) const =0 |
| Checks if this iterator is positioned at the previous element.
|
|
virtual bool | atNext (const iterator *other) const =0 |
| Checks if this iterator is positioned at the next element.
|
|
bool | atPrev (const iterator &other) const |
| Checks if this iterator is positioned at the previous element.
|
|
bool | atNext (const iterator &other) const |
| Checks if this iterator is positioned at the next element.
|
|
virtual iterator * | getNext () const |
| Returns a new iterator pointing to the next element.
|
|
virtual TYPE | getElem () const |
| Returns a copy of the element.
|
|
bool | equal (const iterator *other) const |
| Checks if two iterators are equal.
|
|
bool | equal (const iterator &other) const |
| Checks if two iterators are equal.
|
|
std::string | className () const override |
| Returns the class name of the iterator.
|
|
std::string | toString (bool enter) const override |
| Returns a string representation of the iterator.
|
|
| ~iterator () override=default |
| Virtual destructor for proper cleanup of derived objects.
|
|
| operator std::string () const |
| Explicit conversion to std::string.
|
|
| operator const char * () const |
| Explicit conversion to C-style string.
|
|
const char * | toCString (bool enter) const |
| Direct C-string access with formatting control.
|
|
template<typename TYPE> |
auto | formatString (const TYPE &t) -> std::string |
|
template<typename TYPE> |
auto | formatCString (const TYPE &t) -> const char * |
|
template<typename TYPE> |
auto | formatEnum (const TYPE &t) -> std::string |
|
template<typename TYPE> |
auto | formatString (TYPE *const &ptr) -> std::string |
|
| ~cloneable () override=default |
| Virtual destructor for cloneable.
|
|
virtual | ~baseCloneable ()=default |
| Virtual destructor for baseCloneable.
|
|
bool | operator== (const iterator< TYPE > &other) const |
| Checks if the current object is equal to another.
|
|
bool | operator!= (const iterator< TYPE > &other) const |
| Checks if the current object is not equal to another.
|
|
bool | operator< (const iterator< TYPE > &other) const |
| Checks if the current object is less than another.
|
|
bool | operator> (const iterator< TYPE > &other) const |
| Checks if the current object is greater than another.
|
|
bool | operator<= (const iterator< TYPE > &other) const |
| Checks if the current object is less than or equal to another.
|
|
bool | operator>= (const iterator< TYPE > &other) const |
| Checks if the current object is greater than or equal to another.
|
|
virtual | ~comparable ()=default |
| Virtual destructor for proper cleanup of derived objects.
|
|
couple< const K_TYPE, V_TYPE > & | operator* () |
| Dereferences the iterator to get the element.
|
|
couple< const K_TYPE, V_TYPE > | operator* () const |
| Dereferences the iterator to get a copy of the element.
|
|
void | operator++ () const |
| Moves the iterator forward by one position.
|
|
void | operator++ (int postfix) const |
| Moves the iterator forward by one position (postfix).
|
|
void | operator-- () const |
| Moves the iterator backward by one position.
|
|
void | operator-- (int postfix) const |
| Moves the iterator backward by one position (postfix).
|
|
integer | compareTo (const iterator &other) const override |
| Compares two iterators to determine their relative positions.
|
|
virtual integer | operator- (const iterator &other) const=0 |
| Returns the distance between this iterator and another iterator.
|
|
| operator bool () const |
| Checks if the iterator is valid (i.e., points to a valid element).
|
|
virtual bool | atPrev (const iterator *other) const=0 |
| Checks if this iterator is positioned at the previous element.
|
|
bool | atPrev (const iterator &other) const |
| Checks if this iterator is positioned at the previous element.
|
|
virtual bool | atNext (const iterator *other) const=0 |
| Checks if this iterator is positioned at the next element.
|
|
bool | atNext (const iterator &other) const |
| Checks if this iterator is positioned at the next element.
|
|
virtual iterator * | getNext () const |
| Returns a new iterator pointing to the next element.
|
|
virtual couple< const K_TYPE, V_TYPE > | getElem () const |
| Returns a copy of the element.
|
|
bool | equal (const iterator *other) const |
| Checks if two iterators are equal.
|
|
bool | equal (const iterator &other) const |
| Checks if two iterators are equal.
|
|
std::string | className () const override |
| Returns the class name of the iterator.
|
|
std::string | toString (bool enter) const override |
| Returns a string representation of the iterator.
|
|
| ~iterator () override=default |
| Virtual destructor for proper cleanup of derived objects.
|
|
virtual integer | compareTo (const iterator< couple< const K_TYPE, V_TYPE > > &other) const=0 |
| Compares the current object with another of the same type.
|
|
bool | operator== (const iterator< couple< const K_TYPE, V_TYPE > > &other) const |
| Checks if the current object is equal to another.
|
|
bool | operator!= (const iterator< couple< const K_TYPE, V_TYPE > > &other) const |
| Checks if the current object is not equal to another.
|
|
bool | operator< (const iterator< couple< const K_TYPE, V_TYPE > > &other) const |
| Checks if the current object is less than another.
|
|
bool | operator> (const iterator< couple< const K_TYPE, V_TYPE > > &other) const |
| Checks if the current object is greater than another.
|
|
bool | operator<= (const iterator< couple< const K_TYPE, V_TYPE > > &other) const |
| Checks if the current object is less than or equal to another.
|
|
bool | operator>= (const iterator< couple< const K_TYPE, V_TYPE > > &other) const |
| Checks if the current object is greater than or equal to another.
|
|
virtual | ~comparable ()=default |
| Virtual destructor for proper cleanup of derived objects.
|
|
template<typename K_TYPE, typename V_TYPE, typename HASH = hash<K_TYPE>, typename ALLOC = allocator<couple<const K_TYPE, V_TYPE>>>
class original::hashMap< K_TYPE, V_TYPE, HASH, ALLOC >::Iterator
Bidirectional iterator for hashMap.
Provides iteration over hashMap elements while maintaining:
- Consistent traversal order
- Safe invalidation detection
- Const-correct access
Iterator Characteristics:
- Forward iteration only (throws on reverse operations)
- Invalidates on rehash
- Lightweight copy semantics