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

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.

index of the newly added object.
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