-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
1. Create `ProxyID` class. 2. Rename `ProxyID` to `Identifier`.
- Loading branch information
1 parent
a01993d
commit 3465900
Showing
2 changed files
with
36 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
classdef Identifier < matlab.mixin.Scalar | ||
|
||
properties(SetAccess=private, GetAccess=public) | ||
% C++ Proxy ID. | ||
ID = NaN | ||
end | ||
|
||
methods | ||
function obj = Identifier(id) | ||
if nargin == 1 | ||
validateattributes(id, {'numeric'}, ... | ||
{'scalar', 'nonnegative', 'integer'}); | ||
obj.ID = uint64(id); | ||
end | ||
end | ||
|
||
function tf = ismissing(obj) | ||
tf = ismissing(obj.ID); | ||
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