itunesdb::TrackComparators::ReverseComparator Class Reference

#include <track.h>

List of all members.

Public Member Functions

 ReverseComparator (const TrackComparatorPtr &comparator)
virtual int compare (const itunesdb::Track &track1, const itunesdb::Track &track2) const


Detailed Description

Reverses the sort order of the given comparator.


Constructor & Destructor Documentation

itunesdb::TrackComparators::ReverseComparator::ReverseComparator ( const TrackComparatorPtr &  comparator  )  [inline]

Constructs a comparator reversing the sort order of the given comparator.


Member Function Documentation

virtual int itunesdb::TrackComparators::ReverseComparator::compare ( const itunesdb::Track track1,
const itunesdb::Track track2 
) const [inline, virtual]

Compares the two given tracks in reverse to the delegating comparator

Parameters:
track1 the first track to be compared to the second
track2 the second track to be compared
Returns:
the reverse of the result of the delegate


The documentation for this class was generated from the following file:
Generated on Wed Dec 19 00:15:20 2007 for libqtpod by  doxygen 1.5.0