macros to declare ZFProperty More...
Go to the source code of this file.
Macros | |
| #define | ZFPropertyAccess(OwnerClass, Name) |
| access the property directly, compile error if not declared | |
| #define | ZFPropertyNoInitValue |
| see ZFPROPERTY_RETAIN | |
| #define | ZFPROPERTY_RETAIN(Type, Name, ...) |
| declare a retain property | |
| #define | ZFPROPERTY_RETAIN_READONLY(Type, Name, InitValueOrEmpty) |
| see ZFPROPERTY_RETAIN | |
| #define | ZFPROPERTY_RETAIN_DETAIL(Type, Name, InitValueOrEmpty, SetterAccessType, GetterAccessType) |
| see ZFPROPERTY_RETAIN | |
| #define | ZFPROPERTY_ASSIGN(Type, Name, ...) |
| see ZFPROPERTY_RETAIN | |
| #define | ZFPROPERTY_ASSIGN_READONLY(Type, Name, InitValueOrEmpty) |
| see ZFPROPERTY_RETAIN | |
| #define | ZFPROPERTY_ASSIGN_DETAIL(Type, Name, InitValueOrEmpty, SetterAccessType, GetterAccessType) |
| see ZFPROPERTY_RETAIN | |
| #define | ZFPROPERTY_ON_INIT_DECLARE(Type, Name) |
| override life cycle callback for the property | |
| #define | ZFPROPERTY_ON_INIT_DECLARE_NO_AUTO_INIT(Type, Name) |
| see ZFPROPERTY_ON_INIT_DECLARE | |
| #define | ZFPROPERTY_ON_INIT_DEFINE(OwnerClass, Type, Name) |
| see ZFPROPERTY_ON_INIT_DECLARE | |
| #define | ZFPROPERTY_ON_INIT_INLINE(Type, Name) |
| see ZFPROPERTY_ON_INIT_DECLARE | |
| #define | ZFPROPERTY_ON_INIT_INLINE_NO_AUTO_INIT(Type, Name) |
| see ZFPROPERTY_ON_INIT_DECLARE | |
| #define | ZFPROPERTY_ON_UPDATE_DECLARE(Type, Name) |
| see ZFPROPERTY_ON_INIT_DECLARE | |
| #define | ZFPROPERTY_ON_UPDATE_DEFINE(OwnerClass, Type, Name) |
| see ZFPROPERTY_ON_INIT_DECLARE | |
| #define | ZFPROPERTY_ON_UPDATE_INLINE(Type, Name) |
| see ZFPROPERTY_ON_INIT_DECLARE | |
| #define | ZFPROPERTY_ON_ATTACH_DECLARE(Type, Name) |
| see ZFPROPERTY_ON_INIT_DECLARE | |
| #define | ZFPROPERTY_ON_ATTACH_DEFINE(OwnerClass, Type, Name) |
| see ZFPROPERTY_ON_INIT_DECLARE | |
| #define | ZFPROPERTY_ON_ATTACH_INLINE(Type, Name) |
| see ZFPROPERTY_ON_INIT_DECLARE | |
| #define | ZFPROPERTY_ON_DETACH_DECLARE(Type, Name) |
| see ZFPROPERTY_ON_INIT_DECLARE | |
| #define | ZFPROPERTY_ON_DETACH_DEFINE(OwnerClass, Type, Name) |
| see ZFPROPERTY_ON_INIT_DECLARE | |
| #define | ZFPROPERTY_ON_DETACH_INLINE(Type, Name) |
| see ZFPROPERTY_ON_INIT_DECLARE | |
Functions | |
| const ZFProperty * | ZFPropertyForName (const zfstring &classNameOrFullName, const zfstring &propertyName) |
| get property by name, or null if not registered | |
macros to declare ZFProperty
| #define ZFPROPERTY_RETAIN | ( | Type, | |
| Name, | |||
| ... ) |
declare a retain property
| #define ZFPROPERTY_ON_INIT_DECLARE | ( | Type, | |
| Name ) |
override life cycle callback for the property
proto type:
we have these property life cycle events:
after override, for detach events (detach/dealloc), subclass's one would be called before parent's one, for others (init/update/attach), parent's one would be called first
here's a simple hint for the property's life cycle: