ssar2tem.h
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 #ifdef __GNUC__
00029 #pragma interface
00030 #endif
00031
00032 namespace sc {
00033
00034 template <class Type>
00035 class SSBArray2: public Array2<Type> {
00036 public:
00037 SSBArray2() {}
00038 SSBArray2(const Array2<Type> &a): Array2<Type>(a) {}
00039 SSBArray2(Type* data,int size0,int size1): Array2<Type>(data,size0,size1){}
00040 SSBArray2(int size0,int size1): Array2<Type>(size0,size1) {}
00041 SSBArray2(StateIn&s) {
00042 s.get(_length0);
00043 s.get(_length1);
00044 if (_length0&&_length1) s.get(_array);
00045 _managed=1;
00046 }
00047 void save_object_state(StateOut&s) {
00048 s.put(_length0);
00049 s.put(_length1);
00050 if (_length0&&_length1) s.put(_array,_length0*_length1);
00051 }
00052 };
00053
00054 }
00055
00056
00057
00058
00059
00060
00061
Generated at Thu Jul 29 19:53:51 2004 for MPQC
2.2.1 using the documentation package Doxygen
1.3.7.