/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/src/HepHistID.cxx

Go to the documentation of this file.
00001 #include "MdcRecoUtil/HepHistID.h"
00002 using std::string;
00003 
00004 HepHistID::HepHistID(int theNumber) : 
00005         _numSet(true), 
00006         _stringSet(false),
00007         _idNumber(theNumber),
00008         _idString() {}
00009 
00010 HepHistID::HepHistID(const char * theString) :
00011         _numSet(false), 
00012         _stringSet(true),
00013         _idNumber(0),
00014         _idString(theString) {}
00015 
00016 HepHistID::HepHistID(int theNumber, string theString) :
00017         _numSet(true), 
00018         _stringSet(true),
00019         _idNumber(theNumber),
00020         _idString(theString) {}
00021 
00022 HepHistID::HepHistID(const HepHistID & other) :
00023         _numSet(other._numSet), 
00024         _stringSet(other._stringSet),
00025         _idNumber(other._idNumber),
00026         _idString(other._idString) {}
00027 
00028 // prefix increment number ID
00029 HepHistID & HepHistID::operator++() { 
00030   if ( _numSet ) {
00031     ++_idNumber;
00032   };
00033   // return this
00034   return *this; 
00035 }
00036 
00037 // postfix increment number ID
00038 const HepHistID HepHistID::operator++(int) { 
00039   // initialize result
00040   HepHistID result(*this);
00041   // increment this 
00042   ++(*this);
00043   // return result
00044   return result; 
00045 }
00046 
00047 // prefix decrement number ID
00048 HepHistID & HepHistID::operator--() { 
00049   if ( _numSet ) {
00050     --_idNumber;
00051   };
00052   // return this
00053   return *this; 
00054 }
00055 
00056 // postfix decrement number ID
00057 const HepHistID HepHistID::operator--(int) { 
00058   // initialize result
00059   HepHistID result(*this);
00060   // increment this 
00061   --(*this);
00062   // return result
00063   return result; 
00064 }

Generated on Tue Nov 29 23:13:32 2016 for BOSS_7.0.2 by  doxygen 1.4.7