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

PINLINE PObject & PAbstractList::GetReferenceAt ( PINDEX  index ) const [protected]

Get the object at the specified ordinal position. If the index was greater than the size of the collection then this asserts.

The object accessed in this way is remembered by the class and further access will be fast. Access to elements one either side of that saved element, and the head and tail of the list, will always be fast.

reference to object at the specified index.
indexOrdinal index of the list element to set as current.

Definition at line 444 of file contain.inl.

References GetAt().

  { PObject * obj = GetAt(index);
                       PAssert(obj != NULL, PInvalidArrayIndex); return *obj; }

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index