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

Returns the index of the position of item d via pointer compare, or -1 if not found.

Definition at line 276 of file qptrlist.h.

00277     {
00278         int idx=0;
00279         for(typename Base::iterator it=Base::begin(); it!=Base::end(); ++it, ++idx)
00280         {
00281             if(*it==d) return idx;
00282         }
00283         return -1;
00284     }


(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