#include <keylist.h>
Public Member Functions | |
| KeyList () | |
| KeyList (const KeyList< Type > &from) | |
| ~KeyList () | |
| KYL_BOOL | destroy () |
| KYL_BOOL | remove (void *key) |
| int | empty () const |
| int | count () const |
| KYL_BOOL | inList (const void *key) |
| void | reverse () |
| KYL_BOOL | append (const Type &data, const void *key) |
| KYL_BOOL | prepend (const Type &data, const void *key) |
| KYL_BOOL | appendUnique (const Type &i3, const void *key) |
| KYL_BOOL | prependUnique (const Type &i3, const void *key) |
| KeyList< Type > & | operator+= (const KeyList< Type > &mergee) |
| KeyList< Type > & | operator= (const KeyList< Type > &from) |
| void | map (void(*map_function)(const Type &item)) const |
| Type | car (KYL_BOOL &valid) |
| KeyList< Type > | cdr () |
| void | modify (Type(*mod_func)(Type &input)) |
| Type | find (const void *key, KYL_BOOL &found, const int removeMe=0) |
Protected Member Functions | |
| KeyListItem< Type > * | last () |
Protected Attributes | |
| KeyListItem< Type > * | head |
Definition at line 110 of file keylist.h.
Definition at line 112 of file keylist.h.
References KeyList< Type >::head.
Definition at line 170 of file keylist.h.
References KeyListItem< Type >::data, KeyList< Type >::head, KeyListItem< Type >::key, KeyList< Type >::prepend(), and KeyList< Type >::reverse().
Definition at line 114 of file keylist.h.
References KeyList< Type >::destroy().
| KYL_BOOL KeyList< Type >::append | ( | const Type & | data, | |
| const void * | key | |||
| ) | [inline] |
Definition at line 310 of file keylist.h.
References KeyList< Type >::head, KYL_FALSE, KYL_TRUE, KeyList< Type >::last(), and KeyListItem< Type >::next.
Referenced by KeyList< Type >::appendUnique(), and KeyList< Type >::operator+=().
| KYL_BOOL KeyList< Type >::appendUnique | ( | const Type & | i3, | |
| const void * | key | |||
| ) | [inline] |
Definition at line 281 of file keylist.h.
References KeyList< Type >::append(), KeyListItem< Type >::data, KeyList< Type >::head, KeyListItem< Type >::key, KYL_TRUE, and KeyListItem< Type >::next.
Definition at line 368 of file keylist.h.
References KeyListItem< Type >::data, KeyList< Type >::head, KYL_FALSE, and KYL_TRUE.
Referenced by KeyList< Type >::cdr().
Definition at line 388 of file keylist.h.
References KeyList< Type >::car().
| int KeyList< Type >::count | ( | ) | const [inline] |
Definition at line 193 of file keylist.h.
References KeyList< Type >::head, and KeyListItem< Type >::next.
Definition at line 203 of file keylist.h.
References KeyList< Type >::head, KYL_TRUE, and KeyListItem< Type >::next.
Referenced by KeyList< Type >::operator=(), and KeyList< Type >::~KeyList().
| int KeyList< Type >::empty | ( | ) | const [inline] |
Definition at line 123 of file keylist.h.
References KeyList< Type >::head.
| Type KeyList< Type >::find | ( | const void * | key, | |
| KYL_BOOL & | found, | |||
| const int | removeMe = 0 | |||
| ) | [inline] |
Definition at line 341 of file keylist.h.
References KeyListItem< Type >::data, KeyList< Type >::head, KeyListItem< Type >::key, KYL_TRUE, and KeyListItem< Type >::next.
Referenced by KeyList< Type >::remove().
Definition at line 330 of file keylist.h.
References KeyList< Type >::head, KeyListItem< Type >::key, KYL_FALSE, KYL_TRUE, and KeyListItem< Type >::next.
| KeyListItem<Type>* KeyList< Type >::last | ( | ) | [inline, protected] |
Definition at line 159 of file keylist.h.
References KeyList< Type >::head, and KeyListItem< Type >::next.
Referenced by KeyList< Type >::append().
| void KeyList< Type >::map | ( | void(*)(const Type &item) | map_function | ) | const [inline] |
Definition at line 247 of file keylist.h.
References KeyListItem< Type >::data, KeyList< Type >::head, and KeyListItem< Type >::next.
| void KeyList< Type >::modify | ( | Type(*)(Type &input) | mod_func | ) |
| KeyList< Type > & KeyList< Type >::operator+= | ( | const KeyList< Type > & | mergee | ) | [inline] |
Definition at line 233 of file keylist.h.
References KeyList< Type >::append(), KeyListItem< Type >::data, KeyList< Type >::head, KeyListItem< Type >::key, and KeyListItem< Type >::next.
| KeyList< Type > & KeyList< Type >::operator= | ( | const KeyList< Type > & | from | ) | [inline] |
Definition at line 216 of file keylist.h.
References KeyListItem< Type >::data, KeyList< Type >::destroy(), KeyList< Type >::head, KeyListItem< Type >::key, KeyListItem< Type >::next, KeyList< Type >::prepend(), and KeyList< Type >::reverse().
| KYL_BOOL KeyList< Type >::prepend | ( | const Type & | data, | |
| const void * | key | |||
| ) | [inline] |
Definition at line 295 of file keylist.h.
References KeyList< Type >::head, KYL_FALSE, KYL_TRUE, and KeyListItem< Type >::next.
Referenced by KeyList< Type >::KeyList(), KeyList< Type >::operator=(), and KeyList< Type >::prependUnique().
| KYL_BOOL KeyList< Type >::prependUnique | ( | const Type & | i3, | |
| const void * | key | |||
| ) | [inline] |
Definition at line 267 of file keylist.h.
References KeyListItem< Type >::data, KeyList< Type >::head, KeyListItem< Type >::key, KYL_TRUE, KeyListItem< Type >::next, and KeyList< Type >::prepend().
Definition at line 117 of file keylist.h.
References KeyList< Type >::find().
| void KeyList< Type >::reverse | ( | ) | [inline] |
Definition at line 180 of file keylist.h.
References KeyList< Type >::head, and KeyListItem< Type >::next.
Referenced by KeyList< Type >::KeyList(), and KeyList< Type >::operator=().
KeyListItem<Type>* KeyList< Type >::head [protected] |
Definition at line 165 of file keylist.h.
Referenced by KeyList< Type >::append(), KeyList< Type >::appendUnique(), KeyList< Type >::car(), KeyList< Type >::count(), KeyList< Type >::destroy(), KeyList< Type >::empty(), KeyList< Type >::find(), KeyList< Type >::inList(), KeyList< Type >::KeyList(), KeyList< Type >::last(), KeyList< Type >::map(), KeyList< Type >::operator+=(), KeyList< Type >::operator=(), KeyList< Type >::prepend(), KeyList< Type >::prependUnique(), and KeyList< Type >::reverse().
1.6.1