interface shows a ZFObject is copyable More...
#include <ZFCopyable.h>
Public Member Functions | |
zfautoT< ZFCopyable > | copy (void) |
return a copy of this object | |
void | copyFrom (ZFObject *anotherObj) |
see copy, anotherObj must be same type as this object (by classData), otherwise, do nothing | |
![]() | |
virtual const ZFClass * | classData (void)=0 |
get instance's class info | |
virtual ZFObject * | toObject (void)=0 |
convert to ZFObject type | |
Static Public Member Functions | |
static const ZFClass * | ClassData (void) |
get class info | |
![]() | |
static const ZFClass * | ClassData (void) |
get class info | |
Protected Types | |
typedef ZFInterface | zfsuper |
typedef for super (always ZFInterface for an interface type) | |
typedef ZFCopyable | zfself |
typedef for self | |
![]() | |
typedef _ZFP_ObjI_Base | zfsuper |
typedef for super (always ZFInterface for an interface type) | |
typedef ZFInterface | zfself |
typedef for self | |
Protected Member Functions | |
virtual void | copyableOnCopyFrom (ZFObject *anotherObj) |
called by copy to copy contents from anotherObj | |
interface shows a ZFObject is copyable
|
inlineprotectedvirtual |
called by copy to copy contents from anotherObj
anotherObj is ensured the same type as self, ensured not null, and ensured not same instance of this
by default this method would do nothing for performance
Reimplemented in ZFContainer, ZFEnum, ZFKeyValueContainer, ZFRegExp, ZFStyle, and ZFTime.