Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: S32STD.H

Class TSwizzle< TAny >

class TSwizzle< TAny > : public TSwizzleBase;

Description

A specific instantiation of the family of TSwizzle<class T> classes that maintains the representation of an untyped object as a non-const pointer or as a stream id.

Derivation

Members

Defined in TSwizzle< TAny >:
AsPtr(), TSwizzle(), TSwizzle(), TSwizzle(), TSwizzle(), operator TAny *(), operator=(), operator=()

Inherited from TSwizzleBase:
Ptr()

Inherited from TSwizzleCBase:
AsId(), DoExternalizeL(), InternalizeL(), IsId(), IsPtr(), operator!=(), operator==()


Member functions


TSwizzle()

inline TSwizzle();

Description

Default constructor.

Constructs an uninitialised swizzle.

Return value


TSwizzle()

inline TSwizzle(TAny *aPtr);

Description

Constructs the swizzle representing the specified untyped object as a pointer.

Parameters

TAny *aPtr

A pointer to an untyped object which this swizzle is to represent.

Return value


TSwizzle()

inline TSwizzle(TStreamId anId);

Description

Constructs the swizzle for an untyped object, represented as a stream id.

Parameters

TStreamId anId

The id of a stream containing the external representation of the untyped object which this swizzle is to represent.

Return value


TSwizzle()

inline TSwizzle(const TSwizzleBase &aSwizzle);

Description

Constructs the swizzle to represent the untyped object currently represented by the specified swizzle.

Parameters

const TSwizzleBase &aSwizzle

A reference to a swizzle whose representation of an object is to be copied to this swizzle

Return value


operator=()

inline TSwizzle< TAny > &operator=(TAny *aPtr);

Description

Sets this swizzle to represent the in-memory object, pointed to by the specified pointer.

Parameters

TAny *aPtr

A pointer to the untyped object which the swizzle is to represent.

Return value

TSwizzle< TAny > &

A reference to this swizzle.


operator=()

inline TSwizzle< TAny > &operator=(const TSwizzleBase &aSwizzle);

Description

Sets the swizzle to represent the untyped object currently represented by the specified swizzle.

Parameters

const TSwizzleBase &aSwizzle

The swizzle whose representation of an object is to be copied to this swizzle.

Return value

TSwizzle< TAny > &

A reference to this swizzle.


AsPtr()

inline TAny *AsPtr() const;

Description

Returns a pointer to the untyped object that this swizzle represents.

Return value

TAny *

A pointer to the untyped object represented by this swizzle.


operator TAny *()

inline operator TAny *() const;

Description

Return value