function b = buffer()
% BUFFER - constructor
% The class buffer implements a buffer for matrices of any type.
% Initialize a buffer with the constructor and assign the result
% to a variable, for example:
% buf = buffer
% To store data use the method store:
% buf = store(bla,[1:10000])
% To read out the data concatenated columnwise, use the flush
% method:
% result = flush(buf);
% To read out the data concatenated rowwise, use the flush
% method with the optional dimension parameter (see CAT):
% result = flush(buf,1);
% To reset the buffer, just create a new buffer:
% buf = buffer
% buffer class
% author: jan wolff, 2007
b.data = {};
b = class(b,'buffer');