00001 #ifndef _MY_FlashDataArray_ 00002 #define _MY_FlashDataArray_ 00003 #include "flashdata.h" 00004 00010 class FlashDataArray 00011 { 00012 private: 00013 Matrix m_M; 00014 unsigned m_nPhases,m_nComponents; 00015 protected: 00016 00017 public: 00018 FlashDataArray(); 00019 FlashDataArray(int nPhases,int components,int size); 00020 ~FlashDataArray(); 00021 void reinit(int nPhases,int components,int size); 00022 void getData(Index i,FlashData &data); 00023 void getVectorData(unsigned phase,unsigned component,VecDouble &v) const; 00024 Matrix& getMatrix(){return m_M;} 00025 unsigned size() const {return m_M.m();} 00026 void print() const {m_M.print(std::cout);} 00027 }; 00028 00029 #endif