|
HepMC3 event record library
|
Attribute that holds an Integer implemented as an int.
Definition at line 158 of file Attribute.h.
#include <AssociatedParticle.h>
Inheritance diagram for IntAttribute:
Collaboration diagram for IntAttribute:Public Member Functions | |
| IntAttribute () | |
| Default constructor. More... | |
| IntAttribute (int val) | |
| Constructor initializing attribute value. More... | |
| bool | from_string (const string &att) |
| Implementation of Attribute::from_string. More... | |
| bool | to_string (string &att) const |
| Implementation of Attribute::to_string. More... | |
| int | value () const |
| get the value associated to this Attribute. More... | |
| void | set_value (const int &i) |
| set the value associated to this Attribute. More... | |
| virtual bool | init () |
| Optionally initialize the attribute after from_string. More... | |
| virtual bool | init (const GenRunInfo &) |
| Optionally initialize the attribute after from_string. More... | |
| bool | is_parsed () const |
| Check if this attribute is parsed. More... | |
| const string & | unparsed_string () const |
| Get unparsed string. More... | |
| const GenEvent * | event () const |
| GenParticlePtr | particle () |
| ConstGenParticlePtr | particle () const |
| GenVertexPtr | vertex () |
| ConstGenVertexPtr | vertex () const |
Protected Member Functions | |
| void | set_is_parsed (bool flag) |
| Set is_parsed flag. More... | |
| void | set_unparsed_string (const string &st) |
| Set unparsed string. More... | |
Private Attributes | |
| int | m_val |
| Attribute value. More... | |
| bool | m_is_parsed |
| Is this attribute parsed? More... | |
| string | m_string |
| Raw (unparsed) string. More... | |
| const GenEvent * | m_event |
| GenParticlePtr | m_particle |
| controlling GenEvent object. More... | |
| GenVertexPtr | m_vertex |
| Vertex to which assigned. More... | |
|
inline |
Default constructor.
Definition at line 162 of file Attribute.h.
|
inline |
Constructor initializing attribute value.
Definition at line 165 of file Attribute.h.
|
inlineinherited |
return the GenEvent to which this Attribute belongs, if at all.
Definition at line 109 of file Attribute.h.
References Attribute::m_event.
|
inlinevirtual |
Implementation of Attribute::from_string.
Implements Attribute.
Definition at line 168 of file Attribute.h.
References IntAttribute::m_val.
|
inlinevirtualinherited |
Optionally initialize the attribute after from_string.
Reimplemented in HEPEUPAttribute.
Definition at line 82 of file Attribute.h.
|
inlinevirtualinherited |
Optionally initialize the attribute after from_string.
Is passed a reference to the GenRunInfo object to which the Attribute belongs.
Reimplemented in HEPEUPAttribute.
Definition at line 91 of file Attribute.h.
|
inlineinherited |
Check if this attribute is parsed.
Definition at line 103 of file Attribute.h.
References Attribute::m_is_parsed.
|
inlineinherited |
return the GenParticle to which this Attribute belongs, if at all.
Definition at line 114 of file Attribute.h.
References Attribute::m_particle.
|
inlineinherited |
return the GenParticle to which this Attribute belongs, if at all.
Definition at line 119 of file Attribute.h.
References Attribute::m_particle.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inline |
set the value associated to this Attribute.
Definition at line 185 of file Attribute.h.
References IntAttribute::m_val.
|
inlinevirtual |
Implementation of Attribute::to_string.
Implements Attribute.
Definition at line 174 of file Attribute.h.
References IntAttribute::m_val.
|
inlineinherited |
|
inline |
get the value associated to this Attribute.
Definition at line 180 of file Attribute.h.
References IntAttribute::m_val.
|
inlineinherited |
return the GenVertex to which this Attribute belongs, if at all.
Definition at line 124 of file Attribute.h.
References Attribute::m_vertex.
|
inlineinherited |
return the GenVertex to which this Attribute belongs, if at all.
Definition at line 129 of file Attribute.h.
References Attribute::m_vertex.
|
privateinherited |
Possibility to be aware of the
Definition at line 146 of file Attribute.h.
|
privateinherited |
Is this attribute parsed?
Definition at line 144 of file Attribute.h.
|
privateinherited |
controlling GenEvent object.
Particle to which assigned.
Definition at line 148 of file Attribute.h.
|
privateinherited |
Raw (unparsed) string.
Definition at line 145 of file Attribute.h.
|
private |
Attribute value.
Definition at line 190 of file Attribute.h.
|
privateinherited |
Vertex to which assigned.
Definition at line 149 of file Attribute.h.
1.8.17