L4Re Operating System Framework
Interface and Usage Documentation
|
The direction to go in a binary search tree. More...
#include <bst_base.h>
Public Types | |
enum | Direction_e { L = 0 , R = 1 , N = 2 } |
The literal direction values. More... | |
Public Member Functions | |
Direction ()=default | |
Uninitialized direction. | |
Direction (Direction_e d) | |
Convert a literal direction (L, R, N) to an object. | |
Direction (bool b) | |
Convert a boolean to a direction (false == L, true == R) | |
Direction | operator! () const |
Negate the direction. | |
Comparison operators (equality and inequality) | |
bool | operator== (Direction_e o) const |
Compare for equality. | |
bool | operator!= (Direction_e o) const |
Compare for inequality. | |
bool | operator== (Direction o) const |
Compare for equality. | |
bool | operator!= (Direction o) const |
Compare for inequality. | |
The direction to go in a binary search tree.
Definition at line 39 of file bst_base.h.
The literal direction values.
Enumerator | |
---|---|
L | Go to the left child. |
R | Go to the right child. |
N | Stop. |
Definition at line 42 of file bst_base.h.
|
inline |
Negate the direction.
Definition at line 63 of file bst_base.h.
References Direction().