KList< Type > Class Template Reference

#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

Detailed Description

template<class Type>
class KList< Type >

Definition at line 106 of file klist.h.


Constructor & Destructor Documentation

template<class Type>
KList< Type >::KList (  )  [inline]

Definition at line 108 of file klist.h.

References KList< Type >::head.

template<class Type >
KList< Type >::KList ( const KList< Type > &  from  )  [inline]
template<class Type>
KList< Type >::~KList (  )  [inline]

Definition at line 110 of file klist.h.

References KList< Type >::destroy().


Member Function Documentation

template<class Type >
KL_BOOL KList< Type >::append ( const Type &  data  )  [inline]
template<class Type >
KL_BOOL KList< Type >::appendUnique ( const Type &  i3  )  [inline]
template<class Type >
Type KList< Type >::car ( KL_BOOL valid  )  [inline]

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().

template<class Type >
KList< Type > KList< Type >::cdr (  )  [inline]

Definition at line 394 of file klist.h.

References KList< Type >::car().

template<class Type >
int KList< Type >::count (  )  const [inline]

Definition at line 211 of file klist.h.

References KList< Type >::head, and KListItem< Type >::next.

template<class Type >
KL_BOOL KList< Type >::destroy (  )  [inline]

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().

template<class Type>
int KList< Type >::empty (  )  const [inline]

Definition at line 119 of file klist.h.

References KList< Type >::head.

template<class Type>
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().

template<class Type>
KListItem<Type>* KList< Type >::last (  )  [inline, protected]

Definition at line 190 of file klist.h.

References KList< Type >::head, and KListItem< Type >::next.

Referenced by KList< Type >::append().

template<class Type >
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.

template<class Type >
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.

template<class Type>
void KList< Type >::modify ( Type(*)(Type &input)  mod_func  ) 
template<class Type >
KList< Type > & KList< Type >::operator+= ( const KList< Type > &  mergee  )  [inline]
template<class Type >
KList< Type > & KList< Type >::operator= ( const KList< Type > &  from  )  [inline]
template<class Type >
KL_BOOL KList< Type >::prepend ( const Type &  data  )  [inline]
template<class Type >
KL_BOOL KList< Type >::prependUnique ( const Type &  i3  )  [inline]
template<class Type >
KList< Type > KList< Type >::pure_map ( Type(*)(const Type &it)  map_f  )  const [inline]
template<class Type>
KL_BOOL KList< Type >::remove ( const Type &  it  )  [inline]

Definition at line 113 of file klist.h.

References KList< Type >::find().

template<class Type >
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=().


Field Documentation

template<class Type>
KListItem<Type>* KList< Type >::head [protected]

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 12 Jul 2013 for SymtabAPI by  doxygen 1.6.1