template<class type, class allocator>
uint FX::QPtrList< type, allocator >::contains ( const type *  d  )  const [inline, inherited]

Returns the number of item d in the list via compareItems().

Definition at line 286 of file qptrlist.h.

References FX::QPtrList< type, allocator >::compareItems(), and FX::QPtrList< type, allocator >::count().

00287     {
00288         uint count=0;
00289         for(typename Base::iterator it=Base::begin(); it!=Base::end(); ++it)
00290         {
00291             if(0==compareItems(*it, d)) count++;
00292         }
00293         return count;
00294     }


(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