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

CTBrange.hxx

Go to the documentation of this file.
00001 #ifndef _CTBrange_HXX
00002 #define _CTBrange_HXX 1
00003 
00008 /*----------------------------------------------------------------------------*/
00009 /* C Tool Box: Designed and implemented by:                                   */
00010 /*    Walter F.J. Mueller   Gesellschaft fuer Schwerionenforschung (GSI)      */
00011 /*                          Postfach 110552, D-64220 Darmstadt, Germany       */
00012 /*                  Email:  W.F.J.Mueller@gsi.de                              */
00013 /*                  WWW:    http://www-kp3.gsi.de/www/kp3/people/mueller.html */
00014 /*------------------------------------------+---------------------------------*/
00015 
00016 class CTBrange {
00017   public:
00018                     CTBrange();
00019                     CTBrange(CTBint i_ind);
00020                     CTBrange(CTBint i_begin, CTBint i_end);
00021 
00022     CTBint          Begin() const;
00023     CTBint          End() const;
00024 
00025     void            Begin(CTBint i_begin);
00026     void            End(CTBint i_end);
00027 
00028     void            ToStream(ostream& os) const;
00029     void            FromStream(istream& is);
00030 
00031     friend bool     operator==(const CTBrange& lhs, const CTBrange& rhs);
00032 
00033   private:
00034 
00035     CTBint          mi_begin;
00036     CTBint          mi_end;
00037 };
00038 
00039     ostream&        operator<<(ostream& os, const CTBrange& obj);
00040     istream&        operator>>(istream& is, CTBrange& obj);
00041 
00042 #if !(defined(CTB__OutLine) || defined(CTBrange__OutLine))
00043 #include "CTBrange.icc"
00044 #endif
00045 
00046 #endif

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