mace::deque< T, Serial, Alloc > Class Template Reference
[Collections]

#include <mdeque.h>

Inheritance diagram for mace::deque< T, Serial, Alloc >:

Inheritance graph
[legend]
Collaboration diagram for mace::deque< T, Serial, Alloc >:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<class T, class Serial = SerializeList<T>, class Alloc = std::allocator<T>>
class mace::deque< T, Serial, Alloc >

mace::deque extends std::deque, provides contains(), erase(T), printability, and serializability

Definition at line 56 of file mdeque.h.


Public Member Functions

bool contains (const T &t) const
 returns true if the item t is found in the deque
iterator erase (iterator pos)
 erases the element at the iterator pos
size_t erase (const T &t)
 erase each element t if found (linear runtime)
void resize (size_t sz)
 resizes the deque, truncating or adding new default elements
size_t size () const
 returns the size of the deque
const std::string & getTypeName () const
 Return the template parameter string Key->Data for actual template parameters. (Mace extension).

Member Function Documentation

template<class T, class Serial = SerializeList<T>, class Alloc = std::allocator<T>>
bool mace::deque< T, Serial, Alloc >::contains ( const T &  t  )  const [inline]

returns true if the item t is found in the deque

executes by iteration (linear runtime)

Definition at line 84 of file mdeque.h.


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

Generated on Sat Oct 4 21:30:40 2008 for Mace Library by  doxygen 1.5.5