xorp

MribLookup Class Reference

The basic entry in the MribTable lookup tree. More...

#include <mrib_table.hh>

List of all members.

Public Member Functions

 MribLookup (MribLookup *parent)
 Constructor for a given parent entry.
 ~MribLookup ()
 Destructor.
Mribmrib () const
 Get the corresponding Mrib entry.
void set_mrib (Mrib *v)
 Set the corresponding Mrib entry.
MribLookupparent ()
 Get the parent MribLookup entry.
void set_parent (MribLookup *v)
 Set the parent MribLookup entry.
MribLookupleft_child ()
 Get the left child MribLookup entry.
void set_left_child (MribLookup *v)
 Set the left child MribLookup entry.
MribLookupright_child ()
 Get the right child MribLookup entry.
void set_right_child (MribLookup *v)
 Set the right child MribLookup entry.
MribLookupget_next () const
 Get the next MribLookup entry.

Private Attributes

MribLookup_parent
MribLookup_left_child
MribLookup_right_child
Mrib_mrib

Detailed Description

The basic entry in the MribTable lookup tree.


Constructor & Destructor Documentation

MribLookup::MribLookup ( MribLookup parent) [inline]

Constructor for a given parent entry.

Parameters:
parentthe parent entry.

Member Function Documentation

MribLookup * MribLookup::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.
MribLookup* MribLookup::left_child ( ) [inline]

Get the left child MribLookup entry.

Note that the previous value of the left child is overwritten.

Returns:
the left child MribLookup entry.
Mrib* MribLookup::mrib ( ) const [inline]

Get the corresponding Mrib entry.

Returns:
the corresponding Mrib entry if exists, otherwise NULL.
MribLookup* MribLookup::parent ( ) [inline]

Get the parent MribLookup entry.

Returns:
the parent MribLookup entry.
MribLookup* MribLookup::right_child ( ) [inline]

Get the right child MribLookup entry.

Returns:
the right child MribLookup entry.
void MribLookup::set_left_child ( MribLookup v) [inline]

Set the left child MribLookup entry.

Parameters:
vthe left child MribLookup to assign to this entry.
void MribLookup::set_mrib ( Mrib v) [inline]

Set the corresponding Mrib entry.

Note that the previous value of the corresponding Mrib entry is overwritten.

Parameters:
vthe value of the corresponding Mrib entry.
void MribLookup::set_parent ( MribLookup v) [inline]

Set the parent MribLookup entry.

Note that the previous value of the parent is overwritten.

Parameters:
vthe parent MribLookup to assign to this entry.
void MribLookup::set_right_child ( MribLookup v) [inline]

Set the right child MribLookup entry.

Note that the previous value of the right child is overwritten.

Parameters:
vthe right child MribLookup to assign to this entry.

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations