field.h File Reference

#include <InterViews/input.h>
#include <InterViews/resource.h>
Include dependency graph for field.h:

Go to the source code of this file.

Classes

class  FieldSEditorAction
class  FieldSEditor

Defines

#define __FieldSEditorCallback(T)   T_FieldSEditorCallback
#define FieldSEditorCallback(T)   __FieldSEditorCallback(T)
#define __FieldSEditorMemberFunction(T)   T_FieldSEditorMemberFunction
#define FieldSEditorMemberFunction(T)   __FieldSEditorMemberFunction(T)
#define declareFieldSEditorCallback(T)
#define implementFieldSEditorCallback(T)

Define Documentation

#define __FieldSEditorCallback (  )     T_FieldSEditorCallback
#define __FieldSEditorMemberFunction (  )     T_FieldSEditorMemberFunction
#define declareFieldSEditorCallback (  ) 
Value:
typedef void (T::*FieldSEditorMemberFunction(T))(FieldSEditor*); \
class FieldSEditorCallback(T) : public FieldSEditorAction { \
public: \
    FieldSEditorCallback(T)( \
   T*, FieldSEditorMemberFunction(T) accept, \
   FieldSEditorMemberFunction(T) cancel \
    ); \
    virtual ~FieldSEditorCallback(T)(); \
\
    virtual void accept(FieldSEditor*); \
    virtual void cancel(FieldSEditor*); \
private: \
    T* obj_; \
    FieldSEditorMemberFunction(T) accept_; \
    FieldSEditorMemberFunction(T) cancel_; \
};
#define FieldSEditorCallback (  )     __FieldSEditorCallback(T)
#define FieldSEditorMemberFunction (  )     __FieldSEditorMemberFunction(T)
#define implementFieldSEditorCallback (  ) 
Value:
FieldSEditorCallback(T)::FieldSEditorCallback(T)( \
    T* obj, FieldSEditorMemberFunction(T) accept, \
    FieldSEditorMemberFunction(T) cancel \
) { \
    obj_ = obj; \
    accept_ = accept; \
    cancel_ = cancel; \
} \
\
FieldSEditorCallback(T)::~FieldSEditorCallback(T)() { } \
\
void FieldSEditorCallback(T)::accept(FieldSEditor* f) { (obj_->*accept_)(f); } \
void FieldSEditorCallback(T)::cancel(FieldSEditor* f) { (obj_->*cancel_)(f); }
Generated on Mon Jun 13 08:10:28 2011 for NEURON by  doxygen 1.6.3