linked list implementation

バージョン 1.0.0.0 (2.07 KB) 作成者: timo
This is a linked list implementation who is pretty fast.
ダウンロード: 223
更新 2013/1/14

ライセンスの表示

*creation:
listBtns = linkedListClass('grpName');
for igrp = 1:n
b.grpName = aObj.INP.GROUP{igrp}.GROUPNAME; %#ok<*AGROW>
b.handle= uicontrol('Style','radiobutton ',...
'units' , 'normalized', ...
'String',b.grpName,...
'Position',[0.01,igrp*0.03,0.2,0.03],...
'Enable','off');
%set the hande func for the modif of the text
set(b.handle,'Callback',@(hObject,eventdata)radionButtons_callback(hObject,eventdata, guidata(hObject)));
b.value= false;
rdioBtnsEgoGrp.listBtns.addAtEnd(b);
% rdioBtns.wasLastSelected = false;
end

*interogation
L = correctionList();
if ~L.isEmpty()
i = 1;
el = L.getElementOnPoz(i);
while ~isempty(el)
fprintf('\n Elem Nr: %d', el.Data.nr);
fprintf('\n Group Name: %s', el.Data.grpName);
i= i+1;
el = L.getElementOnPoz(i);
end
else
fprintf('\n Empty List ');
end

*deletion
L = correctionList();
if ~L.isEmpty()
L.deleteElemOnPoz(1);
el = L.getElementOnPoz(1);
while ~isempty(el)
L.deleteElemOnPoz(1);
el = L.getElementOnPoz(1);
end
else
fprintf('\n Empty List ');
end

引用

timo (2024). linked list implementation (https://www.mathworks.com/matlabcentral/fileexchange/39827-linked-list-implementation), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2011b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersAudio Processing Algorithm Design についてさらに検索
タグ タグを追加

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0