Data Structures & Algorithms in C++
Goodrich, Tamassia, Mount and Goldwasser
Loading...
Searching...
No Matches
Public Member Functions | Friends
dsac::list::DoublyLinkedList< T >::iterator Class Reference

#include <doubly_linked.h>

Collaboration diagram for dsac::list::DoublyLinkedList< T >::iterator:
Collaboration graph

Public Member Functions

 iterator (Node *ptr=nullptr)
 
T & operator* () const
 
T * operator-> () const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator-- ()
 
iterator operator-- (int)
 
bool operator== (const iterator &other) const
 
bool operator!= (const iterator &other) const
 

Friends

class DoublyLinkedList
 

Constructor & Destructor Documentation

◆ iterator()

template<typename T >
dsac::list::DoublyLinkedList< T >::iterator::iterator ( Node *  ptr = nullptr)
inline

Member Function Documentation

◆ operator!=()

template<typename T >
bool dsac::list::DoublyLinkedList< T >::iterator::operator!= ( const iterator other) const
inline

◆ operator*()

template<typename T >
T & dsac::list::DoublyLinkedList< T >::iterator::operator* ( ) const
inline

◆ operator++() [1/2]

template<typename T >
iterator & dsac::list::DoublyLinkedList< T >::iterator::operator++ ( )
inline

◆ operator++() [2/2]

template<typename T >
iterator dsac::list::DoublyLinkedList< T >::iterator::operator++ ( int  )
inline

◆ operator--() [1/2]

template<typename T >
iterator & dsac::list::DoublyLinkedList< T >::iterator::operator-- ( )
inline

◆ operator--() [2/2]

template<typename T >
iterator dsac::list::DoublyLinkedList< T >::iterator::operator-- ( int  )
inline

◆ operator->()

template<typename T >
T * dsac::list::DoublyLinkedList< T >::iterator::operator-> ( ) const
inline

◆ operator==()

template<typename T >
bool dsac::list::DoublyLinkedList< T >::iterator::operator== ( const iterator other) const
inline

Friends And Related Symbol Documentation

◆ DoublyLinkedList

template<typename T >
friend class DoublyLinkedList
friend

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