TSwizzle< TAny > Class Template Reference

template <>
class TSwizzle< TAny > : public TSwizzleBase

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.

Inherits from

Constructor & Destructor Documentation

TSwizzle()

TSwizzle ( ) [inline]

Default constructor.

Constructs an uninitialised swizzle.

TSwizzle(TAny *)

TSwizzle ( TAny * aPtr ) [inline]

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.

TSwizzle(TStreamId)

TSwizzle ( TStreamId anId ) [inline]

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.

TSwizzle(const TSwizzleBase &)

TSwizzle ( const TSwizzleBase & aSwizzle ) [inline]

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

Member Functions Documentation

AsPtr()

TAny * AsPtr ( ) const [inline]

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

operator TAny *()

operator TAny * ( ) const [inline]

operator=(TAny *)

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

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.

operator=(const TSwizzleBase &)

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

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.