Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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 >:

Inherited from TSwizzleBase:

Inherited from TSwizzleCBase:


Member functions


TSwizzle()

inline TSwizzle();

Description

Default constructor.

Constructs an uninitialised swizzle.

Return value


TSwizzle(TAny *)

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(TStreamId)

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(const TSwizzleBase &)

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=(TAny *)

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=(const TSwizzleBase &)

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()const

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 *()const

inline operator TAny *() const;

Description

Return value