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 #define UNARY_FUNCTION(ReturnType, Type1, Func, Dfunc) \
00030 \
00031 TEMPLATE \
00032 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > Func \
00033 ( \
00034 const GeometricField<Type1, PatchField, GeoMesh>& df \
00035 ); \
00036 \
00037 TEMPLATE \
00038 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > Func \
00039 ( \
00040 const tmp<GeometricField<Type1, PatchField, GeoMesh> >& tdf1 \
00041 );
00042
00043
00044
00045
00046 #define UNARY_OPERATOR(ReturnType, Type1, Op, opFunc, Dfunc) \
00047 \
00048 TEMPLATE \
00049 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > operator Op \
00050 ( \
00051 const GeometricField<Type1, PatchField, GeoMesh>& df1 \
00052 ); \
00053 \
00054 TEMPLATE \
00055 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > operator Op \
00056 ( \
00057 const tmp<GeometricField<Type1, PatchField, GeoMesh> >& tdf1 \
00058 );
00059
00060
00061
00062
00063 #define BINARY_FUNCTION(ReturnType, Type1, Type2, Func) \
00064 \
00065 TEMPLATE \
00066 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > Func \
00067 ( \
00068 const GeometricField<Type1, PatchField, GeoMesh>& df1, \
00069 const GeometricField<Type2, PatchField, GeoMesh>& df2 \
00070 ); \
00071 \
00072 TEMPLATE \
00073 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > Func \
00074 ( \
00075 const GeometricField<Type1, PatchField, GeoMesh>& df1, \
00076 const tmp<GeometricField<Type2, PatchField, GeoMesh> >& tdf2 \
00077 ); \
00078 \
00079 TEMPLATE \
00080 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > Func \
00081 ( \
00082 const tmp<GeometricField<Type1, PatchField, GeoMesh> >& tdf1, \
00083 const GeometricField<Type2, PatchField, GeoMesh>& df2 \
00084 ); \
00085 \
00086 TEMPLATE \
00087 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > Func \
00088 ( \
00089 const tmp<GeometricField<Type1, PatchField, GeoMesh> >& tdf1, \
00090 const tmp<GeometricField<Type2, PatchField, GeoMesh> >& tdf2 \
00091 );
00092
00093
00094
00095
00096 #define BINARY_TYPE_FUNCTION_SF(ReturnType, Type1, Type2, Func) \
00097 \
00098 TEMPLATE \
00099 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > Func \
00100 ( \
00101 const dimensioned<Type1>& dt1, \
00102 const GeometricField<Type2, PatchField, GeoMesh>& df2 \
00103 ); \
00104 \
00105 TEMPLATE \
00106 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > Func \
00107 ( \
00108 const Type1& t1, \
00109 const GeometricField<Type2, PatchField, GeoMesh>& df2 \
00110 ); \
00111 \
00112 TEMPLATE \
00113 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > Func \
00114 ( \
00115 const dimensioned<Type1>& dt1, \
00116 const tmp<GeometricField<Type2, PatchField, GeoMesh> >& tdf2 \
00117 ); \
00118 \
00119 TEMPLATE \
00120 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > Func \
00121 ( \
00122 const Type1& t1, \
00123 const tmp<GeometricField<Type2, PatchField, GeoMesh> >& tdf2 \
00124 );
00125
00126
00127 #define BINARY_TYPE_FUNCTION_FS(ReturnType, Type1, Type2, Func) \
00128 \
00129 TEMPLATE \
00130 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > Func \
00131 ( \
00132 const GeometricField<Type1, PatchField, GeoMesh>& df1, \
00133 const dimensioned<Type2>& dt2 \
00134 ); \
00135 \
00136 TEMPLATE \
00137 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > Func \
00138 ( \
00139 const GeometricField<Type1, PatchField, GeoMesh>& df1, \
00140 const Type2& t2 \
00141 ); \
00142 \
00143 TEMPLATE \
00144 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > Func \
00145 ( \
00146 const tmp<GeometricField<Type1, PatchField, GeoMesh> >& tdf1, \
00147 const dimensioned<Type2>& dt2 \
00148 ); \
00149 \
00150 TEMPLATE \
00151 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > Func \
00152 ( \
00153 const tmp<GeometricField<Type1, PatchField, GeoMesh> >& tdf2, \
00154 const Type2& t2 \
00155 );
00156
00157
00158 #define BINARY_TYPE_FUNCTION(ReturnType, Type1, Type2, Func) \
00159 BINARY_TYPE_FUNCTION_SF(ReturnType, Type1, Type2, Func) \
00160 BINARY_TYPE_FUNCTION_FS(ReturnType, Type1, Type2, Func)
00161
00162
00163
00164
00165 #define BINARY_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc) \
00166 \
00167 TEMPLATE \
00168 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > operator Op \
00169 ( \
00170 const GeometricField<Type1, PatchField, GeoMesh>& df1, \
00171 const GeometricField<Type2, PatchField, GeoMesh>& df2 \
00172 ); \
00173 \
00174 TEMPLATE \
00175 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > operator Op \
00176 ( \
00177 const GeometricField<Type1, PatchField, GeoMesh>& df1, \
00178 const tmp<GeometricField<Type2, PatchField, GeoMesh> >& tdf2 \
00179 ); \
00180 \
00181 TEMPLATE \
00182 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > operator Op \
00183 ( \
00184 const tmp<GeometricField<Type1, PatchField, GeoMesh> >& tdf1, \
00185 const GeometricField<Type2, PatchField, GeoMesh>& df2 \
00186 ); \
00187 \
00188 TEMPLATE \
00189 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > operator Op \
00190 ( \
00191 const tmp<GeometricField<Type1, PatchField, GeoMesh> >& tdf1, \
00192 const tmp<GeometricField<Type2, PatchField, GeoMesh> >& tdf2 \
00193 );
00194
00195
00196
00197
00198 #define BINARY_TYPE_OPERATOR_SF(ReturnType, Type1, Type2, Op, OpName, OpFunc) \
00199 \
00200 TEMPLATE \
00201 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > operator Op \
00202 ( \
00203 const dimensioned<Type1>& dt1, \
00204 const GeometricField<Type2, PatchField, GeoMesh>& df2 \
00205 ); \
00206 \
00207 TEMPLATE \
00208 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > operator Op \
00209 ( \
00210 const Type1& t1, \
00211 const GeometricField<Type2, PatchField, GeoMesh>& df2 \
00212 ); \
00213 \
00214 TEMPLATE \
00215 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > operator Op \
00216 ( \
00217 const dimensioned<Type1>& dt1, \
00218 const tmp<GeometricField<Type2, PatchField, GeoMesh> >& tdf2 \
00219 ); \
00220 \
00221 TEMPLATE \
00222 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > operator Op \
00223 ( \
00224 const Type1& t1, \
00225 const tmp<GeometricField<Type2, PatchField, GeoMesh> >& tdf2 \
00226 );
00227
00228
00229 #define BINARY_TYPE_OPERATOR_FS(ReturnType, Type1, Type2, Op, OpName, OpFunc) \
00230 \
00231 TEMPLATE \
00232 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > operator Op \
00233 ( \
00234 const GeometricField<Type1, PatchField, GeoMesh>& df1, \
00235 const dimensioned<Type2>& dt2 \
00236 ); \
00237 \
00238 TEMPLATE \
00239 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > operator Op \
00240 ( \
00241 const GeometricField<Type1, PatchField, GeoMesh>& df1, \
00242 const Type2& t2 \
00243 ); \
00244 \
00245 TEMPLATE \
00246 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > operator Op \
00247 ( \
00248 const tmp<GeometricField<Type1, PatchField, GeoMesh> >& tdf1, \
00249 const dimensioned<Type2>& dt2 \
00250 ); \
00251 \
00252 TEMPLATE \
00253 tmp<GeometricField<ReturnType, PatchField, GeoMesh> > operator Op \
00254 ( \
00255 const tmp<GeometricField<Type1, PatchField, GeoMesh> >& tdf1, \
00256 const Type2& t2 \
00257 );
00258
00259
00260 #define BINARY_TYPE_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc) \
00261 BINARY_TYPE_OPERATOR_SF(ReturnType, Type1, Type2, Op, OpName, OpFunc) \
00262 BINARY_TYPE_OPERATOR_FS(ReturnType, Type1, Type2, Op, OpName, OpFunc)
00263
00264
00265