00001 00005 template<class T> class packed_vector : public vector<T> 00006 { 00007 private: 00008 int _numnod; 00009 int _numrhs; 00010 int _numdof; 00011 public: 00018 packed_vector(const int _numnod, const int _numrhs, const int _numdof) : vector<T>(_numnod * _numrhs * _numdof) 00019 { 00020 this->_numnod = _numnod; 00021 this->_numrhs = _numrhs; 00022 this->_numdof = _numdof; 00023 } 00028 packed_vector(const packed_vector<T> &_x) : vector<T>(_x) 00029 { 00030 _numnod = _x._numnod; 00031 _numrhs = _x._numrhs; 00032 _numdof = _x._numdof; 00033 } 00038 int numnod() const 00039 { 00040 return _numnod; 00041 } 00046 int numrhs() const 00047 { 00048 return _numrhs; 00049 } 00054 int numdof() const 00055 { 00056 return _numdof; 00057 } 00058 };