TSwizzleC< TAny > Class Template Reference

template <>
class TSwizzleC< TAny > : public TSwizzleCBase

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

Inherits from

Constructor & Destructor Documentation

TSwizzleC()

TSwizzleC ( ) [inline]

Default constructor.

Constructs an uninitialised swizzle.

TSwizzleC(const TAny *)

TSwizzleC ( const TAny * aPtr ) [inline]

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

Parameters

const TAny * aPtr A pointer to an untyped object which this swizzle is to represent.

TSwizzleC(TStreamId)

TSwizzleC ( 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.

TSwizzleC(const TSwizzleCBase &)

TSwizzleC ( const TSwizzleCBase & aSwizzle ) [inline]

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

Parameters

const TSwizzleCBase & aSwizzle The swizzle whose representation of an object is to be copied to this swizzle.

TSwizzleC(TStreamRef)

TSwizzleC ( TStreamRef aRef ) [inline]

Constructs the swizzle from a stream reference.

Parameters

TStreamRef aRef The stream reference.

Member Functions Documentation

AsPtr()

const TAny * AsPtr ( ) const [inline]

Gets a constant pointer to the untyped object that this swizzle represents.

operator const TAny *()

operator const TAny * ( ) const [inline]

operator=(const TAny *)

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

Sets this swizzle to represent the specified in-memory untyped object.

Parameters

const TAny * aPtr A pointer to the untyped object that the swizzle is to represent.

operator=(const TSwizzleCBase &)

TSwizzleC < TAny > & operator= ( const TSwizzleCBase & aSwizzle ) [inline]

Sets this swizzle to represent the untyped object currently represented by the specific swizzle.

Parameters

const TSwizzleCBase & aSwizzle A pointer to the untyped object that the swizzle is to represent.