In file ../include/EST_TBuffer.h:
template<class TYPE> class EST_TBuffer |
Extending buffer class.
![]() | EST_TBuffer (unsigned int size=TBUFFER_DEFAULT_SIZE, int step=TBUFFER_DEFAULT_STEP) Create with size and increment. | ||||||
![]() | ~EST_TBuffer (void) Destructor. | ||||||
![]() | length (void) const Current available space | ||||||
![]() | set (const TYPE &set_to, int howmany=-1) Set to the given value. | ||||||
![]() | Methods to make sure there is enough space.
| ||||||
![]() | 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.
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