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(this->_length0);
00043 s.get(this->_length1);
00044 if (this->_length0&&this->_length1) s.get(this->_array);
00045 this->_managed=1;
00046 }
00047 void save_object_state(StateOut&s) {
00048 s.put(this->_length0);
00049 s.put(this->_length1);
00050 if (this->_length0&&this->_length1) {
00051 s.put(this->_array,this->_length0*this->_length1);
00052 }
00053 }
00054 };
00055
00056 }
00057
00058
00059
00060
00061
00062
00063
Generated at Sat Aug 7 00:04:22 2004 for MPQC
2.2.2 using the documentation package Doxygen
1.3.8.