ATLAS Offline Software
Loading...
Searching...
No Matches
IdDictLabel Class Reference

#include <IdDictLabel.h>

Collaboration diagram for IdDictLabel:

Public Member Functions

 IdDictLabel (const std::string &name)
 IdDictLabel (const std::string &name, int value)
const std::string & name () const
int value () const
bool valued () const

Private Attributes

std::string m_name
bool m_valued {}
int m_value {}

Detailed Description

Definition at line 10 of file IdDictLabel.h.

Constructor & Destructor Documentation

◆ IdDictLabel() [1/2]

IdDictLabel::IdDictLabel ( const std::string & name)
inline

Definition at line 27 of file IdDictLabel.h.

28 : m_name (name),
29 m_valued (false)
30{
31}
std::string m_name
Definition IdDictLabel.h:20
const std::string & name() const
Definition IdDictLabel.h:44

◆ IdDictLabel() [2/2]

IdDictLabel::IdDictLabel ( const std::string & name,
int value )
inline

Definition at line 35 of file IdDictLabel.h.

36 : m_name (name),
37 m_valued (true),
39{
40}
int value() const
Definition IdDictLabel.h:51

Member Function Documentation

◆ name()

const std::string & IdDictLabel::name ( ) const
inline

Definition at line 44 of file IdDictLabel.h.

45{
46 return m_name;
47}

◆ value()

int IdDictLabel::value ( ) const
inline

Definition at line 51 of file IdDictLabel.h.

52{
53 return m_valued ? m_value : 0;
54}

◆ valued()

bool IdDictLabel::valued ( ) const
inline

Definition at line 58 of file IdDictLabel.h.

59{
60 return m_valued;
61}

Member Data Documentation

◆ m_name

std::string IdDictLabel::m_name
private

Definition at line 20 of file IdDictLabel.h.

◆ m_value

int IdDictLabel::m_value {}
private

Definition at line 22 of file IdDictLabel.h.

22{};

◆ m_valued

bool IdDictLabel::m_valued {}
private

Definition at line 21 of file IdDictLabel.h.

21{};

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