Public Member Functions | Public Attributes

MyTools::KeyComparator Class Reference

List of all members.

Public Member Functions

 KeyComparator (const string &key)
 constructor
bool operator() (pair< string, string > const &key_val) const
 comparator function

Public Attributes

string key

Detailed Description

class used to search a given message key


Constructor & Destructor Documentation

MyTools::KeyComparator::KeyComparator ( const string &  key  )  [inline]

constructor

Parameters:
key the key to search for

Member Function Documentation

bool MyTools::KeyComparator::operator() ( pair< string, string > const &  key_val  )  const [inline]

comparator function

Parameters:
key_val a (key, value) pair
Returns:
true if the key of key_val is equal to the searched key

References key.


Member Data Documentation

the key to search for

Referenced by operator()().


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