template<class type, class allocator>
virtual int FX::QPtrList< type, allocator >::compareItems ( type *  a,
type *  b 
) const [inline, virtual, inherited]

Compares two items (used by many methods above). Default returns -1 if a < b, +1 if a > b and 0 if a==b.

Reimplemented in FX::QSortedList< type, allocator >.

Definition at line 328 of file qptrlist.h.

Referenced by FX::QPtrList< type, allocator >::contains(), FX::QPtrList< type, allocator >::find(), FX::QPtrList< type, allocator >::inSort(), FX::QPtrList< type, allocator >::remove(), and FX::QPtrList< type, allocator >::take().

00328 { return (a<b) ? -1 : (a==b) ? 0 : -1; }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:43 2009 for TnFOX by doxygen v1.4.7