template<class type>
uint FX::QPtrVector< type >::contains ( const type *  d  )  const [inline]

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

Definition at line 267 of file qptrvector.h.

00268     {
00269         uint count=0;
00270         for(typename std::vector<type *>::const_iterator it=std::vector<type *>::begin(); it!=std::vector<type *>::end(); ++it)
00271         {
00272             if(0==compareItems(const_cast<type *>(*it), const_cast<type *>(d))) count++;
00273         }
00274         return count;
00275     }


(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