generic comparator that gets it's real functionality in derived classes via comapre callbakc func that performs the actual comparison of two items More...
#include <customvirtlistctrl.h>

Public Types | |
| typedef ObjImp | ObjType |
| typedef int(ListCtrlImp::* | CmpFunc )(ObjType u1, ObjType u2, int, int) const |
Public Member Functions | |
| ItemComparator (const BaseType *listctrl, SortOrder &order, CmpFunc func, const unsigned int num_criteria=3) | |
| bool | operator() (ObjType u1, ObjType u2) const |
Data Fields | |
| SortOrder & | m_order |
| CmpFunc | m_cmp_func |
| const unsigned int | m_num_criteria |
| const BaseType * | m_listctrl |
generic comparator that gets it's real functionality in derived classes via comapre callbakc func that performs the actual comparison of two items
Definition at line 158 of file customvirtlistctrl.h.
| typedef int(ListCtrlImp::* CustomVirtListCtrl< DataImp, ListCtrlImp >::ItemComparator< ObjImp >::CmpFunc)(ObjType u1, ObjType u2, int, int) const |
Definition at line 162 of file customvirtlistctrl.h.
| typedef ObjImp CustomVirtListCtrl< DataImp, ListCtrlImp >::ItemComparator< ObjImp >::ObjType |
Definition at line 160 of file customvirtlistctrl.h.
| CustomVirtListCtrl< DataImp, ListCtrlImp >::ItemComparator< ObjImp >::ItemComparator | ( | const BaseType * | listctrl, | |
| SortOrder & | order, | |||
| CmpFunc | func, | |||
| const unsigned int | num_criteria = 3 | |||
| ) | [inline] |
| order | SortOrder map that defines which columns should be sorted in what directions | |
| func | the comparison callback func. Should return -1,0,1 for less,equal,greater | |
| num_criteria | set to 1,2 to limit sub-ordering |
Definition at line 172 of file customvirtlistctrl.h.
| bool CustomVirtListCtrl< DataImp, ListCtrlImp >::ItemComparator< ObjImp >::operator() | ( | ObjType | u1, | |
| ObjType | u2 | |||
| ) | const [inline] |
Definition at line 179 of file customvirtlistctrl.h.
| CmpFunc CustomVirtListCtrl< DataImp, ListCtrlImp >::ItemComparator< ObjImp >::m_cmp_func |
Definition at line 163 of file customvirtlistctrl.h.
| const BaseType* CustomVirtListCtrl< DataImp, ListCtrlImp >::ItemComparator< ObjImp >::m_listctrl |
Definition at line 165 of file customvirtlistctrl.h.
| const unsigned int CustomVirtListCtrl< DataImp, ListCtrlImp >::ItemComparator< ObjImp >::m_num_criteria |
Definition at line 164 of file customvirtlistctrl.h.
| SortOrder& CustomVirtListCtrl< DataImp, ListCtrlImp >::ItemComparator< ObjImp >::m_order |
Definition at line 161 of file customvirtlistctrl.h.
1.6.3