#include <klist.h>
Public Member Functions | |
| KList () | |
| KList (const KList< Type > &from) | |
| ~KList () | |
| KL_BOOL | destroy () |
| KL_BOOL | remove (const Type &it) |
| int | empty () const |
| int | count () const |
| void | reverse () |
| KL_BOOL | append (const Type &data) |
| KL_BOOL | prepend (const Type &data) |
| KL_BOOL | appendUnique (const Type &i3) |
| KL_BOOL | prependUnique (const Type &i3) |
| KList< Type > & | operator+= (const KList< Type > &mergee) |
| KList< Type > & | operator= (const KList< Type > &from) |
| KList< Type > | pure_map (Type(*map_f)(const Type &it)) const |
| void | map (void(*map_function)(const Type &item)) const |
| void | mapUntil (const Type &item, int(*map_func)(const Type &i1, const Type &i2)) const |
| Type | car (KL_BOOL &valid) |
| KList< Type > | cdr () |
| void | modify (Type(*mod_func)(Type &input)) |
| Type | find (const Type &inE, KL_BOOL &found, int removeMe=0, int(*cmp_f)(const Type &a, const Type &b)=0) |
Protected Member Functions | |
| KListItem< Type > * | last () |
Protected Attributes | |
| KListItem< Type > * | head |
Definition at line 106 of file klist.h.
Definition at line 108 of file klist.h.
References KList< Type >::head.
Definition at line 201 of file klist.h.
References KListItem< Type >::data, KList< Type >::head, KList< Type >::prepend(), and KList< Type >::reverse().
Definition at line 110 of file klist.h.
References KList< Type >::destroy().
Definition at line 354 of file klist.h.
References KList< Type >::head, KL_FALSE, KL_TRUE, KList< Type >::last(), and KListItem< Type >::next.
Referenced by KList< Type >::appendUnique(), KList< Type >::operator+=(), and KList< Type >::pure_map().
Definition at line 325 of file klist.h.
References KList< Type >::append(), KListItem< Type >::data, KList< Type >::head, KL_TRUE, and KListItem< Type >::next.
Definition at line 374 of file klist.h.
References KListItem< Type >::data, KList< Type >::head, KL_FALSE, and KL_TRUE.
Referenced by KList< Type >::cdr().
Definition at line 394 of file klist.h.
References KList< Type >::car().
| int KList< Type >::count | ( | ) | const [inline] |
Definition at line 211 of file klist.h.
References KList< Type >::head, and KListItem< Type >::next.
Definition at line 221 of file klist.h.
References KList< Type >::head, KL_TRUE, and KListItem< Type >::next.
Referenced by KList< Type >::operator=(), and KList< Type >::~KList().
| int KList< Type >::empty | ( | ) | const [inline] |
Definition at line 119 of file klist.h.
References KList< Type >::head.
| Type KList< Type >::find | ( | const Type & | inE, | |
| KL_BOOL & | found, | |||
| int | removeMe = 0, |
|||
| int(*)(const Type &a, const Type &b) | cmp_f = 0 | |||
| ) | [inline] |
Definition at line 149 of file klist.h.
References KListItem< Type >::data, KList< Type >::head, KL_TRUE, and KListItem< Type >::next.
Referenced by KList< Type >::remove().
Definition at line 190 of file klist.h.
References KList< Type >::head, and KListItem< Type >::next.
Referenced by KList< Type >::append().
| void KList< Type >::map | ( | void(*)(const Type &item) | map_function | ) | const [inline] |
Definition at line 278 of file klist.h.
References KListItem< Type >::data, KList< Type >::head, and KListItem< Type >::next.
| void KList< Type >::mapUntil | ( | const Type & | item, | |
| int(*)(const Type &i1, const Type &i2) | map_func | |||
| ) | const [inline] |
Definition at line 298 of file klist.h.
References KListItem< Type >::data, KList< Type >::head, and KListItem< Type >::next.
| void KList< Type >::modify | ( | Type(*)(Type &input) | mod_func | ) |
| KList< Type > & KList< Type >::operator+= | ( | const KList< Type > & | mergee | ) | [inline] |
Definition at line 252 of file klist.h.
References KList< Type >::append(), KListItem< Type >::data, KList< Type >::head, and KListItem< Type >::next.
| KList< Type > & KList< Type >::operator= | ( | const KList< Type > & | from | ) | [inline] |
Definition at line 234 of file klist.h.
References KListItem< Type >::data, KList< Type >::destroy(), KList< Type >::head, KListItem< Type >::next, KList< Type >::prepend(), and KList< Type >::reverse().
Definition at line 339 of file klist.h.
References KList< Type >::head, KL_FALSE, KL_TRUE, and KListItem< Type >::next.
Referenced by KList< Type >::KList(), KList< Type >::operator=(), and KList< Type >::prependUnique().
Definition at line 311 of file klist.h.
References KListItem< Type >::data, KList< Type >::head, KL_TRUE, KListItem< Type >::next, and KList< Type >::prepend().
| KList< Type > KList< Type >::pure_map | ( | Type(*)(const Type &it) | map_f | ) | const [inline] |
Definition at line 267 of file klist.h.
References KList< Type >::append(), KListItem< Type >::data, KList< Type >::head, KListItem< Type >::next, and Ret.
Definition at line 113 of file klist.h.
References KList< Type >::find().
| void KList< Type >::reverse | ( | ) | [inline] |
Definition at line 405 of file klist.h.
References KList< Type >::head, and KListItem< Type >::next.
Referenced by KList< Type >::KList(), and KList< Type >::operator=().
Definition at line 196 of file klist.h.
Referenced by KList< Type >::append(), KList< Type >::appendUnique(), KList< Type >::car(), KList< Type >::count(), KList< Type >::destroy(), KList< Type >::empty(), KList< Type >::find(), KList< Type >::KList(), KList< Type >::last(), KList< Type >::map(), KList< Type >::mapUntil(), KList< Type >::operator+=(), KList< Type >::operator=(), KList< Type >::prepend(), KList< Type >::prependUnique(), KList< Type >::pure_map(), and KList< Type >::reverse().
1.6.1