C4GUI::SortCompareElements Class Reference

Public Member Functions

 SortCompareElements (ListBox::SortFunction SortFunc, void *par)
int operator() (const Element *pEl1, const Element *pEl2)

Detailed Description

Definition at line 623 of file C4GuiListBox.cpp.

Constructor & Destructor Documentation

◆ SortCompareElements()

C4GUI::SortCompareElements::SortCompareElements ( ListBox::SortFunction  SortFunc,
void *  par 

Definition at line 629 of file C4GuiListBox.cpp.

629 : par(par), SortFunc(SortFunc) {}

Member Function Documentation

◆ operator()()

int C4GUI::SortCompareElements::operator() ( const Element pEl1,
const Element pEl2 

Definition at line 631 of file C4GuiListBox.cpp.

632  { return (*SortFunc)(pEl1, pEl2, par)>0; }

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