view arrows/@abuffer/abuffer.m @ 2:7357e1dc2ad6

Simplified scheduler library with new schedule representation.
author samer
date Sat, 22 Dec 2012 16:17:51 +0000
parents 672052bd81f8
children
line wrap: on
line source
% abuffer - arrow that collects several outputs from supplied generator arrow
%
% abuffer :: 
%    arrow({},{[[N]]},S) ~'arrow with no inputs and one output',
%    L:natural           ~'width of buffer'
% -> arrow({}, {[[N,L]]},S).

function o=abuffer(a,width)
	s.base=a;
	s.width=width;
	o=class(s,'abuffer',arrow(nargin(a),narout(a)));
end