#include <lists.h>
Inheritance diagram for PList< T >:
Iterators | |
typedef T | value_type |
iterator | begin () |
iterator | end () |
iterator | rbegin () |
iterator | rend () |
const_iterator | begin () const |
const_iterator | end () const |
const_iterator | rbegin () const |
const_iterator | rend () const |
T & | front () const |
T & | back () const |
void | erase (const iterator &it) |
void | erase (const const_iterator &it) |
Public Member Functions | |
Overrides from class PObject | |
virtual PObject * | Clone () const |
New functions for class | |
T & | operator[] (PINDEX index) const |
Protected Member Functions | |
PList (int dummy, const PList *c) | |
Classes | |
class | const_iterator |
class | iterator |
class | iterator_base |
Note that if templates are not used the PDECLARE_LIST# macro will simulate the template instantiation.
typedef T PList< T >::value_type |
Create a new, empty, list.
Note that by default, objects placed into the list will be deleted when removed or when all references to the list are destroyed.
Create a new, empty, list.
Note that by default, objects placed into the list will be deleted when removed or when all references to the list are destroyed.
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.
Reimplemented from PObject.
const_iterator PList< T >::begin | ( | ) | const [inline] |
const_iterator PList< T >::end | ( | ) | const [inline] |
const_iterator PList< T >::rbegin | ( | ) | const [inline] |
const_iterator PList< T >::rend | ( | ) | const [inline] |
T& PList< T >::front | ( | ) | const [inline] |
T& PList< T >::back | ( | ) | const [inline] |
void PList< T >::erase | ( | const const_iterator & | it | ) | [inline] |
T& PList< T >::operator[] | ( | PINDEX | index | ) | const [inline] |
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. Access to elements one either side of that saved element, and the head and tail of the list, will always be fast.