00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00030 #ifndef __VDBL_METHOD_H
00031 #define __VDBL_METHOD_H
00032
00033 #include <vdbl_config.h>
00034 #include <vdbl_types.h>
00035 #include <vdbl_context.h>
00036
00037 __VDBL_BEGIN_NAMESPACE
00038
00039 #if defined(__sgi) && !defined(__GNUC__) && (_MIPS_SIM != _MIPS_SIM_ABI32)
00040 #pragma set woff 1209
00041 #endif
00042
00043 class _VDBL_row;
00044
00046
00054 template <class _R>
00055 class _VDBL_method
00056 {
00057 private:
00059 typedef _R return_type;
00060
00061 public:
00065 _VDBL_method() {}
00069 _VDBL_method(const _VDBL_method& __m) {}
00070
00074 virtual ~_VDBL_method() {}
00075
00079 virtual const return_type& operator() () VDBL_PURE_VIRTUAL
00083 virtual const return_type& def() VDBL_PURE_VIRTUAL
00087 virtual void setcontext(const context* _c, const _VDBL_row* _r) {}
00088 };
00089
00091
00099 template <class _R>
00100 class method : public _VDBL_method<_R>
00101 {
00102 public:
00107 typedef _R return_type;
00108 };
00109
00110 #if defined(__sgi) && !defined(__GNUC__) && (_MIPS_SIM != _MIPS_SIM_ABI32)
00111 #pragma reset woff 1209
00112 #endif
00113
00114 __VDBL_END_NAMESPACE
00115
00116 #endif
00117
00118
00119
00120