00001 #ifndef _CTBprintfMD_HXX 00002 #define _CTBprintfMD_HXX 1 00003 00009 /*----------------------------------------------------------------------------*/ 00010 /* C Tool Box: Designed and implemented by: */ 00011 /* Walter F.J. Mueller Gesellschaft fuer Schwerionenforschung (GSI) */ 00012 /* Planckstrasse 1, D-64291 Darmstadt, Germany */ 00013 /* Email: W.F.J.Mueller@gsi.de */ 00014 /* WWW: http://------------------------------------------+----------------------------------- 00015 template <class T> 00016 CTBint CTBprintfMD<T>::Dimension1() const 00017 { 00018 return m_dsc.NRow(); 00019 } 00020 00021 00022 //www-kp3.gsi.de/www/kp3/people/mueller.html */ 00023 /*------------------------------------------+---------------------------------*/ 00024 00025 #include "CTBmatrixDsc.hxx" 00026 #include "CTBprintfBase.hxx" 00027 00028 template <class T> 00029 class CTBprintfMD : public CTBprintfBase2d { 00030 public: 00031 CTBprintfMD(const CTBmatrixCDsc<T>& dsc, 00032 const char* c_format, int i_width, 00033 int i_precision, CTBint i_pcol, CTBint i_wind); 00034 00035 virtual void ToStreamElement(ostream& os, CTBint i1, CTBint i2) const; 00036 virtual CTBint Dimension1() const; 00037 virtual CTBint Dimension2(CTBint i1) const; 00038 00039 protected: 00040 00041 const CTBmatrixCDsc<T> m_dsc; 00042 }; 00043 00044 #endif