-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
177 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
matlab/generated/+test_model/AliasedIntOrAliasedSimpleRecord.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
% This file was generated by the "yardl" tool. DO NOT EDIT. | ||
|
||
classdef AliasedIntOrAliasedSimpleRecord < yardl.Union | ||
methods (Static) | ||
function res = Int32(value) | ||
res = test_model.AliasedIntOrAliasedSimpleRecord(1, value); | ||
end | ||
|
||
function res = AliasedSimpleRecord(value) | ||
res = test_model.AliasedIntOrAliasedSimpleRecord(2, value); | ||
end | ||
|
||
function z = zeros(varargin) | ||
elem = test_model.AliasedIntOrAliasedSimpleRecord(0, yardl.None); | ||
if nargin == 0 | ||
z = elem; | ||
return; | ||
end | ||
sz = [varargin{:}]; | ||
if isscalar(sz) | ||
sz = [sz, sz]; | ||
end | ||
z = reshape(repelem(elem, prod(sz)), sz); | ||
end | ||
end | ||
|
||
methods | ||
function res = isInt32(self) | ||
res = self.index == 1; | ||
end | ||
|
||
function res = isAliasedSimpleRecord(self) | ||
res = self.index == 2; | ||
end | ||
|
||
function eq = eq(self, other) | ||
eq = isa(other, "test_model.AliasedIntOrAliasedSimpleRecord") && isequal(self.index, other.index) && isequal(self.value, other.value); | ||
end | ||
|
||
function ne = ne(self, other) | ||
ne = ~self.eq(other); | ||
end | ||
|
||
function t = tag(self) | ||
tags_ = ["Int32", "AliasedSimpleRecord"]; | ||
t = tags_(self.index_); | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
% This file was generated by the "yardl" tool. DO NOT EDIT. | ||
|
||
function c = AliasedSimpleRecord(varargin) | ||
c = test_model.SimpleRecord(varargin{:}); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.