Base Framework
|
Infix order enumerator. More...
#include <base/collection/BinaryTree.h>
Inherits Enumerator< TRAITS >.
Public Member Functions | |
InfixOrderEnumerator (Pointer _node) noexcept | |
bool | hasNext () const noexcept |
Reference | next () |
![]() | |
virtual | ~Enumerator () |
Additional Inherited Members | |
![]() | |
typedef TRAITS::Value | Value |
typedef TRAITS::Distance | Distance |
typedef TRAITS::Reference | Reference |
typedef TRAITS::Pointer | Pointer |
Infix order enumerator.
Enumeration of all the elements of a binary tree traversed in infix order.
|
inlinenoexcept |
Initializes enumeration of binary tree specified by the node.
node | The root node of the binary tree. |
|
inlinevirtualnoexcept |
Returns true if there is more elements in this enumeration.
Implements Enumerator< TRAITS >.
|
inlinevirtual |
Returns the current value and increments the position. Raises EndOfEnumeration if the end has been reached.
Implements Enumerator< TRAITS >.