match< T > Class Template Reference

#include <match.h>

List of all members.

Public Member Functions

void set_match (int m)
bool operator< (const match &elem) const
int get_match () const
match< T > & add (const T &elm)
const T & get_elm () const

Private Attributes

elm
int mtch

template<class T>
class match< T >


Member Function Documentation

template<class T>
match< T > & match< T >::add const T &  elm  ) 
 

Copies elm to the current object.

Parameters:
elm,: A reference to a T object.
Returns:
A reference to the current object.

template<class T>
const T & match< T >::get_elm  )  const
 

Returns a reference to the stored T object.

Returns:
A reference to the T object.

template<class T>
int match< T >::get_match  )  const
 

Returns the mapping index.

Returns:
int: The mapping index.

template<class T>
bool match< T >::operator< const match< T > &  elem  )  const
 

Operator < . Compares between this and elem.

Parameters:
elem,: const match& (The comparative match object).
Returns:
bool: true if (*this)<elem, false otherwise.

template<class T>
void match< T >::set_match int  m  ) 
 

Sets the index of the mapping element.

Parameters:
m,: An integer defining an index.


Member Data Documentation

template<class T>
T match< T >::elm [private]
 

The element held by match class.

template<class T>
int match< T >::mtch [private]
 

An index used for mapping elm to another T element held in an indexed data structure (see kisses.h).


The documentation for this class was generated from the following file:
Generated on Tue May 9 18:43:46 2006 for PrePro by  doxygen 1.4.6-NO