INET Framework for OMNeT++/OMNEST
inet::IPv6NeighbourCache::DefaultRouterList::iterator Class Reference

#include <IPv6NeighbourCache.h>

Public Member Functions

 iterator (const iterator &other)
 
Neighbouroperator* ()
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
bool operator== (const iterator &rhs) const
 
bool operator!= (const iterator &rhs) const
 

Private Member Functions

 iterator (Neighbour *start)
 

Private Attributes

Neighbourstart
 
Neighbourcurrent
 

Friends

class DefaultRouterList
 

Constructor & Destructor Documentation

inet::IPv6NeighbourCache::DefaultRouterList::iterator::iterator ( Neighbour start)
inlineprivate
135 : start(start), current(start) {}
Neighbour * current
Definition: IPv6NeighbourCache.h:134
Neighbour * start
Definition: IPv6NeighbourCache.h:133
inet::IPv6NeighbourCache::DefaultRouterList::iterator::iterator ( const iterator other)
inline
138 : start(other.start), current(other.current) {}
Neighbour * current
Definition: IPv6NeighbourCache.h:134
Neighbour * start
Definition: IPv6NeighbourCache.h:133

Member Function Documentation

bool inet::IPv6NeighbourCache::DefaultRouterList::iterator::operator!= ( const iterator rhs) const
inline
143 { return !(*this == rhs); }
Neighbour& inet::IPv6NeighbourCache::DefaultRouterList::iterator::operator* ( )
inline
139 { return *current; }
Neighbour * current
Definition: IPv6NeighbourCache.h:134
iterator& inet::IPv6NeighbourCache::DefaultRouterList::iterator::operator++ ( )
inline
140 { current = current->nextDefaultRouter == start ? nullptr : current->nextDefaultRouter; return *this; }
Neighbour * current
Definition: IPv6NeighbourCache.h:134
Neighbour * start
Definition: IPv6NeighbourCache.h:133
Neighbour * nextDefaultRouter
Definition: IPv6NeighbourCache.h:106
iterator inet::IPv6NeighbourCache::DefaultRouterList::iterator::operator++ ( int  )
inline

Referenced by operator++().

141 { iterator tmp(*this); operator++(); return tmp; }
iterator(Neighbour *start)
Definition: IPv6NeighbourCache.h:135
iterator & operator++()
Definition: IPv6NeighbourCache.h:140
bool inet::IPv6NeighbourCache::DefaultRouterList::iterator::operator== ( const iterator rhs) const
inline
142 { return current == rhs.current; }
Neighbour * current
Definition: IPv6NeighbourCache.h:134

Friends And Related Function Documentation

friend class DefaultRouterList
friend

Member Data Documentation

Neighbour* inet::IPv6NeighbourCache::DefaultRouterList::iterator::current
private

Referenced by operator==().

Neighbour* inet::IPv6NeighbourCache::DefaultRouterList::iterator::start
private

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