TReferenceList::Add Method

Overload List

#SignatureDescription
1void Add(TMtxComponent *Src);Add a reference of Src to Self and also a reference of Self to Src.
2void Add(TReferenceList *Src, tNotifyEvent Event, tObject *CompSrc = null);Add a reference to Src to Self and also a reference of Self to Src.

Overload 1: void Add(TMtxComponent *Src);

Add a reference of Src to Self and also a reference of Self to Src.

#NameTypeDescription
1SrcTMtxComponent *
Remarks:

Event that will be called, when the connected component is destroyed is the method TMtxComponent.RemoveReference. The parameter passed to the method will be the pointer of the component (and not of its TReferenceList) that is being destroyed.

Declared in Dew::Math::TReferenceList · Dew.Math/MtxBaseComp.h · Cross-compiler

Overload 2: void Add(TReferenceList *Src, tNotifyEvent Event, tObject *CompSrc = null);

Add a reference to Src to Self and also a reference of Self to Src.

#NameTypeDescription
1SrcTReferenceList *
2EventtNotifyEvent
3CompSrc = nulltObject *
Remarks:

Event is the procedure to be called, when the connected component is destroyed.

Declared in Dew::Math::TReferenceList · Dew.Math/MtxBaseComp.h · Cross-compiler