TSwizzleC< TAny > Class Template Reference

#include <s32std.h>

template <>
class TSwizzleC< TAny > : public TSwizzleCBase

Inherits from

Detailed Description

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.

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

TSwizzleC ( TStreamId )

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

TSwizzleC ( const TSwizzleCBase & )

TSwizzleC(const TSwizzleCBase &aSwizzle)[inline]

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

TSwizzleC ( TStreamRef )

TSwizzleC(TStreamRefaRef)[inline]

Constructs the swizzle from a stream reference.

Parameters
aRefThe stream reference.

Member Function Documentation

AsPtr ( )

const TAny *AsPtr()const [inline]

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

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

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

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
aSwizzleA pointer to the untyped object that the swizzle is to represent.
Return Value
A reference to a swizzle whose representation of an object is to be copied to this swizzle.