22 const static Enum UNKNOWN;
28 Enum(
int id,
const std::string& label)
29 : m_id(
id), m_label(label) {}
30 Enum() : m_id(UNKNOWN.m_id),
31 m_label(UNKNOWN.m_label) {}
34 int getId()
const {
return m_id; }
35 const char* getLabel()
const {
return m_label.c_str(); }
36 const std::string& getLabelString()
const {
return m_label; }
39 bool operator==(
const Enum& e)
const;
40 bool operator!=(
const Enum& e)
const;
41 bool operator==(
const std::string& label)
const;
42 bool operator!=(
const std::string& label)
const;
50 inline bool Enum::operator==(
const Enum& e)
const
52 return (m_id == e.m_id);
54 inline bool Enum::operator!=(
const Enum& e)
const
56 return (m_id != e.m_id);
59 inline bool Enum::operator==(
const std::string& label)
const
61 return m_label == label;
63 inline bool Enum::operator!=(
const std::string& label)
const
65 return m_label != label;
bool operator==(const DecayNode &node1, const DecayNode &node2)
Compare two Decay Nodes: They are equal if All daughter decay nodes are equal or one of the daughter ...
bool operator!=(const DecayNode &node1, const DecayNode &node2)
Not equal: See operator==.
Abstract base class for different kinds of events.