N-sim
Emulation and simulation of
Wireless Sensor Networks



   Home


   Project Page


   Download


   CVS



   Installation


   Configuration


   Plug-ins




 Hosted by
SourceForge.net Logo

AVL_tree< Key > Class Template Reference

#include <avl.h>

List of all members.

Public Member Functions

 AVL_tree ()
 ~AVL_tree ()
unsigned int get_size ()
unsigned long get_height ()
AVL_node< Key > * find (Comparable< Key > key)
Comparable< Key > * retrieve (Comparable< Key > key)
AVL_node< Key > * find_min ()
AVL_node< Key > * find_max ()
int insert_elt (Comparable< Key > *elt)
int delete_elt (Comparable< Key > *elt)
void print ()
void print_list ()
void defoliate ()
void burn ()


Detailed Description

template<class Key>
class AVL_tree< Key >

Definition at line 72 of file avl.h.


Constructor & Destructor Documentation

template<class Key>
AVL_tree< Key >::AVL_tree  ) 
 

Definition at line 88 of file avl.h.

template<class Key>
AVL_tree< Key >::~AVL_tree  ) 
 

Definition at line 139 of file avl.h.

References AVL_tree< Key >::delete_elt(), AVL_tree< Key >::find_min(), and min.


Member Function Documentation

template<class Key>
void AVL_tree< Key >::burn  ) 
 

Definition at line 105 of file avl.h.

Referenced by Configuration::clear(), Sensor_node::~Sensor_node(), and Source_type_tree::~Source_type_tree().

template<class Key>
void AVL_tree< Key >::defoliate  ) 
 

Definition at line 104 of file avl.h.

template<class Key>
int AVL_tree< Key >::delete_elt Comparable< Key > *  elt  ) 
 

Definition at line 444 of file avl.h.

References Comparable< Key >::key.

Referenced by AVL_tree< unsigned long >::burn(), and AVL_tree< Key >::~AVL_tree().

template<class Key>
AVL_node< Key > * AVL_tree< Key >::find Comparable< Key >  key  ) 
 

Definition at line 228 of file avl.h.

References AVL_node< Key >::element, AVL_node< Key >::left, and AVL_node< Key >::right.

Referenced by checkpoint(), and AVL_tree< Key >::retrieve().

template<class Key>
AVL_node< Key > * AVL_tree< Key >::find_max  ) 
 

Definition at line 275 of file avl.h.

References AVL_node< Key >::right.

template<class Key>
AVL_node< Key > * AVL_tree< Key >::find_min  ) 
 

Definition at line 259 of file avl.h.

References AVL_node< Key >::left.

Referenced by AVL_tree< unsigned long >::burn(), Configuration::cfg_to_xml(), AVL_tree< Key >::get_size(), Configuration::on_start_element(), AVL_tree< Key >::print_list(), Source_node_graph::Source_node_graph(), and AVL_tree< Key >::~AVL_tree().

template<class Key>
unsigned long AVL_tree< Key >::get_height  ) 
 

Definition at line 92 of file avl.h.

template<class Key>
unsigned int AVL_tree< Key >::get_size  ) 
 

Definition at line 212 of file avl.h.

References AVL_tree< Key >::find_min(), and AVL_node< Key >::next.

template<class Key>
int AVL_tree< Key >::insert_elt Comparable< Key > *  elt  ) 
 

Definition at line 352 of file avl.h.

References Comparable< Key >::key.

Referenced by Configuration::on_start_element().

template<class Key>
void AVL_tree< Key >::print  ) 
 

Definition at line 484 of file avl.h.

template<class Key>
void AVL_tree< Key >::print_list  ) 
 

Definition at line 492 of file avl.h.

References AVL_node< Key >::element, AVL_tree< Key >::find_min(), MAX_FORMAT_STRING, and AVL_node< Key >::next.

template<class Key>
Comparable< Key > * AVL_tree< Key >::retrieve Comparable< Key >  key  ) 
 

Definition at line 249 of file avl.h.

References AVL_node< Key >::element, and AVL_tree< Key >::find().

Referenced by Configuration::on_start_element().


The documentation for this class was generated from the following file:
  • /home/brennan/n-sim/OrbisQuartus/shared/avl.h


© 2007, Los Alamos National Security, LLC.