Files Classes Functions Hierarchy
00001 #ifndef MESHRECT_H 00002 #define MESHRECT_H 00003 00004 #include <point.h> 00005 #include <print.h> 00006 00007 typedef point3<double> pt3; 00008 00014 class meshrect 00015 { 00016 public: 00017 00019 uintc M; 00020 00022 uintc N; 00023 00025 pt3 * mat; 00026 00028 pt3 & pij(uintc i, uintc j) 00029 { return mat[i+j*N]; } 00031 pt3 const & pij(uintc i, uintc j) const 00032 { return mat[i+j*N]; } 00033 00036 meshrect(uintc M_, uintc N_); 00037 00039 ~meshrect(); 00040 00042 template< typename F > 00043 void func( F & f ) 00044 { 00045 for (uint i=0; i<M*N; ++i) 00046 f(mat[i].z,mat[i].x,mat[i].y); 00047 } 00048 00050 void print() const; 00051 00052 }; 00053 00054 00055 00056 #endif 00057 00058
1.5.8