class TSwizzleCBase |
Base class for swizzles.
A swizzle maintains a dual representation for an object:
by stream id, if the object is not in memory (the stream contains the external representation of that object).
by pointer, if the object is in memory.
The class is not intended for instantiation.
Public Member Functions | |
---|---|
IMPORT_C TStreamId | AsId() |
IMPORT_C void | InternalizeL(RReadStream &) |
TBool | IsId() |
TBool | IsPtr() |
TBool | operator!=(const TSwizzleCBase &) |
TBool | operator!=(const TAny *) |
TBool | operator==(const TSwizzleCBase &) |
TBool | operator==(const TAny *) |
Protected Member Functions | |
---|---|
TSwizzleCBase() | |
TSwizzleCBase(const TAny *) | |
TSwizzleCBase(TStreamId) | |
TSwizzleCBase(TStreamRef) | |
IMPORT_C void | DoExternalizeL(RWriteStream &, TExternalizer< TAny >) |
const TAny * | Ptr() |
Private Member Functions | |
---|---|
IMPORT_C TBool | IsIdRep(const TAny *) |
IMPORT_C TBool | IsPtrRep(const TAny *) |
IMPORT_C void | __DbgChkPtr(const TAny *) |
IMPORT_C void | __DbgChkRef(TStreamRef) |
Private Attributes | |
---|---|
const TAny * | iPtr |
TSwizzleCBase | ( | const TAny * | aPtr | ) | [protected, inline] |
const TAny * aPtr |
TSwizzleCBase | ( | TStreamRef | aRef | ) | [protected, inline] |
TStreamRef aRef |
IMPORT_C void | DoExternalizeL | ( | RWriteStream & | aStream, |
TExternalizer< TAny > | anExter | |||
) | const [protected] |
RWriteStream & aStream | |
TExternalizer< TAny > anExter |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
RReadStream & aStream |
TBool | IsId | ( | ) | const [inline] |
Tests whether this swizzle currently represents an object as a stream id.
True, if this swizzle currently maintains the representation of the object as a stream id; False, otherwise. Note that if the swizzle is uninitialised, the value returned by this function is not defined.
IMPORT_C TBool | IsIdRep | ( | const TAny * | aPtr | ) | [private, static] |
const TAny * aPtr |
TBool | IsPtr | ( | ) | const [inline] |
Tests whether this swizzle currently represents an object as a pointer.
True, if this swizzle currently maintains the object representation as a pointer; False, otherwise. Note that if the swizzle is uninitialised, the value returned by this function is not defined.
IMPORT_C TBool | IsPtrRep | ( | const TAny * | aPtr | ) | [private, static] |
const TAny * aPtr |
IMPORT_C void | __DbgChkPtr | ( | const TAny * | aPtr | ) | [private, static] |
const TAny * aPtr |
IMPORT_C void | __DbgChkRef | ( | TStreamRef | aRef | ) | [private, static] |
TStreamRef aRef |
TBool | operator!= | ( | const TSwizzleCBase & | aSwizzle | ) | const [inline] |
Compares for inequality with another swizzle.
Use this operator to determine whether this swizzle represents a different object to that represented by the specified swizzle.
Both this swizzle and the specified swizzle must maintain the representation of their respective objects as either pointers or stream ids.
If one swizzle maintains the representation of its object as a pointer while the other swizzle maintains the representation of its object as a stream id, the comparison is meaningless and always returns true.
True, if the represented objects are not the same; False, otherwise
const TSwizzleCBase & aSwizzle | A reference to the swizzle to be compared with this swizzle. |
TBool | operator!= | ( | const TAny * | aPtr | ) | const [inline] |
Compares for inequality with an in-memory object.
Use this operator to determine whether this swizzle represents a different in-memory object to that represented by the specified pointer.
This swizzle must maintain the representation of its object as a pointer. If it maintains the representation of its object as a swizzle, the comparison is meaningless and always returns true.
True, if the represented objects are not the same; False, otherwise
const TAny * aPtr | A pointer to the object to be compared with this swizzle. |
TBool | operator== | ( | const TSwizzleCBase & | aSwizzle | ) | const [inline] |
Compares for equality with another swizzle.
Use this operator to determine whether this swizzle represents the same object as that represented by the specified swizzle.
Both this swizzle and the specified swizzle must maintain the representation of their respective objects as either pointers or stream ids.
If one swizzle maintains the representation of its object as a pointer while the other swizzle maintains the representation of its object as a stream id, the comparison is meaningless and always returns false.
True, if the represented objects are the same; False, otherwise.
const TSwizzleCBase & aSwizzle | A reference to the swizzle to be compared with this swizzle. |
TBool | operator== | ( | const TAny * | aPtr | ) | const [inline] |
Compares for equality with an in-memory object.
Use this operator to determine whether this swizzle represents the same in-memory object as that represented by the specified pointer.
This swizzle must maintain the representation of its object as a pointer. If it maintains the representation of its object as a swizzle, the comparison is meaningless and always returns false.
True, if the represented objects are the same; False, otherwise.
const TAny * aPtr | A pointer to the object to be compared with this swizzle. |