ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Analysis::TrackGrade Class Reference

#include <TrackGrade.h>

Collaboration diagram for Analysis::TrackGrade:

Public Member Functions

 TrackGrade ()
 
 TrackGrade (int, const std::string &)
 
 TrackGrade (const TrackGrade &)
 
 TrackGrade (TrackGrade &&) noexcept=default
 
TrackGradeoperator= (const TrackGrade &rhs)
 
TrackGradeoperator= (TrackGrade &&rhs) noexcept=default
 
bool operator== (const std::string &) const
 
bool operator== (const int &) const
 
bool operator== (const TrackGrade &rhs) const
 
virtual ~TrackGrade ()
 
const std::string & gradeString () const
 
int gradeNumber () const
 
 operator int () const
 
 operator const std::string () const
 

Private Attributes

int m_gradeNumber
 
std::string m_gradeName
 

Detailed Description

Definition at line 11 of file TrackGrade.h.

Constructor & Destructor Documentation

◆ TrackGrade() [1/4]

Analysis::TrackGrade::TrackGrade ( )

Definition at line 12 of file TrackGrade.cxx.

13  : m_gradeNumber(-1),
14  m_gradeName("Undefined")
15  {
16  }

◆ TrackGrade() [2/4]

Analysis::TrackGrade::TrackGrade ( int  number,
const std::string &  name 
)

Definition at line 18 of file TrackGrade.cxx.

21  {
22  }

◆ TrackGrade() [3/4]

Analysis::TrackGrade::TrackGrade ( const TrackGrade rhs)

Definition at line 24 of file TrackGrade.cxx.

25  : m_gradeNumber(rhs.m_gradeNumber),
26  m_gradeName(rhs.m_gradeName)
27  {
28  }

◆ TrackGrade() [4/4]

Analysis::TrackGrade::TrackGrade ( TrackGrade &&  )
defaultnoexcept

◆ ~TrackGrade()

Analysis::TrackGrade::~TrackGrade ( )
virtual

Definition at line 40 of file TrackGrade.cxx.

40  {
41  }

Member Function Documentation

◆ gradeNumber()

int Analysis::TrackGrade::gradeNumber ( ) const

Definition at line 47 of file TrackGrade.cxx.

47  {
48  return m_gradeNumber;
49  }

◆ gradeString()

const std::string & Analysis::TrackGrade::gradeString ( ) const

Definition at line 43 of file TrackGrade.cxx.

43  {
44  return m_gradeName;
45  }

◆ operator const std::string()

Analysis::TrackGrade::operator const std::string ( ) const

Definition at line 55 of file TrackGrade.cxx.

55  {
56  return m_gradeName;
57  }

◆ operator int()

Analysis::TrackGrade::operator int ( ) const

Definition at line 51 of file TrackGrade.cxx.

51  {
52  return m_gradeNumber;
53  }

◆ operator=() [1/2]

TrackGrade & Analysis::TrackGrade::operator= ( const TrackGrade rhs)

Definition at line 30 of file TrackGrade.cxx.

31  {
32  if (this!=&rhs)
33  {
34  m_gradeName=rhs.m_gradeName;
35  m_gradeNumber=rhs.m_gradeNumber;
36  }
37  return *this;
38  }

◆ operator=() [2/2]

TrackGrade& Analysis::TrackGrade::operator= ( TrackGrade &&  rhs)
defaultnoexcept

◆ operator==() [1/3]

bool Analysis::TrackGrade::operator== ( const int &  rhs) const

Definition at line 65 of file TrackGrade.cxx.

66  {
67  return (m_gradeNumber==rhs);
68  }

◆ operator==() [2/3]

bool Analysis::TrackGrade::operator== ( const std::string &  rhs) const

Definition at line 59 of file TrackGrade.cxx.

60  {
61  return (m_gradeName==rhs);
62  }

◆ operator==() [3/3]

bool Analysis::TrackGrade::operator== ( const TrackGrade rhs) const

Definition at line 70 of file TrackGrade.cxx.

71  {
72  if (&rhs == this) return true;
73 
74  if (rhs.m_gradeNumber == m_gradeNumber &&
75  rhs.m_gradeName == m_gradeName)
76  {
77  return true;
78  }
79  return false;
80  }

Member Data Documentation

◆ m_gradeName

std::string Analysis::TrackGrade::m_gradeName
private

Definition at line 40 of file TrackGrade.h.

◆ m_gradeNumber

int Analysis::TrackGrade::m_gradeNumber
private

Definition at line 39 of file TrackGrade.h.


The documentation for this class was generated from the following files:
Analysis::TrackGrade::m_gradeName
std::string m_gradeName
Definition: TrackGrade.h:40
python.selection.number
number
Definition: selection.py:20
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
Analysis::TrackGrade::m_gradeNumber
int m_gradeNumber
Definition: TrackGrade.h:39