Arduino Helpers master
Utility library for Arduino
Public Types | Public Member Functions | Protected Attributes | List of all members
DoublyLinkedList< Node >::node_iterator< INode > Class Template Reference

#include <AH/Containers/LinkedList.hpp>

Detailed Description

template<class Node>
template<class INode>
class DoublyLinkedList< Node >::node_iterator< INode >

Forward bidirectional doubly linked list iterator.

Definition at line 53 of file LinkedList.hpp.

+ Inheritance diagram for DoublyLinkedList< Node >::node_iterator< INode >:
+ Collaboration diagram for DoublyLinkedList< Node >::node_iterator< INode >:

Public Types

using difference_type = long
 
using value_type = INode
 
using pointer = INode *
 
using reference = INode &
 
using iterator_category = std::bidirectional_iterator_tag
 

Public Member Functions

 node_iterator (INode *node)
 
node_iteratoroperator++ ()
 Prefix increment operator. More...
 
node_iteratoroperator-- ()
 Prefix decrement operator. More...
 
bool operator!= (const node_iterator_base &rhs) const
 
bool operator== (const node_iterator_base &rhs) const
 
INode & operator* () const
 
INode * operator-> () const
 

Protected Attributes

INode * node
 

Member Typedef Documentation

◆ difference_type

using difference_type = long

Definition at line 57 of file LinkedList.hpp.

◆ value_type

using value_type = INode

Definition at line 58 of file LinkedList.hpp.

◆ pointer

using pointer = INode *

Definition at line 59 of file LinkedList.hpp.

◆ reference

using reference = INode &

Definition at line 60 of file LinkedList.hpp.

◆ iterator_category

using iterator_category = std::bidirectional_iterator_tag

Definition at line 61 of file LinkedList.hpp.

Constructor & Destructor Documentation

◆ node_iterator()

node_iterator ( INode *  node)
inline

Definition at line 55 of file LinkedList.hpp.

Member Function Documentation

◆ operator++()

node_iterator & operator++ ( )
inline

Prefix increment operator.

Definition at line 64 of file LinkedList.hpp.

◆ operator--()

node_iterator & operator-- ( )
inline

Prefix decrement operator.

Definition at line 71 of file LinkedList.hpp.

◆ operator!=()

bool operator!= ( const node_iterator_base< INode > &  rhs) const
inlineinherited

Definition at line 29 of file LinkedList.hpp.

◆ operator==()

bool operator== ( const node_iterator_base< INode > &  rhs) const
inlineinherited

Definition at line 33 of file LinkedList.hpp.

◆ operator*()

INode & operator* ( ) const
inlineinherited

Definition at line 37 of file LinkedList.hpp.

◆ operator->()

INode * operator-> ( ) const
inlineinherited

Definition at line 42 of file LinkedList.hpp.

Member Data Documentation

◆ node

INode* node
protectedinherited

Definition at line 48 of file LinkedList.hpp.


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