ZFFramework
|
reflectable method definination for ZFFramework More...
Go to the source code of this file.
Classes | |
class | ZFMethod |
reflectable method for ZFObject More... | |
Macros | |
#define | ZFTOKEN_ZFMethodPrivilegeTypePublic |
string tokens | |
#define | ZFTOKEN_ZFMethodPrivilegeTypeProtected |
string tokens | |
#define | ZFTOKEN_ZFMethodPrivilegeTypePrivate |
string tokens | |
#define | ZFTOKEN_ZFMethodTypeNormal |
string tokens | |
#define | ZFTOKEN_ZFMethodTypeStatic |
string tokens | |
#define | ZFTOKEN_ZFMethodTypeVirtual |
string tokens | |
#define | ZFMP_IN(ParamType, paramName) |
macro to wrap param types for ZFMETHOD_INLINE_0 series | |
#define | ZFMP_IN_OPT(ParamType, paramName, DefaultValue) |
see ZFMP_IN | |
#define | ZFMP_OUT(ParamType, paramName) |
see ZFMP_IN | |
#define | ZFMP_OUT_OPT(ParamType, paramName, DefaultValue) |
see ZFMP_IN | |
#define | ZFMP_IN_OUT(ParamType, paramName) |
see ZFMP_IN | |
#define | ZFMP_IN_OUT_OPT(ParamType, paramName, DefaultValue) |
see ZFMP_IN | |
Typedefs | |
typedef zfauto(* | ZFMethodParamDefaultValueCallback) (const ZFMethod *invokerMethod, zfindex paramIndex) |
callback to access method param's default value, for method generic invoker | |
Enumerations | |
enum | ZFMethodPrivilegeType { ZFMethodPrivilegeTypePublic , ZFMethodPrivilegeTypeProtected , ZFMethodPrivilegeTypePrivate } |
access type for ZFMethod More... | |
enum | ZFMethodType { ZFMethodTypeNormal , ZFMethodTypeStatic , ZFMethodTypeVirtual } |
the method type More... | |
Functions | |
void | ZFMethodGetAllT (ZFCoreArray< const ZFMethod * > &ret, const ZFFilterForZFMethod *methodFilter=0) |
see ZFMethodGetAll | |
ZFCoreArray< const ZFMethod * > | ZFMethodGetAll (const ZFFilterForZFMethod *methodFilter=0) |
get all method currently registered | |
const ZFMethod * | ZFMethodForName (const zfchar *classNameOrNamespace, const zfchar *methodName) |
util method to find method | |
const ZFMethod * | ZFMethodForName (const zfchar *classNameOrNamespace, const zfchar *methodName, const zfchar *methodParamTypeId0, const zfchar *methodParamTypeId1=0, const zfchar *methodParamTypeId2=0, const zfchar *methodParamTypeId3=0, const zfchar *methodParamTypeId4=0, const zfchar *methodParamTypeId5=0, const zfchar *methodParamTypeId6=0, const zfchar *methodParamTypeId7=0) |
see ZFMethodForName | |
void | ZFMethodForNameGetAllT (ZFCoreArray< const ZFMethod * > &ret, const zfchar *classNameOrNamespace, const zfchar *methodName) |
util method to find method, see ZFMethodForName | |
ZFCoreArray< const ZFMethod * > | ZFMethodForNameGetAll (const zfchar *classNameOrNamespace, const zfchar *methodName) |
see ZFMethodForNameGetAllT | |
const ZFMethod * | ZFMethodAlias (const ZFMethod *method, const zfchar *aliasName) |
create new ZFMethod and alias to existing method | |
void | ZFMethodAliasRemove (const ZFMethod *aliasMethod) |
see ZFMethodAlias | |
reflectable method definination for ZFFramework
#define ZFMP_IN | ( | ParamType, | |
paramName ) |
macro to wrap param types for ZFMETHOD_INLINE_0 series
similar to ZF_IN for normal methods, here's a list of these macros used for ZFMETHOD_INLINE_0 series:
access type for ZFMethod
Enumerator | |
---|---|
ZFMethodPrivilegeTypePublic | public |
ZFMethodPrivilegeTypeProtected | protected |
ZFMethodPrivilegeTypePrivate | private |
enum ZFMethodType |
|
inline |
get all method currently registered
note, this method may cause performance issue if you have many method registered, use with caution
use ZFClass::methodForName or ZFMethodFuncForName if necessary
|
extern |
util method to find method
method can be class member or function type method, return first registered one if more than one method found, use ZFMethodForNameGetAll to check if you have overloaded method, use ZFMethodFuncForName to explicitly find function type method
create new ZFMethod and alias to existing method