maxscript/macros/generic_class.h File Reference

generic_class.h File Reference
+ This reference page is linked to from the following overview topics:

Macros

#define DECLARE_LOCAL_GENERIC_CLASS(_rootclass, _cls)
 
#define DEFINE_LOCAL_GENERIC_CLASS(_rootClass, _cls)
 

Macro Definition Documentation

#define DECLARE_LOCAL_GENERIC_CLASS (   _rootclass,
  _cls 
)
Value:
class _cls##Class : public ValueMetaClass \
{ \
public: \
_cls##Class(const MCHAR* name); \
}; \
extern _cls##Class _cls##_class; \
class _rootclass; \
typedef Value* (_rootclass::*local_value_vf)(Value**, int); \
class _cls : public Generic \
{ \
public: \
_cls(); \
_cls(const MCHAR* name, local_value_vf fn); \
Value* apply(Value** arglist, int count, CallContext* cc = NULL); \
};
MAXMEM_EXTERN_C UtilExport void(__cdecl *MAX_free)(void *memblock)
void collect()
#define classof_methods(_cls, _super)
Definition: value.h:314
Definition: value.h:282
Value * name
Definition: structs.h:25
#define NULL
Definition: autoptr.h:20
Definition: functions.h:55
ScripterExport Value * apply(Value **arglist, int count, CallContext *cc=NULL)
#define MCHAR
MBCS/Unicode helper defines std::wofstream doesn't mix well with Unicode.
Definition: strbasic.h:92
Definition: value.h:103
virtual void collect()=0
visible_class(Generic) class Generic Generic()
Definition: functions.h:76
visible_class(Primitive) class Primitive value_cf fn_ptr
Definition: functions.h:129
Value *(MS_LOCAL_ROOT_CLASS::* local_value_vf)(Value **, int)
Definition: local_class.h:36
#define DEFINE_LOCAL_GENERIC_CLASS (   _rootClass,
  _cls 
)