Logo Search packages:      
Sourcecode: pwlib version File versions

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

Append a new object to the collection.

The exact semantics depends on the specific type of the collection. So the function may not place the object at the "end" of the collection at all. For example, in a PSortedList# the object is placed in the correct ordinal position in the list.

Returns:
index of the newly added object.
Parameters:
obj  New object to place into the collection.

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

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


Generated by  Doxygen 1.6.0   Back to index