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

CTBprintfM.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 "CTBprintfM.hxx"
00016 
00017 #ifdef DEV_DOCS
00018 
00022 #endif
00023 
00024 //------------------------------------------+-----------------------------------
00025 #ifdef DEV_DOCS
00026 
00036 #endif
00037 
00038 template <class T>
00039 CTBprintfVM<T>::CTBprintfVM(const CTBvector<CTBmatrix<T> >& value, 
00040                             const char* c_format, int i_width, int i_precision,
00041                             CTBint i_pcol, CTBint i_wind)
00042   : CTBprintfBase3d(c_format, i_width, i_precision, i_pcol, i_wind, true),
00043     m_value(value)
00044 {}
00045 
00046 //------------------------------------------+-----------------------------------
00047 template <class T>
00048 void CTBprintfVM<T>::ToStreamElement(ostream& os, CTBint i1, CTBint i2,
00049                                      CTBint i3) const
00050 {
00051   os << CTBprintf(m_value(i1)(i2,i3),mc_format,mi_width,mi_precision);
00052   return;
00053 }
00054  
00055 //------------------------------------------+-----------------------------------
00056 template <class T>
00057 CTBint CTBprintfVM<T>::Dimension1() const
00058 {
00059   return m_value.Size();
00060 }
00061 
00062 //------------------------------------------+-----------------------------------
00063 template <class T>
00064 CTBint CTBprintfVM<T>::Dimension2(CTBint i1) const
00065 {
00066   return m_value(i1).NRow();
00067 }
00068 
00069 //------------------------------------------+-----------------------------------
00070 template <class T>
00071 CTBint CTBprintfVM<T>::Dimension3(CTBint i1, CTBint) const
00072 {
00073   return m_value(i1).NColumn();
00074 }
00075 
00076 

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