Iterator for the BTree template. More...
#include <tbtree.h>
Public Member Functions | |
TBTreeIterator (const TBTree< T > &) | |
Iterator constructor. | |
virtual bool | done () const |
Check if at end. | |
virtual T & | next () |
Return and advance. | |
virtual T & | previous () |
Return and backup. | |
virtual T & | current () const |
Get current item. | |
virtual void | first () |
Move to first item. | |
virtual void | last () |
Move to last item. | |
const TBTree< T > & | tree () const |
Return tree reference. | |
Protected Member Functions | |
void | setCurrent (TBTreeNode< T > *node, int32 index2) |
Iterator for the BTree template.
Iterator for a BTree
TBTreeIterator | ( | const TBTree< T > & | Tr | ) | [inline] |
Iterator constructor.
bool done | ( | ) | const [inline, virtual] |
Check if at end.
Implements TIterator< T >.
T & next | ( | ) | [inline, virtual] |
Return and advance.
Implements TIterator< T >.
T & previous | ( | ) | [inline, virtual] |
Return and backup.
Implements TIterator< T >.
T & current | ( | ) | const [inline, virtual] |
Get current item.
Implements TIterator< T >.
void first | ( | ) | [inline, virtual] |
Move to first item.
Implements TIterator< T >.
void last | ( | ) | [inline, virtual] |
Move to last item.
Implements TIterator< T >.
const TBTree< T > & tree | ( | ) | const [inline] |
Return tree reference.
void setCurrent | ( | TBTreeNode< T > * | node, | |
int32 | index2 | |||
) | [inline, protected] |