tnt_array2d.h Source File
Main Page Namespace List Compound List File List Namespace Members Compound Members File Members
Copyright By PowCoder代写 加微信 powcoder
tnt_array2d.h
Go to the documentation of this file.00001 /*
00003 * Template Numerical Toolkit (TNT)
00005 * Mathematical and Computational Sciences Division
00006 * National Institute of Technology,
00007 * Gaithersburg, MD USA
00010 * This software was developed at the National Institute of Standards and
00011 * Technology (NIST) by employees of the Federal Government in the course
00012 * of their official duties. Pursuant to title 17 Section 105 of the
00013 * United States Code, this software is not subject to copyright protection
00014 * and is in the public domain. NIST assumes no responsibility whatsoever for
00015 * its use by other parties, and makes no guarantees, expressed or implied,
00016 * about its quality, reliability, or any other characteristic.
00022 #ifndef TNT_ARRAY2D_INTERFACE_H
00023 #define TNT_ARRAY2D_INTERFACE_H
00025 #include
00026 #include
00027 #ifdef TNT_BOUNDS_CHECK
00028 #include
00029 #endif
00032 namespace TNT
00059 template
00060 class Array2D
00064 private:
00066 /* define private members here */
00071 public:
00086 typedef T value_type;
00092 Array2D();
00101 Array2D(int m, int n);
00116 Array2D(int m, int n, T *a);
00128 Array2D(int m, int n, const T &a);
00145 inline Array2D(const Array2D &A);
00169 inline operator T**();
00192 inline operator const T**();
00198 inline Array2D & operator=(const T &a);
00204 inline Array2D & operator=(const Array2D &A);
00218 inline Array2D & ref(const Array2D &A);
00228 Array2D copy() const;
00255 Array2D & inject(const Array2D & A);
00269 inline T* operator[](int i);
00270 inline const T* operator[](int i) const;
00276 inline int dim1() const;
00283 inline int dim2() const;
00291 ~Array2D();
00303 } /* namespace TNT */
00305 #endif
00306 /* TNT_ARRAY2D_INTERFACE_H */
Generated at Thu Jun 26 17:26:14 2003 for Template Numerical Toolkit (TNT) by
1.2.5 written by Dimitri van Heesch,
© 1997-2001
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com