template<class T> class PSortedList: public PAbstractSortedList

This template class maps the PAbstractSortedList to a specific object type.

Inheritance:


Public

[more] Construction
[more] Overrides from class PObject
[more] New functions for class


Inherited from PAbstractSortedList:

Public

Overrides from class PContainer

Overrides from class PCollection


Inherited from PCollection:

Public

Common functions for collections


Inherited from PContainer:

Public

Common functions for containers

Protected Methods

ovirtual void DestroyContents()
ovirtual void AssignContents(const PContainer & c)
ovoid CopyContents(const PContainer & c)
ovoid CloneContents(const PContainer * src)
ovoid Destruct()


Inherited from PObject:

Public

Run Time Type functions

Comparison functions

I/O functions

Miscellaneous functions


Documentation

This template class maps the PAbstractSortedList to a specific object type. The functions in this class primarily do all the appropriate casting of types.

Note that if templates are not used the PDECLARE_SORTED_LIST macro will simulate the template instantiation.

o Construction

o PSortedList()
Create a new, empty, sorted list.

Note that by default, objects placed into the list will be deleted when removed or when all references to the list are destroyed.

o Overrides from class PObject

ovirtual PObject* Clone() const
Make a complete duplicate of the list. Note that all objects in the array are also cloned, so this will make a complete copy of the list.

o New functions for class

oT& operator[](PINDEX index) const
Retrieve a reference to the object in the list. If there was not an object at that ordinal position or the index was beyond the size of the array then the function asserts.

The object accessed in this way is remembered by the class and further access will be fast.

Returns:
reference to the object at


Direct child classes:
PSortedStringList

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.