ListBase< DataType, KeyType > Class Template Reference

#include <List.h>

Inheritance diagram for ListBase< DataType, KeyType >:
ListWithKey< 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

 ListBase ()
 ListBase (const ListBase &fromList)
 ~ListBase ()
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 ListBase< DataType, KeyType > &data)

Detailed Description

template<class DataType, class KeyType>
class ListBase< DataType, KeyType >

Definition at line 124 of file List.h.


Member Typedef Documentation

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

Definition at line 127 of file List.h.

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

Definition at line 126 of file List.h.

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

Definition at line 128 of file List.h.


Constructor & Destructor Documentation

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

Definition at line 130 of file List.h.

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

Definition at line 131 of file List.h.

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

Definition at line 143 of file List.h.


Member Function Documentation

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

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]

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]
template<class DataType, class KeyType >
bool ListBase< DataType, KeyType >::__find_with_val ( const DataType &  saveVal  )  const [inline]
template<class DataType, class KeyType>
void ListBase< DataType, KeyType >::__push_back ( DataType &  data,
const KeyType &  key 
) [inline]
template<class DataType, class KeyType>
void ListBase< DataType, KeyType >::__push_front ( DataType &  data,
const KeyType &  key 
) [inline]
template<class DataType , class KeyType>
bool ListBase< DataType, KeyType >::__remove_with_key ( const KeyType &  key  )  [inline]
template<class DataType, class KeyType >
bool ListBase< DataType, KeyType >::__remove_with_val ( const DataType &  val  )  [inline]
template<class DataType, class KeyType>
DataType& ListBase< DataType, KeyType >::back (  )  [inline]

Definition at line 163 of file List.h.

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

Definition at line 195 of file List.h.

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

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]
template<class DataType, class KeyType>
int ListBase< DataType, KeyType >::count (  )  const [inline]

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]

Definition at line 202 of file List.h.

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

Definition at line 199 of file List.h.

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

Definition at line 160 of file List.h.

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

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]
template<class DataType, class KeyType>
void ListBase< DataType, KeyType >::insert ( iterator ,
DataType &   
) [inline]

Definition at line 216 of file List.h.

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

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]

Definition at line 219 of file List.h.


Friends And Related Function Documentation

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

Field Documentation

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

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

Generated on 12 Jul 2013 for SymtabAPI by  doxygen 1.6.1