Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CTBprintfMD.cxx

Go to the documentation of this file.
00001 
00006 /*----------------------------------------------------------------------------*/
00007 /* C Tool Box: Designed and implemented by:                                   */
00008 /*    Walter F.J. Mueller   Gesellschaft fuer Schwerionenforschung (GSI)      */
00009 /*                          Planckstrasse 1, D-64291 Darmstadt, Germany       */
00010 /*                  Email:  W.F.J.Mueller@gsi.de                              */
00011 /*                  WWW:    http://www-kp3.gsi.de/www/kp3/people/mueller.html */
00012 /*------------------------------------------+---------------------------------*/
00013 
00014 #include "CTBprintf.hxx"
00015 #include "CTBprintfMD.hxx"
00016 
00017 #ifdef DEV_DOCS
00018 
00022 #endif
00023 
00024 //------------------------------------------+-----------------------------------
00025 #ifdef DEV_DOCS
00026 
00037 #endif
00038 
00039 template <class T>
00040 CTBprintfMD<T>::CTBprintfMD(const CTBmatrixCDsc<T>& dsc, const char* c_format,
00041                             int i_width, int i_precision, CTBint i_pcol, 
00042                             CTBint i_wind)
00043   : CTBprintfBase2d(c_format, i_width, i_precision, i_pcol, i_wind),
00044     m_dsc(dsc)
00045 {}
00046 
00047 //------------------------------------------+-----------------------------------
00048 template <class T>
00049 void CTBprintfMD<T>::ToStreamElement(ostream& os, CTBint i1, CTBint i2) const
00050 {
00051   os << CTBprintf(m_dsc(i1,i2),mc_format,mi_width,mi_precision);
00052   return;
00053 }
00054  
00055 //------------------------------------------+-----------------------------------
00056 template <class T>
00057 CTBint CTBprintfMD<T>::Dimension1() const
00058 {
00059   return m_dsc.NRow();
00060 }
00061 
00062 //------------------------------------------+-----------------------------------
00063 template <class T>
00064 CTBint CTBprintfMD<T>::Dimension2(CTBint) const
00065 {
00066   return m_dsc.NColumn();
00067 }

Generated at Fri Oct 24 18:11:29 2003 for CTBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001