generic_class.h File Reference

This reference page is linked to from the following overview topics: SDK Change Details.


Go to the source code of this file.

Defines

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

Define Documentation

#define DECLARE_LOCAL_GENERIC_CLASS (   _rootclass,
  _cls 
)
Value:
class _cls##Class : public ValueMetaClass                               \
    {                                                                       \
    public:                                                                 \
        _cls##Class(MCHAR* name);                                          \
        void collect();                                                    \
    };                                                                      \
    extern _cls##Class _cls##_class;                                        \
    class _rootclass;                                                       \
    typedef Value* (_rootclass::*local_value_vf)(Value**, int);             \
    class _cls : public Generic                                             \
    {                                                                       \
    public:                                                                 \
        local_value_vf fn_ptr;                                             \
        _cls();                                                            \
        _cls(MCHAR* name, local_value_vf fn);                              \
        classof_methods (_cls, Generic);                                   \
        void collect();                                                    \
        Value* apply(Value** arglist, int count, CallContext* cc = NULL);  \
    };

Definition at line 16 of file generic_class.h.

#define DEFINE_LOCAL_GENERIC_CLASS (   _rootClass,
  _cls 
)

Definition at line 37 of file generic_class.h.

#define DEFINE_LOCAL_GENERIC_CLASS_DEBUG_OK (   _rootClass,
  _cls 
)

Definition at line 87 of file generic_class.h.