1 classdef CompEntity<handle
2 properties (Access=
protected)
10 function isOk=isequal(varargin)
11 sizeVec=size(varargin{1});
14 isOkArr=eq(varargin{:});
18 function isOk=isequaln(varargin)
19 isOk=isequal(varargin{:});
21 function isOk=isequalwithequalnans(varargin)
22 isOk=isequal(varargin{:});
24 function isPosArr=ne(
self,otherObj)
25 isPosArr=compare(
self,otherObj,@ne,
false);
28 function isPosArr=eq(
self,otherObj,varargin)
31 {
'asHandle';
false},0);
33 isPosArr=eq@handle(
self,otherObj);
35 isPosArr=compare(
self,otherObj,@eq,
false);
39 function isPosArr=le(
self,otherObj)
40 isPosArr=compare(
self,otherObj,@le);
43 function isPosArr=lt(
self,otherObj)
44 isPosArr=compare(
self,otherObj,@lt);
47 function isPosArr=gt(
self,otherObj)
48 isPosArr=compare(
self,otherObj,@gt);
51 function isPosArr=ge(
self,otherObj)
52 isPosArr=compare(
self,otherObj,@ge);
55 function isEqArr=compare(
self,otherObj,fComp,isCountEqHandles)
57 isCountEqHandles=
true;
60 isEqArr=
false(size(
self));
61 nLeftElems=numel(
self);
62 nRightElems=numel(otherObj);
64 nResElems=max(nLeftElems,nRightElems);
66 iLeftElem=min(iElem,nLeftElems);
67 iRightElem=min(iElem,nRightElems);
70 fComp(
self(iLeftElem).alpha,...
71 otherObj(iRightElem).alpha);
75 isEqHandleArr=eq(
self,otherObj,
'asHandle',
true);
76 nCalls=nCalls-sum(isEqHandleArr(:));
81 valArr=arrayfun(@(x)x.alpha,self);
87 function incCounter(nCalls)
88 mxberry.core.test.aux.EqualCallCounter.incEqCounter(nCalls);
function parseparext(in args, in propNameValMat, in varargin)
PARSEPAREXT behaves in the same way as mxberry.core.parseparams but returns property values in a more...