Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

demo1.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 <assert.h>
00015 
00016 #include "CTB.hxx"
00017 #include "CTB_Trace.hxx"
00018 #include "CTBargv.hxx"
00019 #include "CTBprintf.hxx"
00020 #include "demo1.hxx"
00021 
00057 //------------------------------------------+-----------------------------------
00059 
00060 template <class T>
00061 demo1<T>::demo1()
00062   : m_vec(0),
00063     mi_nuse(0)
00064 {
00065   CTB_Trace("demo1(CTBint)");
00066 }
00067 
00068 //------------------------------------------+-----------------------------------
00070 
00071 template <class T>
00072 void demo1<T>::func1(int i_val1) const
00073 {
00074   cout << CTBprintf(i_val1,"d",4) << " "
00075        << CTBprintf(mi_nuse,"d",4);
00076   return;
00077 }
00078 
00079 //------------------------------------------+-----------------------------------
00081 
00082 template <class T>
00083 void demo1<T>::func1(int i_val1, int i_val2) const
00084 {
00085   return;
00086 }
00087 
00088 //------------------------------------------+-----------------------------------
00090 
00091 template <class T>
00092 void demo1<T>::func2() const
00093 {
00094   return;
00095 }
00096 
00097 //------------------------------------------+-----------------------------------
00099 
00100 template <class T>
00101 void demo1<T>::func2(CTBvector<T> vec) const
00102 {
00103   CTBvector<T> old_vec;
00104   
00105   old_vec = m_vec;
00106   m_vec   = vec;
00107   cout << " " << m_vec.Size() 
00108        << " " << vec.Size()
00109        << " " << old_vec.Size() << endl;
00110   return;
00111 }
00112 
00113 //------------------------------------------+-----------------------------------
00115 
00116 template <class T>
00117 void demo1<T>::func2(CTBretcode rc) const
00118 {
00119   CTBretcode old_rc;
00120   
00121   old_rc = m_rc;
00122   m_vec   = rc;
00123   cout << " " << m_rc.Code() 
00124        << " " << rc.Code()
00125        << " " << old_rc.Code() << endl;
00126   return;
00127 }

Generated at Thu Aug 15 14:20:33 2002 for doxdemo by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001