function self = redo(self)
% REDO move up queue index and prepare return value for the next get
% method
%   queue = redo(queue)
%
% $Id$

% reach end of queue
% ------------------
if self.index == self.size
  self.data   = {};
  return
end

% move index up
% ---------------
self.index = self.index + 1;

% prepare (copy) data for get method
% ----------------------------------
self.data = self.buffer{self.index};  

