TMtxInt::Disown Method

Overload List

#SignatureDescription
1void Disown(DewArray<int> &aArray, int &aIndex, int &ARows, int &ACols, TIntPrecision &aIntPrecision);Disowns a pointer to an array from matrix Values1D.
2void Disown();Disowns a pointer to an array from calling matrix Values1D.

Overload 1: void Disown(DewArray<int> &aArray, int &aIndex, int &ARows, int &ACols, TIntPrecision &aIntPrecision);

Disowns a pointer to an array from matrix Values1D.

#NameTypeDescription
1aArrayDewArray<int> &
2aIndexint &
3ARowsint &
4AColsint &
5aIntPrecisionTIntPrecision &
Remarks:

The method does the opposite of the TMtxInt::Adopt method. It will set the AArrays to Pointer(Values), ARows and ACols to matrix's TMtxInt::Rows and TMtxInt::Cols and aIntPrecision to matrix TMtxInt::IntPrecision property. Use the Disown method to "disconnect" AArray from the TMtxInt.IValues1D. Disown sets IValues1D, SValues1D and BValues1D array pointers to nil and Rows, Cols properties to ACols, but without freeing the allocated memory. The allocated memory can be disowned only, if it was adopted with a call to the TMtxInt::Adopt method.

See Also: TMtxInt::Adopt
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler

Overload 2: void Disown();

Disowns a pointer to an array from calling matrix Values1D.

Remarks:

It dismisses the Values, Values1D, CValues1D array and sets the TMtxInt::Rows and TMtxInt::Cols to zero.

Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler