|
|
MribLookup (MribLookup *parent)
| MribLookup |
Constructor for a given parent entry.
Parameters:
parent | the parent entry. |
~MribLookup ()
| ~MribLookup |
Mrib * mrib ()
| mrib |
[const]
Get the corresponding Mrib entry.
Returns: the corresponding Mrib entry if exists, otherwise NULL.
void set_mrib (Mrib *v)
| set_mrib |
Set the corresponding Mrib entry.
Note that the previous value of the corresponding Mrib entry is overwritten.
Parameters:
v | the value of the corresponding Mrib entry. |
MribLookup * parent ()
| parent |
Get the parent MribLookup entry.
Returns: the parent MribLookup entry.
void set_parent (MribLookup *v)
| set_parent |
Set the parent MribLookup entry.
Note that the previous value of the parent is overwritten.
Parameters:
v | the parent MribLookup to assign to this entry. |
MribLookup * left_child ()
| left_child |
Get the left child MribLookup entry.
Note that the previous value of the left child is overwritten.
Returns: the left child MribLookup entry.
void set_left_child (MribLookup *v)
| set_left_child |
Set the left child MribLookup entry.
Parameters:
v | the left child MribLookup to assign to this entry. |
MribLookup * right_child ()
| right_child |
Get the right child MribLookup entry.
Returns: the right child MribLookup entry.
void set_right_child (MribLookup *v)
| set_right_child |
Set the right child MribLookup entry.
Note that the previous value of the right child is overwritten.
Parameters:
v | the right child MribLookup to assign to this entry. |
MribLookup * get_next ()
| get_next |
[const]
Get the next MribLookup entry.
The ordering of the entries is "depth-first search", where the nodes are returned in the following order: (a) the parent node; (b) the left-child node and all nodes within its subtree; (c) the right-child node and all nodes within its subtree;
Returns: the next MribLookup entry if exists, otherwise NULL.