Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

dolfin::List< T > Class Template Reference

DON'T USE LIST. USE NEWLIST INSTEAD. WILL REPLACE LIST IN FUTURE VERSIONS. More...

#include <List.h>

Inheritance diagram for dolfin::List< T >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 List ()
 Constructor.

 ~List ()
 Destructor.

void clear ()
 Clear list.

void add (const T &element)
 Add element to the list.

int size () const
 Return size of list.

bool empty () const
 Check if list is empty.

bool contains (const T &element)
 Check if the list contains a given element.

void remove (const T &element)
 Remove given element (first one matching).

pop ()
 Get first element in the list and remove it.


Friends

class Iterator

Detailed Description

template<class T>
class dolfin::List< T >

DON'T USE LIST. USE NEWLIST INSTEAD. WILL REPLACE LIST IN FUTURE VERSIONS.

A List is used to store variable-sized sets of data and is implemented using a double linked list (std::list).


Constructor & Destructor Documentation

template<class T>
dolfin::List< T >::List  ) 
 

Constructor.

template<class T>
dolfin::List< T >::~List  ) 
 

Destructor.


Member Function Documentation

template<class T>
void dolfin::List< T >::add const T &  element  ) 
 

Add element to the list.

template<class T>
void dolfin::List< T >::clear  ) 
 

Clear list.

template<class T>
bool dolfin::List< T >::contains const T &  element  ) 
 

Check if the list contains a given element.

template<class T>
bool dolfin::List< T >::empty  )  const
 

Check if list is empty.

template<class T>
T dolfin::List< T >::pop  ) 
 

Get first element in the list and remove it.

template<class T>
void dolfin::List< T >::remove const T &  element  ) 
 

Remove given element (first one matching).

template<class T>
int dolfin::List< T >::size  )  const
 

Return size of list.


Friends And Related Function Documentation

template<class T>
friend class Iterator [friend]
 


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


Documentation automatically generated with Doxygen on 10 Sep 2004.