Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function BinaryNot: TMtxVecInt; | Applies binary "not" operation to elements stored in the object. |
| └ indexed: function BinaryNot(Index: Integer; Len: Integer): TMtxVecInt; | ||
| 2 | function BinaryNot(const Src: TMtxVecInt): TMtxVecInt; | Apply binary "not" to Src elements and store the result in Self (this). |
| └ indexed: function BinaryNot(const Src: TMtxVecInt; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt; |
Overload 1: function BinaryNot: TMtxVecInt;
Applies binary "not" operation to elements stored in the object.
Result: stored in self (calling object), returns self for chaining
Calculate the binary "not" value of all calling object elements in-place.
var
a: TMtxVecInt;
begin
MtxVecInt.CreateIt(out a);
try
a.SetIt(new int[] {1,0,1,0});
a.BinaryNot; // a = [-2,-1,-2,-1]
finally
MtxVecInt.FreeIt(ref a);
end;
end;
Indexed: function BinaryNot(Index: Integer; Len: Integer): TMtxVecInt;
Apply binary "not" to elements stored in Self (this).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Integer | start index |
| 2 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Returns: the result of binary "not" of values stored in Self (this).
Overload 2: function BinaryNot(const Src: TMtxVecInt): TMtxVecInt;
Apply binary "not" to Src elements and store the result in Self (this).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | source TVecInt or TMtxInt |
Result: stored in self (calling object), returns self for chaining
Returns: the result of binary "not" of Src values stored in Self (this).
Indexed: function BinaryNot(const Src: TMtxVecInt; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
Apply binary "not" to Src elements and store the result in Self (this).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | SrcIndex | Integer | source start index |
| 3 | Index | Integer | start index |
| 4 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Returns: the result of binary "not" of Src values [SrcIndex]..[SrcIndex+Len-1] stored in Self (this) values [Index]..[Index+Len-1].