00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050 #ifndef LASS_GUARDIAN_OF_INCLUSION_UTIL_IMPL_DISPATCHER_R_15_H
00051 #define LASS_GUARDIAN_OF_INCLUSION_UTIL_IMPL_DISPATCHER_R_15_H
00052
00053 #include "dispatcher_allocator.h"
00054
00055
00056
00057 namespace lass
00058 {
00059 namespace util
00060 {
00061 namespace impl
00062 {
00063
00064
00065
00066
00067
00068
00069 template
00070 <
00071 typename R, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10, typename P11, typename P12, typename P13, typename P14, typename P15
00072 >
00073 class DispatcherR15: public TDispatcherAllocatorBase
00074 {
00075 public:
00076
00077 DispatcherR15() {}
00078 virtual ~DispatcherR15() {}
00079
00080 R call(typename util::CallTraits<P1>::TParam iP1, typename util::CallTraits<P2>::TParam iP2, typename util::CallTraits<P3>::TParam iP3, typename util::CallTraits<P4>::TParam iP4, typename util::CallTraits<P5>::TParam iP5, typename util::CallTraits<P6>::TParam iP6, typename util::CallTraits<P7>::TParam iP7, typename util::CallTraits<P8>::TParam iP8, typename util::CallTraits<P9>::TParam iP9, typename util::CallTraits<P10>::TParam iP10, typename util::CallTraits<P11>::TParam iP11, typename util::CallTraits<P12>::TParam iP12, typename util::CallTraits<P13>::TParam iP13, typename util::CallTraits<P14>::TParam iP14, typename util::CallTraits<P15>::TParam iP15) const
00081 {
00082 return doCall(iP1, iP2, iP3, iP4, iP5, iP6, iP7, iP8, iP9, iP10, iP11, iP12, iP13, iP14, iP15);
00083 }
00084
00085 private:
00086
00087 virtual R doCall(typename util::CallTraits<P1>::TParam iP1, typename util::CallTraits<P2>::TParam iP2, typename util::CallTraits<P3>::TParam iP3, typename util::CallTraits<P4>::TParam iP4, typename util::CallTraits<P5>::TParam iP5, typename util::CallTraits<P6>::TParam iP6, typename util::CallTraits<P7>::TParam iP7, typename util::CallTraits<P8>::TParam iP8, typename util::CallTraits<P9>::TParam iP9, typename util::CallTraits<P10>::TParam iP10, typename util::CallTraits<P11>::TParam iP11, typename util::CallTraits<P12>::TParam iP12, typename util::CallTraits<P13>::TParam iP13, typename util::CallTraits<P14>::TParam iP14, typename util::CallTraits<P15>::TParam iP15) const = 0;
00088
00089 DispatcherR15(const DispatcherR15<R, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15>& iOther);
00090 DispatcherR15& operator=(const DispatcherR15<R, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15>& iOther);
00091 };
00092
00093
00094
00095
00096
00097
00098
00099
00100 template
00101 <
00102 typename R, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10, typename P11, typename P12, typename P13, typename P14, typename P15,
00103 typename FunctionType
00104 >
00105 class DispatcherR15Function: public DispatcherR15<R, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15>
00106 {
00107 public:
00108
00109 typedef FunctionType TFunction;
00110
00111 DispatcherR15Function(typename CallTraits<TFunction>::TParam iFunction):
00112 function_(iFunction)
00113 {
00114 }
00115
00116 private:
00117
00118 R doCall(typename util::CallTraits<P1>::TParam iP1, typename util::CallTraits<P2>::TParam iP2, typename util::CallTraits<P3>::TParam iP3, typename util::CallTraits<P4>::TParam iP4, typename util::CallTraits<P5>::TParam iP5, typename util::CallTraits<P6>::TParam iP6, typename util::CallTraits<P7>::TParam iP7, typename util::CallTraits<P8>::TParam iP8, typename util::CallTraits<P9>::TParam iP9, typename util::CallTraits<P10>::TParam iP10, typename util::CallTraits<P11>::TParam iP11, typename util::CallTraits<P12>::TParam iP12, typename util::CallTraits<P13>::TParam iP13, typename util::CallTraits<P14>::TParam iP14, typename util::CallTraits<P15>::TParam iP15) const
00119 {
00120 return function_(iP1, iP2, iP3, iP4, iP5, iP6, iP7, iP8, iP9, iP10, iP11, iP12, iP13, iP14, iP15);
00121 }
00122
00123 TFunction function_;
00124 };
00125
00126
00127
00128
00129
00130
00131
00132
00133 template
00134 <
00135 typename R, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10, typename P11, typename P12, typename P13, typename P14, typename P15,
00136 typename ObjectPtr, typename Method
00137 >
00138 class DispatcherR15Method: public DispatcherR15<R, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15>
00139 {
00140 public:
00141
00142 DispatcherR15Method(typename CallTraits<ObjectPtr>::TParam iObject,
00143 typename CallTraits<Method>::TParam iMethod):
00144 object_(iObject),
00145 method_(iMethod)
00146 {
00147 }
00148
00149 private:
00150
00151 R doCall(typename util::CallTraits<P1>::TParam iP1, typename util::CallTraits<P2>::TParam iP2, typename util::CallTraits<P3>::TParam iP3, typename util::CallTraits<P4>::TParam iP4, typename util::CallTraits<P5>::TParam iP5, typename util::CallTraits<P6>::TParam iP6, typename util::CallTraits<P7>::TParam iP7, typename util::CallTraits<P8>::TParam iP8, typename util::CallTraits<P9>::TParam iP9, typename util::CallTraits<P10>::TParam iP10, typename util::CallTraits<P11>::TParam iP11, typename util::CallTraits<P12>::TParam iP12, typename util::CallTraits<P13>::TParam iP13, typename util::CallTraits<P14>::TParam iP14, typename util::CallTraits<P15>::TParam iP15) const
00152 {
00153 return ((*object_).*method_)(iP1, iP2, iP3, iP4, iP5, iP6, iP7, iP8, iP9, iP10, iP11, iP12, iP13, iP14, iP15);
00154 }
00155
00156 ObjectPtr object_;
00157 Method method_;
00158 };
00159
00160
00161
00162 }
00163
00164 }
00165
00166 }
00167
00168 #endif // Guardian of Inclusion
00169
00170
00171