List< DataType > Class Template Reference
#include <List.h>
Public Types |
typedef _list_iterator
< DataType, void * > | iterator |
typedef const _list_iterator
< DataType, void * > | const_iterator |
typedef _list_node< DataType,
void * > | node |
Public Member Functions |
| | List () |
| | List (const List &fromList) |
| | ~List () |
| void | push_front (DataType &data) |
| void | push_back (DataType &data) |
| bool | addIfUniqueVal (DataType &data) |
| bool | find (const DataType &val) const |
| bool | remove (const DataType &data) |
| DataType & | front () |
| const DataType & | front () const |
| DataType & | back () |
| void | __push_front (DataType &data, const void *&key) |
| void | __push_back (DataType &data, const void *&key) |
| bool | __addIfUniqueKey (DataType &data, const void *&key) |
| bool | __addIfUniqueVal (DataType &data, const void *&key) |
| bool | __find_with_key (const void *&key, DataType *saveVal) |
| bool | __find_with_val (const DataType &saveVal) const |
| bool | __remove_with_key (const void *&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 DataTypeitem)) |
Protected Member Functions |
| node * | getLastNode () |
Protected Attributes |
| node * | head |
Private Types |
| typedef void * | KeyType |
Friends |
| std::ostream & | operator<< (std::ostream &os, const List< DataType > &data) |
Detailed Description
template<class DataType>
class List< DataType >
Definition at line 234 of file List.h.
Member Typedef Documentation
Constructor & Destructor Documentation
template<class DataType>
| List< DataType >::List |
( |
const List< DataType > & |
fromList |
) |
[inline] |
Member Function Documentation
| bool ListBase< DataType , void * >::__addIfUniqueKey |
( |
DataType & |
data, |
|
|
const void * & |
key | |
|
) |
| | [inline, inherited] |
| bool ListBase< DataType , void * >::__addIfUniqueVal |
( |
DataType & |
data, |
|
|
const void * & |
key | |
|
) |
| | [inline, inherited] |
| bool ListBase< DataType , void * >::__find_with_key |
( |
const void * & |
key, |
|
|
DataType * |
saveVal | |
|
) |
| | [inherited] |
| bool ListBase< DataType , void * >::__find_with_val |
( |
const DataType & |
saveVal |
) |
const [inherited] |
| void ListBase< DataType , void * >::__push_back |
( |
DataType & |
data, |
|
|
const void * & |
key | |
|
) |
| | [inherited] |
| void ListBase< DataType , void * >::__push_front |
( |
DataType & |
data, |
|
|
const void * & |
key | |
|
) |
| | [inherited] |
| bool ListBase< DataType , void * >::__remove_with_key |
( |
const void * & |
key |
) |
[inherited] |
| bool ListBase< DataType , void * >::__remove_with_val |
( |
const DataType & |
val |
) |
[inherited] |
template<class DataType>
| bool List< DataType >::addIfUniqueVal |
( |
DataType & |
data |
) |
[inline] |
| DataType & ListBase< DataType , void * >::back |
( |
|
) |
[inline, inherited] |
| void ListBase< DataType , void * >::clear |
( |
|
) |
[inherited] |
| int ListBase< DataType , void * >::count |
( |
|
) |
const [inline, inherited] |
template<class DataType>
| bool List< DataType >::find |
( |
const DataType & |
val |
) |
const [inline] |
| const DataType & ListBase< DataType , void * >::front |
( |
|
) |
const [inline, inherited] |
| DataType & ListBase< DataType , void * >::front |
( |
|
) |
[inline, inherited] |
| node* ListBase< DataType , void * >::getLastNode |
( |
|
) |
[protected, inherited] |
| void ListBase< DataType , void * >::insert |
( |
iterator & |
, |
|
|
DataType & |
| |
|
) |
| | [inline, inherited] |
| bool ListBase< DataType , void * >::isEmpty |
( |
|
) |
[inline, inherited] |
| void ListBase< DataType , void * >::map |
( |
void(*)(const DataType item) |
map_function |
) |
[inline, inherited] |
template<class DataType>
| void List< DataType >::push_back |
( |
DataType & |
data |
) |
[inline] |
template<class DataType>
| void List< DataType >::push_front |
( |
DataType & |
data |
) |
[inline] |
template<class DataType>
| bool List< DataType >::remove |
( |
const DataType & |
data |
) |
[inline] |
Friends And Related Function Documentation
template<class DataType>
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const List< DataType > & |
data | |
|
) |
| | [friend] |
Field Documentation
The documentation for this class was generated from the following file: