Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVecInt *Copy(TMtxVecInt *Src); | Copy object values. |
| 2 | TMtxVecInt *Copy(TMtxVecInt *Src, int SrcIndex, int Index, int Len); | Copy Src elements [SrcIndex]..[SrcIndex+Len-1] in the calling object elements [Index]..[Index+Len-1]. |
Overload 1: TMtxVecInt *Copy(TMtxVecInt *Src);
Copy object values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt * |
Remarks:
Copy each of Vec elements to the calling object. The Size property of the calling object is set implicitly to match Vec object.
Examples
#include "MtxVecInt.h"
using namespace Dew;
using namespace Dew::Math;
void Example()
{
TVecInt *a, *b, *c;
a = new TVecInt();
b = new TVecInt();
a->SetIt(DewArray<int>{1,2,3,4}); // a = [1,2,3,4]
b->Copy(a); // b = [1,2,3,4]
delete a;
delete b;
}
Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler
Overload 2: TMtxVecInt *Copy(TMtxVecInt *Src, int SrcIndex, int Index, int Len);
Copy Src elements [SrcIndex]..[SrcIndex+Len-1] in the calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt * | |
| 2 | SrcIndex | int | |
| 3 | Index | int | |
| 4 | Len | int |
Remarks:
Calling vector TAbstractMtxVecInt::Size must be set explicitly. An exception is raised if array borders are overrun or underrun.
Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler