Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TSG QC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
US191
TSG QC
Commits
2d3f90e1
Commit
2d3f90e1
authored
16 years ago
by
jacques.grelet_ird.fr
Browse files
Options
Downloads
Patches
Plain Diff
add node class used by stack
parent
042e1e5d
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
@node/data.m
+6
-0
6 additions, 0 deletions
@node/data.m
@node/get.m
+13
-0
13 additions, 0 deletions
@node/get.m
@node/next.m
+6
-0
6 additions, 0 deletions
@node/next.m
@node/node.m
+38
-0
38 additions, 0 deletions
@node/node.m
with
63 additions
and
0 deletions
@node/data.m
0 → 100644
+
6
−
0
View file @
2d3f90e1
function
val
=
data
(
self
)
% get access methods for properties
% ---------------------------------
val
=
self
.
data
;
This diff is collapsed.
Click to expand it.
@node/get.m
0 → 100644
+
13
−
0
View file @
2d3f90e1
function
val
=
get
(
self
,
arg
)
% get access methods for properties
% ---------------------------------
switch
arg
case
'data'
val
=
self
.
data
;
case
'next'
val
=
self
.
next
;
otherwise
error
(
'Wrong input args'
);
end
This diff is collapsed.
Click to expand it.
@node/next.m
0 → 100644
+
6
−
0
View file @
2d3f90e1
function
val
=
next
(
self
)
% get access methods for properties
% ---------------------------------
val
=
self
.
next
;
This diff is collapsed.
Click to expand it.
@node/node.m
0 → 100644
+
38
−
0
View file @
2d3f90e1
function
n
=
node
(
data
,
next
)
% node.m
%
% This class is used with stack class to implemete LIFO stack
%
% $Id$
%% COPYRIGHT & LICENSE
% Copyright 2009 - IRD US191, all rights reserved.
%
% This file is part of tsg-qc Matlab program.
%
% tsg-qc program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later version.
%
% tsgqc is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with Datagui; if not, write to the Free Software
% Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
% USA
if
nargin
==
2
self
.
data
=
data
;
self
.
next
=
next
;
else
self
.
data
=
{};
self
.
next
=
{};
end
% class constructor
% -----------------
n
=
class
(
self
,
'node'
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment