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

Returns the index of the position of item d via compareItems(), or -1 if not found.

Definition at line 247 of file qptrvector.h.

00248     {
00249         int idx=0;
00250         for(typename std::vector<type *>::iterator it=std::vector<type *>::begin(); it!=std::vector<type *>::end(); ++it, ++idx)
00251         {
00252             if(0==compareItems(*it, const_cast<type *>(d))) return idx;
00253         }
00254         return -1;
00255     }


(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