%
%  DNode, 4.2: Knoten einer doppelt verketteten Liste
%
classdef DNode < handle

   properties
     next = DNode.empty;
     prev = DNode.empty;
     data = [];    % Daten 
   end     % properties

   methods
     function obj = DNode( varargin )
       obj.next = DNode.empty;
       obj.prev = DNode.empty;
       if( nargin > 0 )
         obj.data = varargin{1};
       end
     end
     
     function delete( obj )
      fprintf( 'delete DNode: Data = %g \n', obj.data );
     end    
     
     function disp( obj ) 
       fprintf( 'DNode: Data %g \n', obj.data );
     end
   end   % methods  
   
end
