Overload List
| # | Signature | Description |
|---|---|---|
| 1 | VectorInt(int ALength); | Constructor of the record. |
| 2 | VectorInt(int ALength, TIntPrecision aPrecision); | Internally creates TVecInt object without using object cache. |
| 3 | VectorInt(TVecInt *Src); | Uses TVecInt object as internal storage. |
| 4 | VectorInt(bool FromObjectCache); | Constructor of the record. |
| 5 | VectorInt(); | |
| 6 | VectorInt(const VectorInt &aSrc); | |
| 7 | VectorInt(std::initializer_list<int> aValues); | |
| 8 | VectorInt(const DewArray<TCplx> &AValue); | Explicitely convert array of complex values to VectorInt. |
| 9 | VectorInt(const DewArray<double> &AValue); | Explicitely convert array of double values to VectorInt. |
| 10 | VectorInt(const DewArray<float> &AValue); | Explicitely convert array of single values to VectorInt. |
| 11 | VectorInt(TMtxVec *AValue); | Explicitely convert TMtxVec to VectorInt. |
| 12 | VectorInt(const DewArray<int> &AValue); | Implicit type conversion from an array of integer to VectorInt. |
| 13 | VectorInt(const Matrix &AValue); | Copies Matrix data to VectorInt. |
| 14 | VectorInt(const Vector &AValue); | Explicitely convert Vector to VectorInt. |
Overload 1: VectorInt(int ALength);
Constructor of the record.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ALength | int |
Returns a Vector with internal TVecInt object created explicitely with Length property set to aLength and IntPrecision property set to int32. Call this constructor, if the Vector type variable is a global variable with a long life span.
Overload 2: VectorInt(int ALength, TIntPrecision aPrecision);
Internally creates TVecInt object without using object cache.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ALength | int | |
| 2 | aPrecision | TIntPrecision |
Creates TVecInt object without using object cache. Suitable for declaring global variables.
Overload 3: VectorInt(TVecInt *Src);
Uses TVecInt object as internal storage.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TVecInt * |
The resulting Vector will own Src object of TVecInt type and will release it once Vector gets out of scope.
Overload 4: VectorInt(bool FromObjectCache);
Constructor of the record.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | FromObjectCache | bool |
Returns a Vector with internal TVecInt object created from object cache (CreateIt), if FromObjectCache is True. Pass false to the constructor or do not call it at all, if the variable is a local variable. Object cache has limited size.
Overload 5: VectorInt();
Overload 6: VectorInt(const VectorInt &aSrc);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aSrc | const VectorInt & |
Overload 7: VectorInt(std::initializer_list<int> aValues);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aValues | std::initializer_list<int> |
Overload 8: VectorInt(const DewArray<TCplx> &AValue);
Explicitely convert array of complex values to VectorInt.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AValue | const DewArray<TCplx> & |
Copies all values from the complex array to the result with precision set at 32bit signed integer.
Overload 9: VectorInt(const DewArray<double> &AValue);
Explicitely convert array of double values to VectorInt.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AValue | const DewArray<double> & |
Copies all values from the double array to the result with precision set at 32bit signed integer;
Overload 10: VectorInt(const DewArray<float> &AValue);
Explicitely convert array of single values to VectorInt.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AValue | const DewArray<float> & |
Copies all values from the AValue array to the result with precision set at 32bit signed integer.
Overload 11: VectorInt(TMtxVec *AValue);
Explicitely convert TMtxVec to VectorInt.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AValue | TMtxVec * |
Copies all values from AValue to the result with precision set at 32bit signed integer.
Overload 12: VectorInt(const DewArray<int> &AValue);
Implicit type conversion from an array of integer to VectorInt.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AValue | const DewArray<int> & |
Copies array and resizes resulting vector. Example of usage in Delphi XE7 and newer:
var a: VectorInt;
begin
a := [1,2,3,4,5];
a := [1,2,3,4] + [1,2]; //the + here is "column concatenation" a := [1,2,3,4] + a; //operator not applicable (it wont compile) end;
Overload 13: VectorInt(const Matrix &AValue);
Copies Matrix data to VectorInt.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AValue | const Matrix & |
Copies all values from AValue to the result.
Overload 14: VectorInt(const Vector &AValue);
Explicitely convert Vector to VectorInt.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AValue | const Vector & |
Copies all values from AValue to the result.