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

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

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