TSwizzleC< TAny > Class Template Reference
Link against: eposprvtyp.lib
template <> |
class TSwizzleC< TAny > : public TSwizzleCBase |
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 ( )
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.
Parameter | Description | aPtr | A pointer to an untyped object which this swizzle is to represent. |
TSwizzleC ( TStreamId )
Constructs the swizzle for an untyped object, represented as a stream id.
Parameter | Description | anId | The id of a stream containing the external representation of the untyped object which this swizzle is to represent. |
TSwizzleC ( const TSwizzleCBase & )
Constructs the swizzle to represent the untyped object currently represented by the specified swizzle.
Parameter | Description | aSwizzle | The swizzle whose representation of an object is to be copied to this swizzle. |
TSwizzleC ( TStreamRef )
Constructs the swizzle from a stream reference.
Parameter | Description | aRef | The 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 * )
Sets this swizzle to represent the specified in-memory untyped object.
Parameter | Description | aPtr | A pointer to the untyped object that the swizzle is to represent. |
Returns: A reference to this swizzle representing the untyped object.
operator= ( const TSwizzleCBase & )
Sets this swizzle to represent the untyped object currently represented by the specific swizzle.
Parameter | Description | aSwizzle | A 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.