proj home

Files   Classes   Functions   Hierarchy  

stringpair< T > Class Template Reference

Combine a string and another data type. Used to look up on the id, and modify on the data. More...

#include <stringpairhash.h>

Collaboration diagram for stringpair< T >:

List of all members.

Public Member Functions

boolc operator== (stringpair const &x) const
 Support for remove in hashtable.
 stringpair (stringc &id_, T const &data_)
 Constructor.

Public Attributes

string id
 Hash string.
T data
 Variable.


Detailed Description

template<typename T>
class stringpair< T >

Combine a string and another data type. Used to look up on the id, and modify on the data.

Definition at line 12 of file stringpairhash.h.


Constructor & Destructor Documentation

template<typename T>
stringpair< T >::stringpair ( stringc id_,
T const &  data_ 
) [inline]

Constructor.

Definition at line 26 of file stringpairhash.h.

00027     : id(id_), data(data_) {}


Member Function Documentation

template<typename T>
boolc stringpair< T >::operator== ( stringpair< T > const &  x  )  const [inline]

Support for remove in hashtable.

Definition at line 22 of file stringpairhash.h.

References stringpair< T >::id.

00023     { return id == x.id; }


Member Data Documentation

template<typename T>
T stringpair< T >::data

Variable.

Definition at line 19 of file stringpairhash.h.

Referenced by cfcontainerhash::operator[]().

template<typename T>
string stringpair< T >::id

Hash string.

Definition at line 17 of file stringpairhash.h.

Referenced by stringpairhash< T >::operator()(), and stringpair< T >::operator==().


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

Generated on Fri Mar 4 00:50:18 2011 for Chelton Evans Source by  doxygen 1.5.8