#include <mi32/obslist.h>
Public Member Functions | |
| CONST_ITERATOR | Begin () const |
| ITERATOR | Begin () |
| void | Clear () |
| CONST_ITERATOR | End () const |
| ITERATOR | End () |
| _LIT & | GetBack () |
| const _LIT & | GetBack () const |
| _LIT & | GetFront () |
| const _LIT & | GetFront () const |
| INT32 | GetNumItems () const |
| _LIT & | Insert (ITERATOR p, const _LIT &item) |
| bool | IsEmpty () const |
| void | Lower (ITERATOR it) |
| void | MoveToBack (ITERATOR it) |
| void | MoveToFront (ITERATOR it) |
| void | NotifyChanged (const _LIT &item) |
| OBSERVABLE_LIST (const OBSERVABLE_LIST< _LIT > &rhs) | |
| OBSERVABLE_LIST () | |
| OBSERVABLE_LIST< _LIT > & | operator= (const OBSERVABLE_LIST< _LIT > &rhs) |
| void | PopBack () |
| void | PopFront () |
| _LIT & | PushBack (const _LIT &item) |
| _LIT & | PushFront (const _LIT &item) |
| void | Raise (ITERATOR it) |
| void | Remove (ITERATOR start, ITERATOR end) |
| void | Remove (ITERATOR it, bool notify=true) |
| void | Remove (const _LIT &item) |
| void | RemoveDuplicates () |
| void | RemovePos (int pos) |
| void | Sort (bool(*PredFunc)(const _LIT &lhs, const _LIT &rhs)) |
| void | Sort () |
| ~OBSERVABLE_LIST () | |
An observer is defined by inheriting from OBSERVABLE_LIST<type>::OBSERVER and overriding the desired virtual methods. Each list may have as many OBSERVERs as desired, however, a particular OBSERVER may only be associated with one list at a time. Notification when items are added, removed, reordered or sorted is automatic. However, if an item is changed (through a non-const reference) then notification is the responsibility of the programmer. NotifyChanged() should be called after the change is made so that all observers are notified of the change.
Definition at line 62 of file obslist.h.
|
|||||||||
|
Construct empty list. Deliberate MmAllocC instead of new |
|
||||||||||
|
Copy constructor, copies list items, not observers. Deliberate MmAllocC instead of new |
|
|||||||||
|
Destructor.
|
|
|||||||||
|
Return a CONST_ITERATOR that refers to the beginning of the list.
|
|
|||||||||
|
Return an ITERATOR that refers to the beginning of the list.
|
|
|||||||||
|
Remove all entries from the list.
|
|
|||||||||
|
Return a CONST_ITERATOR that refers to the end of the list, not a valid list item.
|
|
|||||||||
|
Return an ITERATOR that refers to the end of the list, not a valid list item.
|
|
|||||||||
|
Return a reference to a _LIT item from the front of the list.
|
|
|||||||||
|
Return a reference to a const _LIT item from the front of the list.
|
|
|||||||||
|
Return a reference to a _LIT item from the front of the list.
|
|
|||||||||
|
Return a reference to a const _LIT item from the front of the list.
|
|
|||||||||
|
Return the number of items in the list.
|
|
||||||||||||||||
|
Insert an item into the place BEFORE the iterator.
|
|
|||||||||
|
Determine if any list entries exist.
|
|
||||||||||
|
Moves the item referenced by the iterator toward the beginning of the list.
|
|
||||||||||
|
Moves the item referenced by the iterator to the back of the list.
|
|
||||||||||
|
Moves the item referenced by the iterator to the front of the list.
|
|
||||||||||
|
Notify all list observers that a change has been made to the specified item. There is no verification that the item is actually in the list. |
|
||||||||||
|
Assignment operator, copies list items, not observers.
|
|
|||||||||
|
Remove the last item from the list.
|
|
|||||||||
|
Remove an item from the beginning of the list.
|
|
||||||||||
|
Insert an item on the end of the list.
|
|
||||||||||
|
Insert an item at the beginning of the list.
|
|
||||||||||
|
Moves the item referenced by the iterator toward the end of the list.
|
|
||||||||||||||||
|
Remove a range of items from the list.
|
|
||||||||||||||||
|
Remove item specified by ITERATOR from the list. Do not use the specified iterator after using this method as it will be invalid. |
|
||||||||||
|
Remove item specified by reference from the list.
|
|
|||||||||
|
Remove duplicate entries.
|
|
||||||||||
|
Remove item at specified position.
|
|
||||||||||
|
Sort the list in operator< () order.
|
|
|||||||||
|
Sort the list in operator< () order.
|
1.3.8-20040913