ORIGINAL
Loading...
Searching...
No Matches
iterator.h File Reference

Defines the iterator class for traversing and manipulating container elements. More...

#include "cloneable.h"
#include "comparable.h"
#include "error.h"
#include "printable.h"
Include dependency graph for iterator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  original::iterator< TYPE >
 Base iterator interface that supports common operations for iteration. More...
 
class  original::baseIterator< TYPE >
 A base class for basic iterators. More...
 

Namespaces

namespace  original
 Main namespace for the project Original.
 

Functions

template<typename T>
auto original::operator+ (const iterator< T > &it, integer steps) -> iterator< T > *
 Adds a number of steps to the iterator's current position and returns a new iterator.
 
template<typename T>
auto original::operator- (const iterator< T > &it, integer steps) -> iterator< T > *
 Subtracts a number of steps from the iterator's current position and returns a new iterator.
 

Detailed Description

Defines the iterator class for traversing and manipulating container elements.

Provides the base class for iterators, implementing common operations such as dereferencing, comparison, cloning, and navigating through elements. Derived classes must implement specific behavior such as how to move to the next or previous element, and how to get and set the element's value.