Vector::Disown Method

Overload List

#SignatureDescription
1void Disown(DewArray<float> &aArray, int &aIndex, int &ALength, bool &aIsComplex) const;Disowns a values pointer.
2void Disown(DewArray<double> &aArray, int &aIndex, int &ALength, bool &aIsComplex) const;
3void Disown() const;Disowns a calling vector values pointer by setting Values, CValues to nil and TMtxVecBase::Length to 0.

Overload 1: void Disown(DewArray<float> &aArray, int &aIndex, int &ALength, bool &aIsComplex) const;

Disowns a values pointer.

#NameTypeDescription
1aArrayDewArray<float> &
2aIndexint &
3ALengthint &
4aIsComplexbool &
Remarks:

Disowns a values pointer. The Disown method is the opposite of the Vector::Adopt method. It will set the AArrays to Pointer(Values), ALength to vector's TMtxVecBase::Length and IsComplex to TMtxVec::Complex property. Use the Disown method to "disconnect" AArray from the TVec.Values. Disown sets Values and CValues array pointers to nil and Length property to zero, but without freeing the allocated memory. The allocated memory can be disowned only, if it was adopted with a call to the Vector::Adopt method.

See Also: Vector::Adopt
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 2: void Disown(DewArray<double> &aArray, int &aIndex, int &ALength, bool &aIsComplex) const;

#NameTypeDescription
1aArrayDewArray<double> &
2aIndexint &
3ALengthint &
4aIsComplexbool &
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 3: void Disown() const;

Disowns a calling vector values pointer by setting Values, CValues to nil and TMtxVecBase::Length to 0.

Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler