BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
HepHistID Class Reference

#include <HepHistID.h>

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)
 

Detailed Description

Definition at line 24 of file HepHistID.h.

Constructor & Destructor Documentation

◆ ~HepHistID()

virtual HepHistID::~HepHistID ( )
inlinevirtual

Definition at line 27 of file HepHistID.h.

27{}

◆ HepHistID() [1/4]

HepHistID::HepHistID ( int  theNumber)

Definition at line 4 of file HepHistID.cxx.

4 :
5 _numSet(true),
6 _stringSet(false),
7 _idNumber(theNumber),
8 _idString() {}

◆ HepHistID() [2/4]

HepHistID::HepHistID ( const char *  theString)

Definition at line 10 of file HepHistID.cxx.

10 :
11 _numSet(false),
12 _stringSet(true),
13 _idNumber(0),
14 _idString(theString) {}

◆ HepHistID() [3/4]

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

◆ HepHistID() [4/4]

HepHistID::HepHistID ( const HepHistID other)

Definition at line 22 of file HepHistID.cxx.

22 :
23 _numSet(other._numSet),
24 _stringSet(other._stringSet),
25 _idNumber(other._idNumber),
26 _idString(other._idString) {}
Index other(Index i, Index j)
Definition: EvtCyclic3.cc:118

Member Function Documentation

◆ getIDnumber()

int HepHistID::getIDnumber ( ) const
inline

Definition at line 44 of file HepHistID.h.

44{ return _idNumber; }

◆ getIDstring()

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

Definition at line 46 of file HepHistID.h.

46{ return _idString; }

◆ isIDnumberSet()

bool HepHistID::isIDnumberSet ( ) const
inline

Definition at line 40 of file HepHistID.h.

40{ return _numSet; }

◆ isIDstringSet()

bool HepHistID::isIDstringSet ( ) const
inline

Definition at line 42 of file HepHistID.h.

42{ return _stringSet; }

◆ operator++() [1/2]

HepHistID & HepHistID::operator++ ( )

Definition at line 29 of file HepHistID.cxx.

29 {
30 if ( _numSet ) {
31 ++_idNumber;
32 };
33 // return this
34 return *this;
35}

◆ operator++() [2/2]

const HepHistID HepHistID::operator++ ( int  )

Definition at line 38 of file HepHistID.cxx.

38 {
39 // initialize result
40 HepHistID result(*this);
41 // increment this
42 ++(*this);
43 // return result
44 return result;
45}

◆ operator--() [1/2]

HepHistID & HepHistID::operator-- ( )

Definition at line 48 of file HepHistID.cxx.

48 {
49 if ( _numSet ) {
50 --_idNumber;
51 };
52 // return this
53 return *this;
54}

◆ operator--() [2/2]

const HepHistID HepHistID::operator-- ( int  )

Definition at line 57 of file HepHistID.cxx.

57 {
58 // initialize result
59 HepHistID result(*this);
60 // increment this
61 --(*this);
62 // return result
63 return result;
64}

The documentation for this class was generated from the following files: