TSwizzle< TAny > Class Template Reference

#include <s32std.h>

template <>
class TSwizzle< TAny > : public TSwizzleBase

Inherits from

Detailed 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.

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
aPtrA pointer to an untyped object which this swizzle is to represent.

TSwizzle ( TStreamId )

TSwizzle(TStreamIdanId)[inline]

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

Parameters
anIdThe 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
aSwizzleA reference to a swizzle whose representation of an object is to be copied to this swizzle

Member Function Documentation

AsPtr ( )

TAny *AsPtr()const [inline]

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

Return Value
A pointer to the untyped object represented by this swizzle.

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
aPtrA pointer to the untyped object which the swizzle is to represent.
Return Value
A reference to this swizzle.

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
aSwizzleThe swizzle whose representation of an object is to be copied to this swizzle.
Return Value
A reference to this swizzle.