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

CTBrange.icc

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 /*                          Postfach 110552, D-64220 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 //------------------------------------------+-----------------------------------
00016 
00017 inline CTBrange::CTBrange()
00018   : mi_begin(0),
00019     mi_end(0)
00020 {}
00021 
00022 //------------------------------------------+-----------------------------------
00024 
00025 inline CTBrange::CTBrange(CTBint i_ind)
00026   : mi_begin(i_ind),
00027     mi_end(i_ind)
00028 {}
00029 
00030 //------------------------------------------+-----------------------------------
00032 
00033 inline CTBrange::CTBrange(CTBint i_begin, CTBint i_end)
00034   : mi_begin(i_begin),
00035     mi_end(i_end)
00036 {}
00037 
00038 //------------------------------------------+-----------------------------------
00040 
00041 inline CTBint CTBrange::Begin() const
00042 {
00043   return mi_begin;
00044 }
00045 
00046 //------------------------------------------+-----------------------------------
00048 
00049 inline CTBint CTBrange::End() const
00050 {
00051   return mi_end;
00052 }
00053 
00054 //------------------------------------------+-----------------------------------
00056 
00057 inline void CTBrange::Begin(CTBint i_begin)
00058 {
00059   mi_begin = i_begin;
00060   return;
00061 }
00062 
00063 //------------------------------------------+-----------------------------------
00065 
00066 inline void CTBrange::End(CTBint i_end)
00067 {
00068   mi_end = i_end;
00069   return;
00070 }
00071 
00072 //------------------------------------------+-----------------------------------
00078 inline bool operator==(const CTBrange& lhs, const CTBrange& rhs)
00079 {
00080   return lhs.mi_begin  == rhs.mi_begin  &&
00081     lhs.mi_end    == rhs.mi_end;
00082 }
00083 
00084 //------------------------------------------+-----------------------------------
00090 inline ostream& operator<<(ostream& os, const CTBrange& obj)
00091 {
00092   obj.ToStream(os);
00093   return os;
00094 }
00095 
00096 //------------------------------------------+-----------------------------------
00102 inline istream& operator>>(istream& is, CTBrange& obj)
00103 {
00104   obj.FromStream(is);
00105   return is;
00106 }

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