TSwizzle< TAny > Class Template Reference
Link against: eposprvtyp.lib
template <> |
class TSwizzle< TAny > : public TSwizzleBase |
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 ( )
Default constructor.
Constructs an uninitialised swizzle.
TSwizzle ( TAny * )
TSwizzle | ( | 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. |
TSwizzle ( 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. |
TSwizzle ( const TSwizzleBase & )
Constructs the swizzle to represent the untyped object currently represented by the specified swizzle.
Parameter | Description | aSwizzle | A 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 * )
Sets this swizzle to represent the in-memory object, pointed to by the specified pointer.
Parameter | Description | aPtr | A pointer to the untyped object which the swizzle is to represent. |
Returns: A reference to this swizzle.
operator= ( const TSwizzleBase & )
Sets 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. |
Returns: A reference to this swizzle.