|
MARLEY (Model of Argon Reaction Low Energy Yields) v2.0.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
|
Attribute that holds a string. More...
#include <Attribute.h>
Public Member Functions | |
| StringAttribute () | |
| Default constructor - empty string. | |
| StringAttribute (const std::string &st) | |
| String-based constructor. | |
| bool | from_string (const std::string &att) override |
| Implementation of Attribute::from_string. | |
| void | set_value (const std::string &s) |
| set the value associated to this Attribute. | |
| bool | to_string (std::string &att) const override |
| Implementation of Attribute::to_string. | |
| std::string | value () const |
| get the value associated to this Attribute. | |
Public Member Functions inherited from HepMC3::Attribute | |
| Attribute () | |
| Default constructor. | |
| virtual | ~Attribute () |
| Virtual destructor. | |
| const GenEvent * | event () const |
| 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. | |
| GenParticlePtr | particle () |
| ConstGenParticlePtr | particle () const |
| const std::string & | unparsed_string () const |
| Get unparsed string. | |
| GenVertexPtr | vertex () |
| ConstGenVertexPtr | vertex () const |
Additional Inherited Members | |
Protected Member Functions inherited from HepMC3::Attribute | |
| Attribute (const std::string &st) | |
| Protected constructor that allows to set string. | |
| void | set_is_parsed (bool flag) |
| Set is_parsed flag. | |
| void | set_unparsed_string (const std::string &st) |
| Set unparsed string. | |
Attribute that holds a string.
Default attribute constructed when reading input files. It can be then parsed by other attributes or left as a string.
Definition at line 343 of file Attribute.h.
|
inline |
Default constructor - empty string.
Definition at line 347 of file Attribute.h.
References HepMC3::Attribute::Attribute().
|
inline |
String-based constructor.
The Attribute constructor used here marks that this is an unparsed string that can be (but does not have to be) parsed
Definition at line 355 of file Attribute.h.
References HepMC3::Attribute::Attribute().
|
inlineoverridevirtual |
Implementation of Attribute::from_string.
Implements HepMC3::Attribute.
Definition at line 358 of file Attribute.h.
References HepMC3::Attribute::set_unparsed_string().
|
inline |
set the value associated to this Attribute.
Definition at line 375 of file Attribute.h.
References HepMC3::Attribute::set_unparsed_string().
|
inlineoverridevirtual |
Implementation of Attribute::to_string.
Implements HepMC3::Attribute.
Definition at line 364 of file Attribute.h.
References HepMC3::Attribute::unparsed_string().
|
inline |
get the value associated to this Attribute.
Definition at line 370 of file Attribute.h.
References HepMC3::Attribute::unparsed_string().
Referenced by marley::OutputFileRoot::resume().