Hasty Badger
Small UI library (a branch of Turbo Badger)
|
Typed iterator for safe iteration. More...
#include <tb_linklist.h>
Public Member Functions | |
Iterator (TBLinkListOf< T > *linklistof, bool forward) | |
Iterator (TBLinkListOf< T > *linklistof, T *link, bool forward) | |
T * | Get () const |
T * | GetAndStep () |
operator T * () const | |
Public Member Functions inherited from tb::TBLinkListIterator | |
TBLinkListIterator (const TBLinkListIterator &iter) | |
TBLinkListIterator (TBLinkList *linklist, TBLink *current_link, bool forward) | |
void | Reset () |
Set the iterator to the first link in we iterate forward, or set it to the last link if we iterate backward. More... | |
TBLink * | Get () const |
Get the current link or nullptr if out of bounds. More... | |
TBLink * | GetAndStep () |
Get the current link and step the iterator to the next (forward or backward). More... | |
operator TBLink * () const | |
const TBLinkListIterator & | operator= (const TBLinkListIterator &iter) |
Typed iterator for safe iteration.
For more info, see TBLinkListIterator.