HepMC3 event record library
|
Attribute that holds an Chareger implemented as an int.
Definition at line 379 of file Attribute.h.
#include <Attribute.h>
Public Member Functions | |
CharAttribute () | |
Default constructor. | |
CharAttribute (char val) | |
Constructor initializing attribute value. | |
bool | from_string (const std::string &att) override |
Implementation of Attribute::from_string. | |
bool | to_string (std::string &att) const override |
Implementation of Attribute::to_string. | |
char | value () const |
get the value associated to this Attribute. | |
void | set_value (const char &i) |
set the value associated to this Attribute. | |
virtual bool | init () |
Optionally initialize the attribute after from_string. | |
virtual bool | init (const GenRunInfo &) |
Optionally initialize the attribute after from_string. | |
bool | is_parsed () const |
Check if this attribute is parsed. | |
const std::string & | unparsed_string () const |
Get unparsed string. | |
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. | |
void | set_unparsed_string (const std::string &st) |
Set unparsed string. | |
Private Attributes | |
char | m_val |
Attribute value. | |
bool | m_is_parsed |
Is this attribute parsed? | |
std::string | m_string |
Raw (unparsed) string. | |
const GenEvent * | m_event |
GenParticlePtr | m_particle |
controlling GenEvent object. | |
GenVertexPtr | m_vertex |
Vertex to which assigned. | |
|
inline |
Default constructor.
Definition at line 383 of file Attribute.h.
|
inline |
Constructor initializing attribute value.
Definition at line 386 of file Attribute.h.
|
inlineinherited |
return the GenEvent to which this Attribute belongs, if at all.
Definition at line 108 of file Attribute.h.
References Attribute::m_event.
|
inlineoverridevirtual |
Implementation of Attribute::from_string.
Implements Attribute.
Definition at line 389 of file Attribute.h.
References CharAttribute::m_val.
|
inlinevirtualinherited |
Optionally initialize the attribute after from_string.
Reimplemented in HEPEUPAttribute.
Definition at line 81 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 90 of file Attribute.h.
|
inlineinherited |
Check if this attribute is parsed.
Definition at line 102 of file Attribute.h.
References Attribute::m_is_parsed.
|
inlineinherited |
return the GenParticle to which this Attribute belongs, if at all.
Definition at line 113 of file Attribute.h.
References Attribute::m_particle.
|
inlineinherited |
return the GenParticle to which this Attribute belongs, if at all.
Definition at line 118 of file Attribute.h.
References Attribute::m_particle.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inline |
set the value associated to this Attribute.
Definition at line 410 of file Attribute.h.
References CharAttribute::m_val.
|
inlineoverridevirtual |
Implementation of Attribute::to_string.
Implements Attribute.
Definition at line 399 of file Attribute.h.
References CharAttribute::m_val.
|
inlineinherited |
|
inline |
get the value associated to this Attribute.
Definition at line 405 of file Attribute.h.
References CharAttribute::m_val.
|
inlineinherited |
return the GenVertex to which this Attribute belongs, if at all.
Definition at line 123 of file Attribute.h.
References Attribute::m_vertex.
|
inlineinherited |
return the GenVertex to which this Attribute belongs, if at all.
Definition at line 128 of file Attribute.h.
References Attribute::m_vertex.
|
privateinherited |
Possibility to be aware of the
Definition at line 145 of file Attribute.h.
|
privateinherited |
Is this attribute parsed?
Definition at line 143 of file Attribute.h.
|
privateinherited |
controlling GenEvent object.
Particle to which assigned.
Definition at line 147 of file Attribute.h.
|
privateinherited |
Raw (unparsed) string.
Definition at line 144 of file Attribute.h.
|
private |
Attribute value.
Definition at line 415 of file Attribute.h.
|
privateinherited |
Vertex to which assigned.
Definition at line 148 of file Attribute.h.