ListWithKey< DataType, KeyType > Class Template Reference

#include <List.h>

Inheritance diagram for ListWithKey< DataType, KeyType >:
ListBase< DataType, KeyType >

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

nodegetLastNode ()

Protected Attributes

nodehead

Friends

std::ostream & operator<< (std::ostream &os, const ListWithKey< DataType, KeyType > &data)

Detailed Description

template<class DataType, class KeyType>
class ListWithKey< DataType, KeyType >

Definition at line 263 of file List.h.


Member Typedef Documentation

template<class DataType, class KeyType>
typedef const _list_iterator<DataType, KeyType> ListBase< DataType, KeyType >::const_iterator [inherited]

Definition at line 127 of file List.h.

template<class DataType, class KeyType>
typedef _list_iterator<DataType, KeyType> ListBase< DataType, KeyType >::iterator [inherited]

Definition at line 126 of file List.h.

template<class DataType, class KeyType>
typedef _list_node<DataType, KeyType> ListBase< DataType, KeyType >::node [inherited]

Definition at line 128 of file List.h.


Constructor & Destructor Documentation

template<class DataType, class KeyType>
ListWithKey< DataType, KeyType >::ListWithKey (  )  [inline]

Definition at line 266 of file List.h.

template<class DataType, class KeyType>
ListWithKey< DataType, KeyType >::ListWithKey ( const ListWithKey< DataType, KeyType > &  fromList  )  [inline]

Definition at line 267 of file List.h.

template<class DataType, class KeyType>
ListWithKey< DataType, KeyType >::~ListWithKey (  )  [inline]

Definition at line 269 of file List.h.


Member Function Documentation

template<class DataType, class KeyType>
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().

template<class DataType, class KeyType>
bool ListBase< DataType, KeyType >::__addIfUniqueVal ( DataType &  data,
const KeyType &  key 
) [inline, inherited]

Definition at line 178 of file List.h.

template<class DataType, class KeyType>
bool ListBase< DataType, KeyType >::__find_with_key ( const KeyType &  key,
DataType *  saveVal 
) [inline, inherited]
template<class DataType, class KeyType >
bool ListBase< DataType, KeyType >::__find_with_val ( const DataType &  saveVal  )  const [inline, inherited]
template<class DataType, class KeyType>
void ListBase< DataType, KeyType >::__push_back ( DataType &  data,
const KeyType &  key 
) [inline, inherited]
template<class DataType, class KeyType>
void ListBase< DataType, KeyType >::__push_front ( DataType &  data,
const KeyType &  key 
) [inline, inherited]
template<class DataType , class KeyType>
bool ListBase< DataType, KeyType >::__remove_with_key ( const KeyType &  key  )  [inline, inherited]
template<class DataType, class KeyType >
bool ListBase< DataType, KeyType >::__remove_with_val ( const DataType &  val  )  [inline, inherited]
template<class DataType, class KeyType>
bool ListWithKey< DataType, KeyType >::addIfUniqueKey ( DataType &  data,
KeyType &  key 
) [inline]

Definition at line 282 of file List.h.

References ListBase< DataType, KeyType >::__addIfUniqueKey().

template<class DataType, class KeyType>
DataType& ListBase< DataType, KeyType >::back (  )  [inline, inherited]

Definition at line 163 of file List.h.

template<class DataType, class KeyType>
const_iterator ListBase< DataType, KeyType >::begin (  )  const [inline, inherited]

Definition at line 195 of file List.h.

template<class DataType, class KeyType>
iterator ListBase< DataType, KeyType >::begin (  )  [inline, inherited]

Definition at line 192 of file List.h.

Referenced by ListBase< Type, void * >::front().

template<class DataType , class KeyType >
void ListBase< DataType, KeyType >::clear (  )  [inline, inherited]
template<class DataType, class KeyType>
int ListBase< DataType, KeyType >::count (  )  const [inline, inherited]

Definition at line 206 of file List.h.

Referenced by HTable< Type >::count(), and tunableConstant::numTunables().

template<class DataType, class KeyType>
const_iterator ListBase< DataType, KeyType >::end (  )  const [inline, inherited]

Definition at line 202 of file List.h.

template<class DataType, class KeyType>
iterator ListBase< DataType, KeyType >::end (  )  [inline, inherited]

Definition at line 199 of file List.h.

template<class DataType, class KeyType>
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().

template<class DataType, class KeyType>
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().

template<class DataType, class KeyType>
const DataType& ListBase< DataType, KeyType >::front (  )  const [inline, inherited]

Definition at line 160 of file List.h.

template<class DataType, class KeyType>
DataType& ListBase< DataType, KeyType >::front (  )  [inline, inherited]

Definition at line 159 of file List.h.

template<class DataType , class KeyType >
DO_INLINE_F ListBase< DataType, KeyType >::node * ListBase< DataType, KeyType >::getLastNode (  )  [inline, protected, inherited]
template<class DataType, class KeyType>
void ListBase< DataType, KeyType >::insert ( iterator ,
DataType &   
) [inline, inherited]

Definition at line 216 of file List.h.

template<class DataType, class KeyType>
bool ListBase< DataType, KeyType >::isEmpty (  )  [inline, inherited]

Definition at line 213 of file List.h.

Referenced by ListBase< DataType, KeyType >::__push_back().

template<class DataType, class KeyType>
void ListBase< DataType, KeyType >::map ( void(*)(const DataType item)  map_function  )  [inline, inherited]

Definition at line 219 of file List.h.

template<class DataType, class KeyType>
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().

template<class DataType, class KeyType>
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().

template<class DataType, class KeyType>
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().

template<class DataType, class KeyType>
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().


Friends And Related Function Documentation

template<class DataType, class KeyType>
std::ostream& operator<< ( std::ostream &  os,
const ListWithKey< DataType, KeyType > &  data 
) [friend]

Reimplemented from ListBase< DataType, KeyType >.

Definition at line 270 of file List.h.


Field Documentation

template<class DataType, class KeyType>
node* ListBase< DataType, KeyType >::head [protected, inherited]

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