HepHistID Class Reference

#include <HepHistID.h>

List of all members.

Public Member Functions

virtual ~HepHistID ()
 HepHistID (int theNumber)
 HepHistID (const char *theString)
 HepHistID (int theNumber, std::string theString)
 HepHistID (const HepHistID &other)
bool isIDnumberSet () const
bool isIDstringSet () const
int getIDnumber () const
std::string getIDstring () const
HepHistIDoperator++ ()
const HepHistID operator++ (int)
HepHistIDoperator-- ()
const HepHistID operator-- (int)

Private Attributes

bool _numSet
bool _stringSet
int _idNumber
std::string _idString


Detailed Description

Definition at line 24 of file HepHistID.h.


Constructor & Destructor Documentation

virtual HepHistID::~HepHistID (  )  [inline, virtual]

Definition at line 27 of file HepHistID.h.

00027 {}

HepHistID::HepHistID ( int  theNumber  ) 

Definition at line 4 of file HepHistID.cxx.

00004                                   : 
00005         _numSet(true), 
00006         _stringSet(false),
00007         _idNumber(theNumber),
00008         _idString() {}

HepHistID::HepHistID ( const char *  theString  ) 

Definition at line 10 of file HepHistID.cxx.

00010                                            :
00011         _numSet(false), 
00012         _stringSet(true),
00013         _idNumber(0),
00014         _idString(theString) {}

HepHistID::HepHistID ( int  theNumber,
std::string  theString 
)

HepHistID::HepHistID ( const HepHistID other  ) 

Definition at line 22 of file HepHistID.cxx.

00022                                             :
00023         _numSet(other._numSet), 
00024         _stringSet(other._stringSet),
00025         _idNumber(other._idNumber),
00026         _idString(other._idString) {}


Member Function Documentation

int HepHistID::getIDnumber (  )  const [inline]

Definition at line 44 of file HepHistID.h.

References _idNumber.

00044 { return _idNumber; }

std::string HepHistID::getIDstring (  )  const [inline]

Definition at line 46 of file HepHistID.h.

References _idString.

00046 { return _idString; }

bool HepHistID::isIDnumberSet (  )  const [inline]

Definition at line 40 of file HepHistID.h.

References _numSet.

00040 { return _numSet; }

bool HepHistID::isIDstringSet (  )  const [inline]

Definition at line 42 of file HepHistID.h.

References _stringSet.

00042 { return _stringSet; }

const HepHistID HepHistID::operator++ ( int   ) 

Definition at line 38 of file HepHistID.cxx.

00038                                          { 
00039   // initialize result
00040   HepHistID result(*this);
00041   // increment this 
00042   ++(*this);
00043   // return result
00044   return result; 
00045 }

HepHistID & HepHistID::operator++ (  ) 

Definition at line 29 of file HepHistID.cxx.

References _idNumber, and _numSet.

00029                                   { 
00030   if ( _numSet ) {
00031     ++_idNumber;
00032   };
00033   // return this
00034   return *this; 
00035 }

const HepHistID HepHistID::operator-- ( int   ) 

Definition at line 57 of file HepHistID.cxx.

00057                                          { 
00058   // initialize result
00059   HepHistID result(*this);
00060   // increment this 
00061   --(*this);
00062   // return result
00063   return result; 
00064 }

HepHistID & HepHistID::operator-- (  ) 

Definition at line 48 of file HepHistID.cxx.

References _idNumber, and _numSet.

00048                                   { 
00049   if ( _numSet ) {
00050     --_idNumber;
00051   };
00052   // return this
00053   return *this; 
00054 }


Member Data Documentation

int HepHistID::_idNumber [private]

Definition at line 59 of file HepHistID.h.

Referenced by getIDnumber(), operator++(), and operator--().

std::string HepHistID::_idString [private]

Definition at line 60 of file HepHistID.h.

Referenced by getIDstring().

bool HepHistID::_numSet [private]

Definition at line 57 of file HepHistID.h.

Referenced by isIDnumberSet(), operator++(), and operator--().

bool HepHistID::_stringSet [private]

Definition at line 58 of file HepHistID.h.

Referenced by isIDstringSet().


Generated on Tue Nov 29 23:19:39 2016 for BOSS_7.0.2 by  doxygen 1.4.7