|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <GIDI.hpp>
Public Member Functions | |
| PhysicalQuantity (HAPI::Node const &a_node, SetupInfo &a_setupInfo) | |
| PhysicalQuantity (double a_value, std::string const &a_unit) | |
| PhysicalQuantity (PhysicalQuantity const &a_physicalQuantity) | |
| ~PhysicalQuantity () | |
| PhysicalQuantity & | operator= (PhysicalQuantity const &a_rhs) |
| double | value () const |
| std::string const & | unit () const |
| void | toXMLList (GUPI::WriteInfo &a_writeInfo, std::string const &a_indent="") const |
| Public Member Functions inherited from GIDI::Form | |
| Form (FormType a_type) | |
| Form (std::string const &a_moniker, FormType a_type, std::string const &a_label) | |
| Form (HAPI::Node const &a_node, SetupInfo &a_setupInfo, FormType a_type, Suite *a_suite=nullptr) | |
| Form (Form const &a_form) | |
| virtual | ~Form () |
| Form & | operator= (Form const &a_rhs) |
| Suite * | parent () const |
| std::string const & | label () const |
| void | setLabel (std::string const &a_label) |
| virtual std::string | actualMoniker () const |
| std::string const & | keyName () const |
| void | setKeyName (std::string const &a_keyName) |
| std::string const & | keyValue () const |
| virtual void | setKeyValue (std::string const &a_keyName) const |
| FormType | type () const |
| Form const * | sibling (std::string a_label) const |
| GUPI::Ancestry * | findInAncestry3 (LUPI_maybeUnused std::string const &a_item) |
| GUPI::Ancestry const * | findInAncestry3 (LUPI_maybeUnused std::string const &a_item) const |
| std::string | xlinkItemKey () const |
| Public Member Functions inherited from GUPI::Ancestry | |
| Ancestry (std::string const &a_moniker, std::string const &a_attribute="") | |
| virtual | ~Ancestry () |
| Ancestry & | operator= (Ancestry const &a_ancestry) |
| std::string const & | moniker () const |
| void | setMoniker (std::string const &a_moniker) |
| Ancestry * | ancestor () |
| Ancestry const * | ancestor () const |
| void | setAncestor (Ancestry *a_ancestor) |
| std::string | attribute () const |
| Ancestry * | root () |
| Ancestry const * | root () const |
| bool | isChild (Ancestry *a_instance) |
| bool | isParent (Ancestry *a_parent) |
| bool | isRoot () const |
| Ancestry * | findInAncestry (std::string const &a_href) |
| Ancestry const * | findInAncestry (std::string const &a_href) const |
| virtual Ancestry * | findInAncestry3 (std::string const &a_item)=0 |
| virtual Ancestry const * | findInAncestry3 (std::string const &a_item) const =0 |
| virtual LUPI_HOST void | serialize (LUPI::DataBuffer &a_buffer, LUPI::DataBuffer::Mode a_mode) |
| std::string | toXLink () const |
| void | printXML () const |
Friends | |
| std::ostream & | operator<< (std::ostream &a_os, PhysicalQuantity const &a_physicalQuantity) |
Additional Inherited Members | |
| Static Public Member Functions inherited from GUPI::Ancestry | |
| static std::string | buildXLinkItemKey (std::string const &a_name, std::string const &a_key) |
Class to store a physical quantity. A physical quantity is a value (e.g., 13.2) with a unit (e.g., 'cm'). The physical quantity can be unitless (i.e., the unit can be an empty string). Examples a physical quantities are '13.2 cm', '0.132 m', '4.5 kg'.
| GIDI::PhysicalQuantity::PhysicalQuantity | ( | HAPI::Node const & | a_node, |
| SetupInfo & | a_setupInfo ) |
| a_node | [in] The HAPI::Node to be parsed and used to construct the PhysicalQuantity. |
| a_setupInfo | [in] Information create my the Protare constructor to help in parsing. |
Definition at line 26 of file GIDI_physicalQuantity.cc.
Referenced by operator<<, operator=(), and PhysicalQuantity().
| GIDI::PhysicalQuantity::PhysicalQuantity | ( | double | a_value, |
| std::string const & | a_unit ) |
| a_value | [in] The physical quantity's value. |
| a_unit | [in] The physical quantity's unit. |
Definition at line 39 of file GIDI_physicalQuantity.cc.
|
inline |
| GIDI::PhysicalQuantity::~PhysicalQuantity | ( | ) |
Definition at line 49 of file GIDI_physicalQuantity.cc.
| PhysicalQuantity & GIDI::PhysicalQuantity::operator= | ( | PhysicalQuantity const & | a_rhs | ) |
The assignment operator. This method sets the members of this to those of a_rhs except for those not set by base classes.
| a_rhs | [in] Instance whose member are used to set the members of this. |
Definition at line 60 of file GIDI_physicalQuantity.cc.
|
virtual |
Fills the argument a_writeInfo with the XML lines that represent this. Recursively enters each sub-node.
| a_writeInfo | [in/out] Instance containing incremental indentation and other information and stores the appended lines. |
| a_indent | [in] The amount to indent this node. |
Reimplemented from GUPI::Ancestry.
Definition at line 79 of file GIDI_physicalQuantity.cc.
|
inline |
Returns the value of the m_unit member.
Definition at line 729 of file GIDI.hpp.
Referenced by operator<<, operator=(), PhysicalQuantity(), and toXMLList().
|
inline |
Returns the value of the m_value member.
Definition at line 728 of file GIDI.hpp.
Referenced by operator<<, operator=(), PhysicalQuantity(), GIDI::Reaction::recalculateMultiGroupData(), GIDI::ProtareSingle::temperatures(), and toXMLList().
|
friend |
Writes the information of a_physicalQuantity to a_os.
| a_os | [out] The stream to write to. |
| a_physicalQuantity | [in] The PhysicalQuantity whose information is written. |
Definition at line 93 of file GIDI_physicalQuantity.cc.