#include <List.h>
Public Types | |
| typedef _list_iterator < DataType, KeyType > | iterator |
| typedef const _list_iterator < DataType, KeyType > | const_iterator |
| typedef _list_node< DataType, KeyType > | node |
Public Member Functions | |
| ListWithKey () | |
| ListWithKey (const ListWithKey &fromList) | |
| ~ListWithKey () | |
| void | push_front (DataType &data, KeyType &key) |
| void | push_back (DataType &data, KeyType &key) |
| bool | addIfUniqueKey (DataType &data, KeyType &key) |
| bool | find_with_key (KeyType &key, DataType *saveVal) |
| bool | find_with_val (const DataType &val) const |
| bool | remove_with_key (KeyType &key) |
| bool | remove_with_val (const DataType &data) |
| DataType & | front () |
| const DataType & | front () const |
| DataType & | back () |
| void | __push_front (DataType &data, const KeyType &key) |
| void | __push_back (DataType &data, const KeyType &key) |
| bool | __addIfUniqueKey (DataType &data, const KeyType &key) |
| bool | __addIfUniqueVal (DataType &data, const KeyType &key) |
| bool | __find_with_key (const KeyType &key, DataType *saveVal) |
| bool | __find_with_val (const DataType &saveVal) const |
| bool | __remove_with_key (const KeyType &key) |
| bool | __remove_with_val (const DataType &val) |
| void | clear () |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| int | count () const |
| bool | isEmpty () |
| void | insert (iterator &, DataType &) |
| void | map (void(*map_function)(const DataType item)) |
Protected Member Functions | |
| node * | getLastNode () |
Protected Attributes | |
| node * | head |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const ListWithKey< DataType, KeyType > &data) |
Definition at line 263 of file List.h.
typedef const _list_iterator<DataType, KeyType> ListBase< DataType, KeyType >::const_iterator [inherited] |
typedef _list_iterator<DataType, KeyType> ListBase< DataType, KeyType >::iterator [inherited] |
typedef _list_node<DataType, KeyType> ListBase< DataType, KeyType >::node [inherited] |
| ListWithKey< DataType, KeyType >::ListWithKey | ( | ) | [inline] |
| ListWithKey< DataType, KeyType >::ListWithKey | ( | const ListWithKey< DataType, KeyType > & | fromList | ) | [inline] |
| ListWithKey< DataType, KeyType >::~ListWithKey | ( | ) | [inline] |
| bool ListBase< DataType, KeyType >::__addIfUniqueKey | ( | DataType & | data, | |
| const KeyType & | key | |||
| ) | [inline, inherited] |
Definition at line 167 of file List.h.
Referenced by ListWithKey< DataType, KeyType >::addIfUniqueKey().
| bool ListBase< DataType, KeyType >::__addIfUniqueVal | ( | DataType & | data, | |
| const KeyType & | key | |||
| ) | [inline, inherited] |
| bool ListBase< DataType, KeyType >::__find_with_key | ( | const KeyType & | key, | |
| DataType * | saveVal | |||
| ) | [inline, inherited] |
Definition at line 141 of file List.C.
References _list_node< DataType, KeyType >::data, ListBase< DataType, KeyType >::head, _list_node< DataType, KeyType >::key, and _list_node< DataType, KeyType >::next.
Referenced by ListBase< Type, void * >::__addIfUniqueKey(), and ListWithKey< DataType, KeyType >::find_with_key().
| bool ListBase< DataType, KeyType >::__find_with_val | ( | const DataType & | saveVal | ) | const [inline, inherited] |
Definition at line 156 of file List.C.
References _list_node< DataType, KeyType >::data, ListBase< DataType, KeyType >::head, and _list_node< DataType, KeyType >::next.
Referenced by ListBase< Type, void * >::__addIfUniqueVal(), and ListWithKey< DataType, KeyType >::find_with_val().
| void ListBase< DataType, KeyType >::__push_back | ( | DataType & | data, | |
| const KeyType & | key | |||
| ) | [inline, inherited] |
Definition at line 61 of file List.C.
References ListBase< DataType, KeyType >::getLastNode(), ListBase< DataType, KeyType >::head, ListBase< DataType, KeyType >::isEmpty(), and _list_node< DataType, KeyType >::next.
Referenced by ListWithKey< DataType, KeyType >::push_back().
| void ListBase< DataType, KeyType >::__push_front | ( | DataType & | data, | |
| const KeyType & | key | |||
| ) | [inline, inherited] |
Definition at line 52 of file List.C.
References ListBase< DataType, KeyType >::head.
Referenced by ListBase< Type, void * >::__addIfUniqueKey(), ListBase< Type, void * >::__addIfUniqueVal(), and ListWithKey< DataType, KeyType >::push_front().
| bool ListBase< DataType, KeyType >::__remove_with_key | ( | const KeyType & | key | ) | [inline, inherited] |
Definition at line 115 of file List.C.
References ListBase< DataType, KeyType >::head, _list_node< DataType, KeyType >::key, and _list_node< DataType, KeyType >::next.
Referenced by ListWithKey< DataType, KeyType >::remove_with_key().
| bool ListBase< DataType, KeyType >::__remove_with_val | ( | const DataType & | val | ) | [inline, inherited] |
Definition at line 89 of file List.C.
References _list_node< DataType, KeyType >::data, ListBase< DataType, KeyType >::head, and _list_node< DataType, KeyType >::next.
Referenced by ListWithKey< DataType, KeyType >::remove_with_val().
| bool ListWithKey< DataType, KeyType >::addIfUniqueKey | ( | DataType & | data, | |
| KeyType & | key | |||
| ) | [inline] |
Definition at line 282 of file List.h.
References ListBase< DataType, KeyType >::__addIfUniqueKey().
| DataType& ListBase< DataType, KeyType >::back | ( | ) | [inline, inherited] |
| const_iterator ListBase< DataType, KeyType >::begin | ( | ) | const [inline, inherited] |
| iterator ListBase< DataType, KeyType >::begin | ( | ) | [inline, inherited] |
Definition at line 192 of file List.h.
Referenced by ListBase< Type, void * >::front().
| void ListBase< DataType, KeyType >::clear | ( | ) | [inline, inherited] |
Definition at line 75 of file List.C.
References ListBase< DataType, KeyType >::head, and _list_node< DataType, KeyType >::next.
Referenced by ListBase< Type, void * >::~ListBase().
| int ListBase< DataType, KeyType >::count | ( | ) | const [inline, inherited] |
Definition at line 206 of file List.h.
Referenced by HTable< Type >::count(), and tunableConstant::numTunables().
| const_iterator ListBase< DataType, KeyType >::end | ( | ) | const [inline, inherited] |
| bool ListWithKey< DataType, KeyType >::find_with_key | ( | KeyType & | key, | |
| DataType * | saveVal | |||
| ) | [inline] |
Definition at line 285 of file List.h.
References ListBase< DataType, KeyType >::__find_with_key().
| bool ListWithKey< DataType, KeyType >::find_with_val | ( | const DataType & | val | ) | const [inline] |
Definition at line 288 of file List.h.
References ListBase< DataType, KeyType >::__find_with_val().
| const DataType& ListBase< DataType, KeyType >::front | ( | ) | const [inline, inherited] |
| DataType& ListBase< DataType, KeyType >::front | ( | ) | [inline, inherited] |
| DO_INLINE_F ListBase< DataType, KeyType >::node * ListBase< DataType, KeyType >::getLastNode | ( | ) | [inline, protected, inherited] |
Definition at line 39 of file List.C.
References ListBase< DataType, KeyType >::head, and _list_node< DataType, KeyType >::next.
Referenced by ListBase< DataType, KeyType >::__push_back(), and ListBase< Type, void * >::back().
| bool ListBase< DataType, KeyType >::isEmpty | ( | ) | [inline, inherited] |
Definition at line 213 of file List.h.
Referenced by ListBase< DataType, KeyType >::__push_back().
| void ListBase< DataType, KeyType >::map | ( | void(*)(const DataType item) | map_function | ) | [inline, inherited] |
| void ListWithKey< DataType, KeyType >::push_back | ( | DataType & | data, | |
| KeyType & | key | |||
| ) | [inline] |
Definition at line 279 of file List.h.
References ListBase< DataType, KeyType >::__push_back().
| void ListWithKey< DataType, KeyType >::push_front | ( | DataType & | data, | |
| KeyType & | key | |||
| ) | [inline] |
Definition at line 276 of file List.h.
References ListBase< DataType, KeyType >::__push_front().
| bool ListWithKey< DataType, KeyType >::remove_with_key | ( | KeyType & | key | ) | [inline] |
Definition at line 291 of file List.h.
References ListBase< DataType, KeyType >::__remove_with_key().
| bool ListWithKey< DataType, KeyType >::remove_with_val | ( | const DataType & | data | ) | [inline] |
Definition at line 294 of file List.h.
References ListBase< DataType, KeyType >::__remove_with_val().
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const ListWithKey< DataType, KeyType > & | data | |||
| ) | [friend] |
Reimplemented from ListBase< DataType, KeyType >.
node* ListBase< DataType, KeyType >::head [protected, inherited] |
Definition at line 230 of file List.h.
Referenced by ListBase< DataType, KeyType >::__find_with_key(), ListBase< DataType, KeyType >::__find_with_val(), ListBase< DataType, KeyType >::__push_back(), ListBase< DataType, KeyType >::__push_front(), ListBase< DataType, KeyType >::__remove_with_key(), ListBase< DataType, KeyType >::__remove_with_val(), ListBase< Type, void * >::begin(), ListBase< DataType, KeyType >::clear(), ListBase< Type, void * >::count(), ListBase< DataType, KeyType >::getLastNode(), ListBase< Type, void * >::isEmpty(), ListBase< Type, void * >::ListBase(), and ListBase< Type, void * >::map().
1.6.1