 
 
	 
In file ../include/EST_TBuffer.h:
| template<class TYPE> class EST_TBuffer | 
Extending buffer class.
| ![[more]](icon1.gif)  | EST_TBuffer (unsigned int size=TBUFFER_DEFAULT_SIZE, int step=TBUFFER_DEFAULT_STEP) Create with size and increment. | ||||||
| ![[more]](icon1.gif)  | ~EST_TBuffer (void) Destructor. | ||||||
| ![[more]](icon1.gif) unsigned int | length (void) const Current available space | ||||||
| ![[more]](icon1.gif) void | set (const TYPE &set_to, int howmany=-1) Set to the given value. | ||||||
| ![[more]](icon1.gif)  | Methods to make sure there is enough space. 
 | ||||||
| ![[more]](icon1.gif)  | Access to the memory itself. 
 | 
Extending buffer class. <p> This class provides the convinience of arrays which change in size at run time rather more efficiantly than the full EST_TVector class would. <p> Buffers can only be expanded and when a buffer is no longer needed (i.e. when the variable goes out of scope) the memory is not deleted, rather it is saved for re-use as a new buffer. <p> A typical use would be a buffer to hold a windowed section of a signal inside a signal processing loop where the size of the window changes from iteration to iteration.
 EST_TBuffer(unsigned int size=TBUFFER_DEFAULT_SIZE, int step=TBUFFER_DEFAULT_STEP)
 EST_TBuffer(unsigned int size=TBUFFER_DEFAULT_SIZE, int step=TBUFFER_DEFAULT_STEP)
 ~EST_TBuffer(void)
 ~EST_TBuffer(void)
 unsigned int length(void) const
unsigned int length(void) const 
 void set(const TYPE &set_to, int howmany=-1)
void set(const TYPE &set_to, int howmany=-1)
 Methods to make sure there is enough space.
 Methods to make sure there is enough space. 
 void ensure(unsigned int req_size)
void ensure(unsigned int req_size)
 void ensure(unsigned int req_size, bool copy)
void ensure(unsigned int req_size, bool copy)
 void ensure(unsigned int req_size, const TYPE &set_to, int howmany=-1)
void ensure(unsigned int req_size, const TYPE &set_to, int howmany=-1)
 Access to the memory itself.
 Access to the memory itself. 
Alphabetic index HTML hierarchy of classes or Java
 
This page is part of the 
Edinburgh Speech Tools Library documentation
Copyright  University of Edinburgh 1997
Contact:  
         speech_tools@cstr.ed.ac.uk