reporting, dates: make shiftS calls more efficient

remove-priordens
Houtan Bastani 2014-02-06 15:30:19 +01:00
parent f776f5c5cd
commit ae92cca4a2
12 changed files with 36 additions and 36 deletions

View File

@ -1,7 +1,7 @@
function A = subsref(A, S)
%function A = subsref(A, S)
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2014 Dynare Team
%
% This file is part of Dynare.
%
@ -26,7 +26,7 @@ switch S(1).type
case methods(A)
if areParensNext(S)
A = feval(S(1).subs, A, S(2).subs{:});
S = shiftS(S);
S = shiftS(S,1);
else
A = feval(S(1).subs, A);
end
@ -41,7 +41,7 @@ switch S(1).type
error('@elements.subsref: impossible case');
end
S = shiftS(S);
S = shiftS(S,1);
if length(S) >= 1
A = subsref(A, S);
end

View File

@ -1,7 +1,7 @@
function A = subsref(A, S)
%function A = subsref(A, S)
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2014 Dynare Team
%
% This file is part of Dynare.
%
@ -26,7 +26,7 @@ switch S(1).type
case methods(A)
if areParensNext(S)
A = feval(S(1).subs, A, S(2).subs{:});
S = shiftS(S);
S = shiftS(S,1);
else
A = feval(S(1).subs, A);
end
@ -41,7 +41,7 @@ switch S(1).type
error('@graph.subsref: impossible case')
end
S = shiftS(S);
S = shiftS(S,1);
if length(S) >= 1
A = subsref(A, S);
end

View File

@ -1,7 +1,7 @@
function A = subsref(A, S)
%function A = subsref(A, S)
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2014 Dynare Team
%
% This file is part of Dynare.
%
@ -26,7 +26,7 @@ switch S(1).type
case methods(A)
if areParensNext(S)
A = feval(S(1).subs, A, S(2).subs{:});
S = shiftS(S);
S = shiftS(S,1);
else
A = feval(S(1).subs, A);
end
@ -41,7 +41,7 @@ switch S(1).type
error('objArray.subsref: impossible case')
end
S = shiftS(S);
S = shiftS(S,1);
if length(S) >= 1
A = subsref(A, S);
end

View File

@ -1,7 +1,7 @@
function A = subsref(A, S)
%function A = subsref(A, S)
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2014 Dynare Team
%
% This file is part of Dynare.
%
@ -26,7 +26,7 @@ switch S(1).type
case methods(A)
if areParensNext(S)
A = feval(S(1).subs, A, S(2).subs{:});
S = shiftS(S);
S = shiftS(S,1);
else
A = feval(S(1).subs, A);
end
@ -41,7 +41,7 @@ switch S(1).type
error('@page.subsref: impossible case')
end
S = shiftS(S);
S = shiftS(S,1);
if length(S) >= 1
A = subsref(A, S);
end

View File

@ -1,7 +1,7 @@
function A = subsref(A, S)
%function A = subsref(A, S)
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2014 Dynare Team
%
% This file is part of Dynare.
%
@ -26,7 +26,7 @@ switch S(1).type
case methods(A)
if areParensNext(S)
A = feval(S(1).subs, A, S(2).subs{:});
S = shiftS(S);
S = shiftS(S,1);
else
A = feval(S(1).subs, A);
end
@ -41,7 +41,7 @@ switch S(1).type
error('@pages.subsref: impossible case')
end
S = shiftS(S);
S = shiftS(S,1);
if length(S) >= 1
A = subsref(A, S);
end

View File

@ -1,7 +1,7 @@
function A = subsref(A, S)
%function A = subsref(A, S)
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2014 Dynare Team
%
% This file is part of Dynare.
%
@ -26,7 +26,7 @@ switch S(1).type
case methods(A)
if areParensNext(S)
A = feval(S(1).subs, A, S(2).subs{:});
S = shiftS(S);
S = shiftS(S,1);
else
A = feval(S(1).subs, A);
end
@ -41,7 +41,7 @@ switch S(1).type
error('@report.subsasgn: impossible case');
end
S = shiftS(S);
S = shiftS(S,1);
if length(S) >= 1
A = subsref(A, S);
end

View File

@ -1,7 +1,7 @@
function A = subsref(A, S)
%function A = subsref(A, S)
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2014 Dynare Team
%
% This file is part of Dynare.
%
@ -26,7 +26,7 @@ switch S(1).type
case methods(A)
if areParensNext(S)
A = feval(S(1).subs, A, S(2).subs{:});
S = shiftS(S);
S = shiftS(S,1);
else
A = feval(S(1).subs, A);
end
@ -39,7 +39,7 @@ switch S(1).type
error('@report_series.subsref: impossible case')
end
S = shiftS(S);
S = shiftS(S,1);
if length(S) >= 1
A = subsref(A, S);
end

View File

@ -1,7 +1,7 @@
function A = subsref(A, S)
%function A = subsref(A, S)
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2014 Dynare Team
%
% This file is part of Dynare.
%
@ -26,7 +26,7 @@ switch S(1).type
case methods(A)
if areParensNext(S)
A = feval(S(1).subs, A, S(2).subs{:});
S = shiftS(S);
S = shiftS(S,1);
else
A = feval(S(1).subs, A);
end
@ -39,7 +39,7 @@ switch S(1).type
error('@report_table.subsref: subsref.m impossible case')
end
S = shiftS(S);
S = shiftS(S,1);
if length(S) >= 1
A = subsref(A, S);
end

View File

@ -1,7 +1,7 @@
function A = subsref(A, S)
%function A = subsref(A, S)
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2014 Dynare Team
%
% This file is part of Dynare.
%
@ -26,7 +26,7 @@ switch S(1).type
case methods(A)
if areParensNext(S)
A = feval(S(1).subs, A, S(2).subs{:});
S = shiftS(S);
S = shiftS(S,1);
else
A = feval(S(1).subs, A);
end
@ -41,7 +41,7 @@ switch S(1).type
error('@section.subsref: impossible case')
end
S = shiftS(S);
S = shiftS(S,1);
if length(S) >= 1
A = subsref(A, S);
end

View File

@ -1,7 +1,7 @@
function A = subsref(A, S)
%function A = subsref(A, S)
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2014 Dynare Team
%
% This file is part of Dynare.
%
@ -26,7 +26,7 @@ switch S(1).type
case methods(A)
if areParensNext(S)
A = feval(S(1).subs, A, S(2).subs{:});
S = shiftS(S);
S = shiftS(S,1);
else
A = feval(S(1).subs, A);
end
@ -41,7 +41,7 @@ switch S(1).type
error('@sections.subsref subsref.m impossible case')
end
S = shiftS(S);
S = shiftS(S,1);
if length(S) >= 1
A = subsref(A, S);
end

View File

@ -1,7 +1,7 @@
function A = subsref(A, S)
%function A = subsref(A, S)
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2014 Dynare Team
%
% This file is part of Dynare.
%
@ -26,7 +26,7 @@ switch S(1).type
case methods(A)
if areParensNext(S)
A = feval(S(1).subs, A, S(2).subs{:});
S = shiftS(S);
S = shiftS(S,1);
else
A = feval(S(1).subs, A);
end
@ -41,7 +41,7 @@ switch S(1).type
error('@seriesElements.subsref: impossible case');
end
S = shiftS(S);
S = shiftS(S,1);
if length(S) >= 1
A = subsref(A, S);
end

View File

@ -1,7 +1,7 @@
function A = subsref(A, S)
%function A = subsref(A, S)
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2014 Dynare Team
%
% This file is part of Dynare.
%
@ -26,7 +26,7 @@ switch S(1).type
case methods(A)
if areParensNext(S)
A = feval(S(1).subs, A, S(2).subs{:});
S = shiftS(S);
S = shiftS(S,1);
else
A = feval(S(1).subs, A);
end
@ -41,7 +41,7 @@ switch S(1).type
error('@vspace.subsref: impossible case')
end
S = shiftS(S);
S = shiftS(S,1);
if length(S) >= 1
A = subsref(A, S);
end