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

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

Definition at line 257 of file qptrvector.h.

00258     {
00259         int idx=0;
00260         for(typename std::vector<type *>::iterator it=std::vector<type *>::begin(); it!=std::vector<type *>::end(); ++it, ++idx)
00261         {
00262             if(*it==d) return idx;
00263         }
00264         return -1;
00265     }


(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