TSwizzle< TAny > Class Template Reference

#include <s32std.h>

Link against: eposprvtyp.lib

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.

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

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

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

Returns: 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.

ParameterDescription
aPtrA pointer to the untyped object which the swizzle is to represent.

Returns: 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.

ParameterDescription
aSwizzleThe swizzle whose representation of an object is to be copied to this swizzle.

Returns: A reference to this swizzle.