We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7ebdc3 commit 2f89bcbCopy full SHA for 2f89bcb
+nix/NamedEntity.m
@@ -20,6 +20,16 @@
20
nix.Dynamic.add_dyn_attr(obj, 'type', 'rw');
21
nix.Dynamic.add_dyn_attr(obj, 'definition', 'rw');
22
end
23
+
24
+ function res = compare(obj, entity)
25
+ % Compares first name and second id, return > 0 if the entity
26
+ % is larger than the other, 0 if both are equal, and < 0 otherwise.
27
+ if(~strcmp(class(obj), class(entity)))
28
+ error('Only entities of the same class can be compared.');
29
+ end;
30
+ res = nix_mx(strcat(obj.alias, '::compare'), ...
31
+ obj.nix_handle, entity.nix_handle);
32
33
34
35
0 commit comments