GG::ListBox::DefaultRowCmp< RowType > Struct Template Reference

sorts two Rows of a ListBox using operator<() on the Row::SortKeyType provided by the rows' SortKey() methods. More...

#include <ListBox.h>

List of all members.

Public Member Functions

bool operator() (const Row &lhs, const Row &rhs, int column) const


Detailed Description

template<class RowType>
struct GG::ListBox::DefaultRowCmp< RowType >

sorts two Rows of a ListBox using operator<() on the Row::SortKeyType provided by the rows' SortKey() methods.

If you want to use operator<() with a Row subclass DerivedRow that has a custom SortKeyType, use DefaultRowCmp<DerivedRow>.

Definition at line 356 of file ListBox.h.


Member Function Documentation

template<class RowType>
bool GG::ListBox::DefaultRowCmp< RowType >::operator() ( const Row lhs,
const Row rhs,
int  column 
) const [inline]

Returns true iff lhs.SortKey( column ) < rhs.SortKey( column ).

Definition at line 499 of file ListBox.h.


The documentation for this struct was generated from the following file:
Generated on Wed Mar 26 14:35:42 2008 for GG by  doxygen 1.5.2