Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

virtual PINDEX PCollection::GetValuesIndex ( const PObject obj  )  const [pure virtual, inherited]

Search the collection for the specified value of the object. The object values are compared, not the pointers. So the objects in the collection must correctly implement the PObject::Compare()# function. The fastest search algorithm is employed depending on the collection type.

Returns:
ordinal index position of the object, or P_MAX_INDEX.
Parameters:
obj  Object to search for.

Implemented in PArrayObjects, PAbstractSet, PAbstractDictionary, PAbstractList, and PAbstractSortedList.

Referenced by PSafeColl< PArray< Base >, Base >::FindWithLock().


Generated by  Doxygen 1.6.0   Back to index