Edinburgh Speech Tools  2.4-release
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Pages
EST_TDeque< T > Class Template Reference

#include <include/EST_TDeque.h>

Collaboration diagram for EST_TDeque< T >:

Public Member Functions

 EST_TDeque (unsigned int capacity, unsigned int increment)
 
 EST_TDeque (unsigned int capacity)
 
void clear (void)
 Empty it out.
 
bool is_empty (void) const
 Is there anything to get?
 
ostream & print (ostream &s) const
 print picture of state. Mostly useful for debugging.
 
stack

An interface looking like a stack.

void push (T &item)
 
T & pop (void)
 
T & nth (int i)
 
inverse stack

The other end as a stack.

void back_push (T &item)
 
T & back_pop (void)
 
queue

An interface looking like a queue.

void add (T &item)
 
T & next ()
 
T & last ()
 
perl

For people who think in perl

void unshift (T &item)
 
T & shift ()
 

Static Public Attributes

static const T * Filler
 Used to fill empty spaces when possible.
 

Friends

ostream & operator<< (ostream &st, const EST_TDeque< T > &deq)
 

Detailed Description

template<class T>
class EST_TDeque< T >

Double ended queue.

Author
Richard Caley rjc@c.nosp@m.str..nosp@m.ed.ac.nosp@m..uk
Version
Id:
EST_TDeque.h,v 1.3 2006/07/19 21:52:12 awb Exp

Definition at line 48 of file EST_TDeque.h.


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