|
Base Module
VST 3.6.6
SDK for developing VST Plug-in
|
Doubly linked template list. More...
#include <tdlist.h>
Inheritance diagram for TDLinkedList< T >:Public Member Functions | |
| TDLinkedList () | |
| TDLinkedList (const TDLinkedList< T > &) | |
| Copy constructor. More... | |
| TDLinkedList (const TContainer< T > &) | |
| Initializes with copy of the given container. More... | |
| ~TDLinkedList () | |
| TDLinkedList< T > & | operator= (const TDLinkedList< T > &) |
| virtual TContainer< T > * | newInstance () const |
| Create a copy of this container. More... | |
| virtual bool | add (const T &item) |
| Add item to end of list. More... | |
| bool | append (const T &item) |
| Same as TDLinkedList::add. More... | |
| bool | prepend (const T &item) |
| Add item to beginning of the list. More... | |
| bool | insertAt (int32 index, const T &item) |
| Insert item at the specified index. More... | |
| bool | replaceAt (int32 index, const T &item) |
| Replace item at the specified index. More... | |
| virtual bool | remove (const T &item) |
| Remove equal item. More... | |
| virtual bool | remove (const TIterator< T > &) |
| Remove equal item. (const TIterator<T>&) More... | |
| virtual bool | removeAt (int32 index) |
| Remove item at given index. More... | |
| virtual void | removeAll () |
| Remove all items from list. More... | |
| T | removeFirst () |
| Remove first item and return copy of the removed item. More... | |
| T | removeLast () |
| Remove last item and return copy of the removed item. More... | |
| bool | insertAfter (const T &after, const T &item) |
| Search for the first item equal to the specified item in the list and inserts the second item immediately after. More... | |
| bool | insertBefore (const T &before, const T &item) |
| Search for the first item equal to the specified item in the list and inserts the second item immediately before. More... | |
| T & | first () const |
| Get first item in list. More... | |
| T & | last () const |
| Get last item in list. More... | |
| int32 | index (const T &item) const |
| Get index of equal item. More... | |
| virtual T & | at (int32 index) const |
| Get item at index. More... | |
| virtual T & | lookup (const T &item) const |
| Searches for the item equal to the specified item in the list and returns the first occurrence. More... | |
| virtual bool | contains (const T &item) const |
| See if container has equal item. More... | |
| virtual int32 | occurrences (const T &item) const |
| Count occurrences of equal items. More... | |
| virtual TIterator< T > * | newIterator () const |
| Create container iterator instance. More... | |
Public Member Functions inherited from TContainer< T > | |
| TContainer () | |
| TContainer (const TContainer< T > &) | |
| virtual | ~TContainer () |
| bool | operator== (const TContainer< T > &) const |
| bool | operator!= (const TContainer< T > &) const |
| T & | operator[] (int32) const |
| "[]" indexing operator returns the item at the specified index. More... | |
| virtual int32 | total () const |
| Return number of items. More... | |
| virtual bool | isEmpty () const |
| Is container empty? More... | |
| virtual int32 | size () const |
| Returns the container size. More... | |
| TContainer< T > * | lookupAll (const T &item) const |
| Allocate and returns a container with all items in this container equal to the specified item. More... | |
| bool | addAllFrom (const TContainer< T > &container) |
| Adds all the items from the specified container to this container. More... | |
| bool | addNewFrom (const TContainer< T > &container) |
| Adds the items from the specified container to this container that are not in this container already. More... | |
| T & | error () const |
| Access error object. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from TContainer< T > | |
| void | copy (const TContainer< T > &container) |
| Internal copy method. Copies the contents of the specified container into this container. More... | |
Protected Attributes inherited from TContainer< T > | |
| T | errorObject |
| Object used as return value when methods returning a T& fail. More... | |
| int32 | _size |
| Container size. More... | |
Doubly linked template list.
|
inline |
| TDLinkedList | ( | const TDLinkedList< T > & | l | ) |
Copy constructor.
| TDLinkedList | ( | const TContainer< T > & | cont | ) |
Initializes with copy of the given container.
| ~TDLinkedList | ( | ) |
| TDLinkedList< T > & operator= | ( | const TDLinkedList< T > & | l | ) |
|
virtual |
Create a copy of this container.
Implements TContainer< T >.
|
virtual |
Add item to end of list.
Implements TContainer< T >.
| bool append | ( | const T & | item | ) |
Same as TDLinkedList::add.
| bool prepend | ( | const T & | item | ) |
Add item to beginning of the list.
| bool insertAt | ( | int32 | index, |
| const T & | item | ||
| ) |
Insert item at the specified index.
| bool replaceAt | ( | int32 | index, |
| const T & | item | ||
| ) |
Replace item at the specified index.
|
virtual |
Remove equal item.
Implements TContainer< T >.
|
virtual |
|
virtual |
Remove item at given index.
Implements TContainer< T >.
|
virtual |
Remove all items from list.
Implements TContainer< T >.
| T removeFirst | ( | ) |
Remove first item and return copy of the removed item.
| T removeLast | ( | ) |
Remove last item and return copy of the removed item.
| bool insertAfter | ( | const T & | after, |
| const T & | item | ||
| ) |
Search for the first item equal to the specified item in the list and inserts the second item immediately after.
| bool insertBefore | ( | const T & | before, |
| const T & | item | ||
| ) |
Search for the first item equal to the specified item in the list and inserts the second item immediately before.
| T & first | ( | ) | const |
Get first item in list.
| T & last | ( | ) | const |
Get last item in list.
| int32 index | ( | const T & | item | ) | const |
Get index of equal item.
|
virtual |
Get item at index.
Reimplemented from TContainer< T >.
|
virtual |
Searches for the item equal to the specified item in the list and returns the first occurrence.
Reimplemented from TContainer< T >.
|
virtual |
See if container has equal item.
Reimplemented from TContainer< T >.
|
virtual |
Count occurrences of equal items.
Reimplemented from TContainer< T >.
|
virtual |
Create container iterator instance.
Implements TContainer< T >.