Public Member Functions |
|
| | PList () |
| | Create a new, empty, list.
|
|
| virtual PObject * | Clone () const |
| | Make a complete duplicate of the list.
|
|
| T & | operator[] (PINDEX index) const |
| | Retrieve a reference to the object in the list.
|
| virtual Comparison | Compare (const PObject &obj) const |
| | Get the relative rank of the two lists.
|
| PINLINE | PAbstractList () |
| | Create a new, empty, list.
|
| virtual PBoolean | SetSize (PINDEX newSize) |
| | This function is meaningless for lists.
|
| virtual PINDEX | Append (PObject *obj) |
| | Append a new object to the collection.
|
| virtual PINDEX | Insert (const PObject &before, PObject *obj) |
| | Insert a new object immediately before the specified object.
|
| virtual PINDEX | InsertAt (PINDEX index, PObject *obj) |
| | Insert a new object at the specified ordinal index.
|
| virtual PBoolean | Remove (const PObject *obj) |
| | Remove the object from the collection.
|
| virtual PObject * | RemoveAt (PINDEX index) |
| | Remove the object at the specified ordinal index from the collection.
|
| virtual PBoolean | SetAt (PINDEX index, PObject *val) |
| | Set the object at the specified ordinal position to the new value.
|
| virtual PBoolean | ReplaceAt (PINDEX index, PObject *val) |
| | Set the object at the specified ordinal position to the new value.
|
| virtual PObject * | GetAt (PINDEX index) const |
| | Get the object at the specified ordinal position.
|
| virtual PINDEX | GetObjectsIndex (const PObject *obj) const |
| | Search the collection for the specific instance of the object.
|
| virtual PINDEX | GetValuesIndex (const PObject &obj) const |
| | Search the collection for the specified value of the object.
|
| | PCollection (PINDEX initialSize=0) |
| | Create a new collection.
|
| virtual void | PrintOn (ostream &strm) const |
| | Print the collection on the stream.
|
| virtual void | RemoveAll () |
| | Remove all of the elements in the collection.
|
| PINLINE void | AllowDeleteObjects (PBoolean yes=true) |
| | Allow or disallow the deletion of the objects contained in the collection.
|
| void | DisallowDeleteObjects () |
| | Disallow the deletion of the objects contained in the collection.
|
| | PContainer (PINDEX initialSize=0) |
| | Create a new unique container.
|
| | PContainer (const PContainer &cont) |
| | Create a new refernce to container.
|
| PContainer & | operator= (const PContainer &cont) |
| | Assign one container reference to another.
|
| virtual | ~PContainer () |
| | Destroy the container class.
|
| virtual PINDEX | GetSize () const |
| | Get the current size of the container.
|
| PBoolean | SetMinSize (PINDEX minSize) |
| | Set the minimum size of container.
|
| virtual PBoolean | IsEmpty () const |
| | Determine if the container is empty.
|
| PBoolean | IsUnique () const |
| | Determine if container is unique reference.
|
| virtual PBoolean | MakeUnique () |
| | Make this instance to be the one and only reference to the container contents.
|
| virtual | ~PObject () |
| virtual PINDEX | HashFunction () const |
| | This function yields a hash value required by the PDictionary class.
|
| virtual Comparison | CompareObjectMemoryDirect (const PObject &obj) const |
| | Determine the byte wise comparison of two objects.
|
| bool | operator== (const PObject &obj) const |
| | Compare the two objects.
|
| bool | operator!= (const PObject &obj) const |
| | Compare the two objects.
|
| bool | operator< (const PObject &obj) const |
| | Compare the two objects.
|
| bool | operator> (const PObject &obj) const |
| | Compare the two objects.
|
| bool | operator<= (const PObject &obj) const |
| | Compare the two objects.
|
| bool | operator>= (const PObject &obj) const |
| | Compare the two objects.
|
| virtual const char * | GetClass (unsigned ancestor=0) const |
| | Get the current dynamic type of the object instance.
|
| PBoolean | IsClass (const char *cls) const |
| virtual PBoolean | InternalIsDescendant (const char *clsName) const |
| | Determine if the dynamic type of the current instance is a descendent of the specified class.
|
| virtual void | ReadFrom (istream &strm) |
| | Input the contents of the object from the stream.
|
template<class T>
class PList< T >
This template class maps the PAbstractList 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_LIST macro will simulate the template instantiation.