NEURON
field.h File Reference
#include <InterViews/input.h>
#include <InterViews/resource.h>

Go to the source code of this file.

Classes

class  FieldSEditorAction
 
class  FieldSEditor
 

Macros

#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)
 

Macro Definition Documentation

◆ __FieldSEditorCallback

#define __FieldSEditorCallback (   T)    T _FieldSEditorCallback

Definition at line 56 of file field.h.

◆ __FieldSEditorMemberFunction

#define __FieldSEditorMemberFunction (   T)    T _FieldSEditorMemberFunction

Definition at line 58 of file field.h.

◆ declareFieldSEditorCallback

#define declareFieldSEditorCallback (   T)
Value:
typedef void (T::*FieldSEditorMemberFunction(T))(FieldSEditor*); \
: public FieldSEditorAction { \
public: \
FieldSEditorCallback( \
virtual ~FieldSEditorCallback(T)(); \
\
virtual void accept(FieldSEditor*); \
virtual void cancel(FieldSEditor*); \
\
private: \
T* obj_; \
FieldSEditorMemberFunction(T) accept_; \
FieldSEditorMemberFunction(T) cancel_; \
};
#define FieldSEditorCallback(T)
Definition: field.h:57
#define FieldSEditorMemberFunction(T)
Definition: field.h:59

Definition at line 62 of file field.h.

◆ FieldSEditorCallback

#define FieldSEditorCallback (   T)    __FieldSEditorCallback(T)

Definition at line 57 of file field.h.

◆ FieldSEditorMemberFunction

#define FieldSEditorMemberFunction (   T)    __FieldSEditorMemberFunction(T)

Definition at line 59 of file field.h.

◆ implementFieldSEditorCallback

#define implementFieldSEditorCallback (   T)
Value:
T)(T * obj, FieldSEditorMemberFunction(T) accept, FieldSEditorMemberFunction(T) cancel) { \
obj_ = obj; \
accept_ = accept; \
cancel_ = cancel; \
} \
\
void FieldSEditorCallback(T)::accept(FieldSEditor* f) { \
(obj_->*accept_)(f); \
} \
void FieldSEditorCallback(T)::cancel(FieldSEditor* f) { \
(obj_->*cancel_)(f); \
}

Definition at line 80 of file field.h.