source: MML/trunk/applications/database/mym/dbm/@ParFilterDB/itemGet.m @ 4

Last change on this file since 4 was 4, checked in by zhangj, 10 years ago

Initial import--MML version from SOLEIL@2013

File size: 398 bytes
Line 
1function items = itemGet(a_f, a_id)
2% IGET - get an items
3%   iget(f, id) return the items having id for identifier.
4%   iget(..., 'REMOVE_CELL') removes cell when only a 1 by 1 cell is
5%     returned.
6
7items = cell(numel(a_id), 1);
8for i = 1:numel(a_id)
9  par = itemGet(a_f.BasicDB, a_id(i));
10  par = par{1};
11  [dummy, hf] = itemParent(a_f, a_id(i));
12  hf = hf{1};
13  items{i} = @(x)hf(x, par);
14end
Note: See TracBrowser for help on using the repository browser.