TMtx::Disown Method

Overload List

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

Overload 1: void Disown(DewArray<double> &aArray, int &aIndex, int &ARows, int &ACols, bool &aIsComplex);

Disowns a pointer to an array from matrix Values1D.

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

The method does the opposite of the TMtx::Adopt method. It will set the AArrays to Pointer(Values), ARows and ACols to matrix's TMtx::Rows and TMtx::Cols and IsComplex to matrix TMtx::Complex property. Use the Disown method to "disconnect" AArray from the TMtx.Values1D. Disown sets Values1D and CValues1D 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 TMtx::Adopt method.

See Also: TMtx::Adopt
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler

Overload 2: void Disown(DewArray<float> &aArray, int &aIndex, int &ARows, int &ACols, bool &aIsComplex);

#NameTypeDescription
1aArrayDewArray<float> &
2aIndexint &
3ARowsint &
4AColsint &
5aIsComplexbool &
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler

Overload 3: void Disown();

Disowns a pointer to an array from calling matrix Values1D.

Remarks:

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

Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler