KeyList< Type > Class Template Reference

#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

Detailed Description

template<class Type>
class KeyList< Type >

Definition at line 110 of file keylist.h.


Constructor & Destructor Documentation

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

Definition at line 112 of file keylist.h.

References KeyList< Type >::head.

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

Definition at line 114 of file keylist.h.

References KeyList< Type >::destroy().


Member Function Documentation

template<class Type >
KYL_BOOL KeyList< Type >::append ( const Type &  data,
const void *  key 
) [inline]
template<class Type >
KYL_BOOL KeyList< Type >::appendUnique ( const Type &  i3,
const void *  key 
) [inline]
template<class Type >
Type KeyList< Type >::car ( KYL_BOOL valid  )  [inline]

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

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

Definition at line 388 of file keylist.h.

References KeyList< Type >::car().

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

Definition at line 193 of file keylist.h.

References KeyList< Type >::head, and KeyListItem< Type >::next.

template<class Type >
KYL_BOOL KeyList< Type >::destroy (  )  [inline]
template<class Type>
int KeyList< Type >::empty (  )  const [inline]

Definition at line 123 of file keylist.h.

References KeyList< Type >::head.

template<class Type >
Type KeyList< Type >::find ( const void *  key,
KYL_BOOL found,
const int  removeMe = 0 
) [inline]
template<class Type >
KYL_BOOL KeyList< Type >::inList ( const void *  key  )  [inline]
template<class Type>
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().

template<class Type >
void KeyList< Type >::map ( void(*)(const Type &item)  map_function  )  const [inline]
template<class Type>
void KeyList< Type >::modify ( Type(*)(Type &input)  mod_func  ) 
template<class Type >
KeyList< Type > & KeyList< Type >::operator+= ( const KeyList< Type > &  mergee  )  [inline]
template<class Type >
KeyList< Type > & KeyList< Type >::operator= ( const KeyList< Type > &  from  )  [inline]
template<class Type >
KYL_BOOL KeyList< Type >::prepend ( const Type &  data,
const void *  key 
) [inline]
template<class Type >
KYL_BOOL KeyList< Type >::prependUnique ( const Type &  i3,
const void *  key 
) [inline]
template<class Type>
KYL_BOOL KeyList< Type >::remove ( void *  key  )  [inline]

Definition at line 117 of file keylist.h.

References KeyList< Type >::find().

template<class Type >
void KeyList< Type >::reverse (  )  [inline]

Field Documentation

template<class Type>
KeyListItem<Type>* KeyList< 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