[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Doubly-linked list with classdef
From: |
Michael Goffioul |
Subject: |
Doubly-linked list with classdef |
Date: |
Tue, 15 Jan 2013 20:51:46 -0500 |
Jordi,
As a follow-up of the discussion on IRC, here's a skeleton of how I would implement a doubly-linked list with classdef. AFAIK this does not suffer from recursive destructor call. I did it merely as an exercise to see whether it'd work with current classdef branch (and it does, except for the "delete" method that is not automatically called yet). I'm not sure about the complexity of creating the list, but I would expect it to be O(N).
Michael.
DList.m
Description: Binary data
DNode.m
Description: Binary data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Doubly-linked list with classdef,
Michael Goffioul <=