Logo Search packages:      
Sourcecode: pwlib version File versions

void PCollection::RemoveAll (  )  [virtual, inherited]

Remove all of the elements in the collection. This operates by continually calling RemoveAt()# until there are no objects left.

The objects are removed from the last, at index #(GetSize()-1)# toward the first at index zero.

Reimplemented in PArrayObjects, and PAbstractSortedList.

Definition at line 299 of file collect.cxx.

References PContainer::GetSize(), and PCollection::RemoveAt().

{
  while (GetSize() > 0)
    RemoveAt(0);
}


Generated by  Doxygen 1.6.0   Back to index