ZFFramework
Loading...
Searching...
No Matches
ZFCopyable Class Reference

interface shows a ZFObject is copyable More...

#include <ZFCopyable.h>

Inheritance diagram for ZFCopyable:
ZFInterface ZFContainer ZFCurve ZFKeyValueContainer ZFRegExp ZFStyle ZFTime ZFArray ZFHashSet ZFSet ZFCurveBackIn ZFCurveBackInOut ZFCurveBackOut ZFCurveBounceIn ZFCurveBounceInOut ZFCurveBounceOut ZFCurveEaseIn ZFCurveEaseInOut ZFCurveEaseOut ZFCurveLinear ZFCurveLoop ZFCurveLoopBackIn ZFCurveLoopBackInOut ZFCurveLoopBackOut ZFCurveLoopBounceIn ZFCurveLoopBounceInOut ZFCurveLoopBounceOut ZFCurveLoopEaseIn ZFCurveLoopEaseInOut ZFCurveLoopEaseOut ZFCurveLoopLinear ZFHashMap ZFMap ZFAnimation ZFAudio ZFOutputFormat ZFStruct ZFStyleList ZFTextTemplateRunFilter ZFTypeIdWrapper ZFUIButtonGroup ZFUICellAdapterBasic ZFUICellArray ZFUIDialog ZFUIGlobalStyle ZFUIImage ZFUILayoutParam ZFUIListViewCellUpdater ZFUIScrollThumbDefault ZFUITextConfig ZFUIView

Public Member Functions

zfautoT< ZFCopyablecopy (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
Public Member Functions inherited from ZFInterface
virtual const ZFClassclassData (void)=0
 get instance's class info
virtual ZFObjecttoObject (void)=0
 convert to ZFObject type

Static Public Member Functions

static const ZFClassClassData (void)
 get class info
Static Public Member Functions inherited from ZFInterface
static const ZFClassClassData (void)
 get class info

Protected Types

typedef ZFInterface zfsuper
 typedef for super (always ZFInterface for an interface type)
typedef ZFCopyable zfself
 typedef for self
Protected Types inherited from ZFInterface
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

Detailed Description

interface shows a ZFObject is copyable

Member Function Documentation

◆ copyableOnCopyFrom()

virtual void ZFCopyable::copyableOnCopyFrom ( ZFObject * anotherObj)
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.


The documentation for this class was generated from the following file: