Logo Search packages:      
Sourcecode: scummvm version File versions

Common::List< T > Class Template Reference

#include <list.h>

List of all members.


Detailed Description

template<class T>
class Common::List< T >

Simple double linked list, modelled after the list template of the standard C++ library. Warning: as of now, this code is 100% untested.

Definition at line 35 of file list.h.


Public Types

typedef Iterator< const T > const_iterator
typedef Iterator< T > iterator

Public Member Functions

const_iterator begin () const
iterator begin ()
void clear ()
const_iterator end () const
iterator end ()
iterator erase (iterator first, iterator last)
iterator erase (iterator pos)
template<typename iterator2>
void insert (iterator pos, iterator2 first, iterator2 last)
void insert (iterator pos, const T &element)
bool isEmpty () const
 List (const List< T > &list)
List< T > & operator= (const List< T > &list)
void push_back (const T &element)
void push_front (const T &element)
void remove (const T &val)
uint size () const

Protected Attributes

NodeBase * _anchor

Classes

class  Iterator
struct  Node
struct  NodeBase

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index