Arduino DLNA Server
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
tiny_dlna::Vector< T >::Iterator Class Reference

Lightweight iterator for tiny_dlna::Vector<T>. More...

#include <Vector.h>

Public Member Functions

 Iterator ()
 
 Iterator (T *parPtr, size_t pos)
 
 Iterator (const Iterator &copyFrom)
 
Iterator operator++ (int n)
 
Iterator operator++ ()
 
Iterator operator-- (int n)
 
Iterator operator-- ()
 
Iterator operator+ (int offset)
 
bool operator== (Iterator it)
 
bool operator< (Iterator it)
 
bool operator<= (Iterator it)
 
bool operator> (Iterator it)
 
bool operator>= (Iterator it)
 
bool operator!= (Iterator it)
 
T & operator* ()
 
T * operator-> ()
 
T * getPtr ()
 
size_t pos ()
 
size_t operator- (Iterator it)
 

Protected Attributes

T * ptr
 
size_t pos_
 

Detailed Description

template<class T>
class tiny_dlna::Vector< T >::Iterator

Lightweight iterator for tiny_dlna::Vector<T>.

Provides a minimal iterator interface (increment, decrement, dereference, comparison) suitable for range-style loops and manual iteration. This iterator holds a raw pointer to the element storage and a position index (pos_). Note that it is a simple forward/backward iterator and does not provide full random-access iterator guarantees beyond operator+.

Constructor & Destructor Documentation

◆ Iterator() [1/3]

template<class T >
tiny_dlna::Vector< T >::Iterator::Iterator ( )
inline

◆ Iterator() [2/3]

template<class T >
tiny_dlna::Vector< T >::Iterator::Iterator ( T *  parPtr,
size_t  pos 
)
inline

◆ Iterator() [3/3]

template<class T >
tiny_dlna::Vector< T >::Iterator::Iterator ( const Iterator copyFrom)
inline

Member Function Documentation

◆ getPtr()

template<class T >
T * tiny_dlna::Vector< T >::Iterator::getPtr ( )
inline

◆ operator!=()

template<class T >
bool tiny_dlna::Vector< T >::Iterator::operator!= ( Iterator  it)
inline

◆ operator*()

template<class T >
T & tiny_dlna::Vector< T >::Iterator::operator* ( )
inline

◆ operator+()

template<class T >
Iterator tiny_dlna::Vector< T >::Iterator::operator+ ( int  offset)
inline

◆ operator++() [1/2]

template<class T >
Iterator tiny_dlna::Vector< T >::Iterator::operator++ ( )
inline

◆ operator++() [2/2]

template<class T >
Iterator tiny_dlna::Vector< T >::Iterator::operator++ ( int  n)
inline

◆ operator-()

template<class T >
size_t tiny_dlna::Vector< T >::Iterator::operator- ( Iterator  it)
inline

◆ operator--() [1/2]

template<class T >
Iterator tiny_dlna::Vector< T >::Iterator::operator-- ( )
inline

◆ operator--() [2/2]

template<class T >
Iterator tiny_dlna::Vector< T >::Iterator::operator-- ( int  n)
inline

◆ operator->()

template<class T >
T * tiny_dlna::Vector< T >::Iterator::operator-> ( )
inline

◆ operator<()

template<class T >
bool tiny_dlna::Vector< T >::Iterator::operator< ( Iterator  it)
inline

◆ operator<=()

template<class T >
bool tiny_dlna::Vector< T >::Iterator::operator<= ( Iterator  it)
inline

◆ operator==()

template<class T >
bool tiny_dlna::Vector< T >::Iterator::operator== ( Iterator  it)
inline

◆ operator>()

template<class T >
bool tiny_dlna::Vector< T >::Iterator::operator> ( Iterator  it)
inline

◆ operator>=()

template<class T >
bool tiny_dlna::Vector< T >::Iterator::operator>= ( Iterator  it)
inline

◆ pos()

template<class T >
size_t tiny_dlna::Vector< T >::Iterator::pos ( )
inline

Member Data Documentation

◆ pos_

template<class T >
size_t tiny_dlna::Vector< T >::Iterator::pos_
protected

◆ ptr

template<class T >
T* tiny_dlna::Vector< T >::Iterator::ptr
protected

The documentation for this class was generated from the following file: