diff -r 000000000000 -r 89d6a7a84779 Symbian3/SDK/Source/GUID-386FD0B9-D502-577C-BED2-5F31D9CA67CC.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-386FD0B9-D502-577C-BED2-5F31D9CA67CC.dita Thu Jan 21 18:18:20 2010 +0000 @@ -0,0 +1,26 @@ + + + + + +Using TSwizzle operators
Using the conversion to T* operator

In the following code fragment, the compiler invokes the T*() operator (because a pointer is required) for the TSwizzle<CClassB> object iB, before calling delete.

CClassABC::~CClassABC() + { + ... + if (iB.IsPtr()) + delete iB; + }
Using the indirection operator

In the following code fragment, the *() operator returns a reference to the CClassB object represented by the swizzle TSwizzle<CClassB> object, iB.

TStreamId CClassABC::StoreL() + { + ... + outstream << *iB; + ... + }
Using the indirect component selector

In the following code fragment, the operator -> gives access to the member iFixBuf of the CClassB object which is represented by the TSwizzle<CClassB> swizzle, iB.

void CClassABC::ConstructB(...,...,...,...) + { + iB->iFixBuf = aData; + ... + }
\ No newline at end of file