TSwizzleC< TAny > Class Template Reference

#include <s32std.h>

Link against: eposprvtyp.lib

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.

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

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

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

ParameterDescription
aRefThe stream reference.

Member Function Documentation

AsPtr ( )

const TAny *AsPtr()const [inline]

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

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

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

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

ParameterDescription
aSwizzleA pointer to the untyped object that the swizzle is to represent.

Returns: A reference to a swizzle whose representation of an object is to be copied to this swizzle.