N-sim
Emulation and simulation of
Wireless Sensor Networks



   Home


   Project Page


   Download


   CVS



   Installation


   Configuration


   Plug-ins




 Hosted by
SourceForge.net Logo

Comparable< Key > Class Template Reference

#include <comparable.h>

List of all members.

Public Member Functions

 Comparable (Key k)
virtual ~Comparable ()
Key key_value () const
bool operator== (Comparable< Key > other)
bool operator< (Comparable< Key > other)
bool operator> (Comparable< Key > other)
bool operator<= (Comparable< Key > other)
bool operator>= (Comparable< Key > other)

Protected Member Functions

virtual const char * key_format_string ()

Protected Attributes

Key key

Friends

class AVL_tree< Key >


Detailed Description

template<class Key>
class Comparable< Key >

Definition at line 47 of file comparable.h.


Constructor & Destructor Documentation

template<class Key>
Comparable< Key >::Comparable Key  k  ) 
 

Definition at line 56 of file comparable.h.

template<class Key>
virtual Comparable< Key >::~Comparable  )  [virtual]
 

Definition at line 58 of file comparable.h.


Member Function Documentation

template<class Key>
virtual const char* Comparable< Key >::key_format_string  )  [protected, virtual]
 

Reimplemented in Environ_object.

Definition at line 51 of file comparable.h.

template<class Key>
Key Comparable< Key >::key_value  )  const
 

Definition at line 60 of file comparable.h.

Referenced by Comparable< VT_timestamp >::operator==(), Comparable< VT_timestamp >::operator>(), and Comparable< VT_timestamp >::operator>=().

template<class Key>
bool Comparable< Key >::operator< Comparable< Key >  other  ) 
 

Definition at line 67 of file comparable.h.

template<class Key>
bool Comparable< Key >::operator<= Comparable< Key >  other  ) 
 

Definition at line 75 of file comparable.h.

template<class Key>
bool Comparable< Key >::operator== Comparable< Key >  other  ) 
 

Definition at line 63 of file comparable.h.

template<class Key>
bool Comparable< Key >::operator> Comparable< Key >  other  ) 
 

Definition at line 71 of file comparable.h.

template<class Key>
bool Comparable< Key >::operator>= Comparable< Key >  other  ) 
 

Definition at line 79 of file comparable.h.


Friends And Related Function Documentation

template<class Key>
friend class AVL_tree< Key > [friend]
 

Definition at line 51 of file comparable.h.


Member Data Documentation

template<class Key>
Key Comparable< Key >::key [protected]
 

Definition at line 49 of file comparable.h.

Referenced by AVL_tree< Key >::delete_elt(), AVL_tree< Key >::insert_elt(), Comparable< VT_timestamp >::key_value(), and Comparable< VT_timestamp >::operator==().


The documentation for this class was generated from the following file:


© 2007, Los Alamos National Security, LLC.