Public Member Functions | |
| StringAndFreqCmpByFreq () | |
| Default constructor. | |
| bool | operator() (const StringAndFrequency &a, const StringAndFrequency &b) const |
| Return true if a has a higher frequency than b. | |
The comparison is firstly by frequency (higher is better), then by string (earlier lexicographic sort is better).
Definition at line 170 of file matchspy.cc.
| StringAndFreqCmpByFreq::StringAndFreqCmpByFreq | ( | ) | [inline] |
| bool StringAndFreqCmpByFreq::operator() | ( | const StringAndFrequency & | a, | |
| const StringAndFrequency & | b | |||
| ) | const [inline] |
Return true if a has a higher frequency than b.
If equal, compare by the str, to provide a stable sort order.
Definition at line 177 of file matchspy.cc.
References StringAndFrequency::get_frequency(), and StringAndFrequency::get_string().