|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <GUPI.hpp>
Public Member Functions | |
| 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) |
| virtual std::string | xlinkItemKey () const |
| std::string | toXLink () const |
| virtual void | toXMLList (WriteInfo &a_writeInfo, std::string const &a_indent="") const |
| void | printXML () const |
Static Public Member Functions | |
| static std::string | buildXLinkItemKey (std::string const &a_name, std::string const &a_key) |
This is a base class inherit by most other classes. It allows one to construct a node's xlink or get another node from its xlink.
| GUPI::Ancestry::Ancestry | ( | std::string const & | a_moniker, |
| std::string const & | a_attribute = "" ) |
| a_moniker | [in] The GNDS node's name (i.e., moniker). |
| a_attribute | [in] Currently not used. |
Definition at line 26 of file GUPI_ancestry.cc.
Referenced by ancestor(), ancestor(), GIDI::Map::BaseEntry::BaseEntry(), GUPI::Documentation::Documentation(), GUPI::Entry::Entry(), GUPI::Entry::Entry(), findInAncestry(), findInAncestry(), findInAncestry3(), findInAncestry3(), GUPI::Documentation::findInAncestry3(), GUPI::Documentation::findInAncestry3(), GUPI::Entry::findInAncestry3(), GUPI::Entry::findInAncestry3(), GUPI::Suite::findInAncestry3(), GUPI::Suite::findInAncestry3(), GUPI::Text::findInAncestry3(), GUPI::Text::findInAncestry3(), GIDI::FissionFragmentData::FissionFragmentData(), GIDI::FissionFragmentData::FissionFragmentData(), GIDI::Form::Form(), GIDI::Form::Form(), GIDI::Form::Form(), GIDI::GRIN::GRIN_continuumGammas::GRIN_continuumGammas(), isChild(), GIDI::TargetInfo::IsotopicAbundances::IsotopicAbundances(), isParent(), GIDI::Map::Map::Map(), GIDI::Map::Map::Map(), operator=(), GIDI::OutputChannel::OutputChannel(), GIDI::Protare::Protare(), root(), root(), setAncestor(), GIDI::Suite::Suite(), GIDI::Suite::Suite(), GIDI::Suite::Suite(), GUPI::Suite::Suite(), GUPI::Suite::Suite(), GUPI::Suite::Suite(), GIDI::Sums::Sums::Sums(), GIDI::TargetInfo::TargetInfo::TargetInfo(), and GUPI::Text::Text().
|
virtual |
Definition at line 36 of file GUPI_ancestry.cc.
|
inline |
|
inline |
|
inline |
Returns the value of the m_attribute member.
Definition at line 107 of file GUPI.hpp.
Referenced by GIDI::Functions::Constant1d::Constant1d(), GIDI::Functions::DiscreteGamma2d::DiscreteGamma2d(), GIDI::Form::Form(), GIDI::ACE_URR::IncidentEnergy::IncidentEnergy(), GIDI::Functions::NBodyPhaseSpace2d::NBodyPhaseSpace2d(), GIDI::TargetInfo::Nuclide::Nuclide(), operator=(), GIDI::Functions::Polynomial1d::Polynomial1d(), GIDI::Functions::PrimaryGamma2d::PrimaryGamma2d(), and GIDI::Functions::Ys1d::Ys1d().
|
inlinestatic |
Constructs and returns the key name/value for the this node.
Definition at line 83 of file GUPI.hpp.
Referenced by GIDI::Form::xlinkItemKey(), GIDI::Reaction::xlinkItemKey(), and GUPI::Entry::xlinkItemKey().
| Ancestry * GUPI::Ancestry::findInAncestry | ( | std::string const & | a_href | ) |
Returns a pointer to the node whose xlink (i.e., a_href) is a_href.
| a_href | [in] The xlink whose node is to be returned. |
Definition at line 93 of file GUPI_ancestry.cc.
Referenced by MCGIDI::Distributions::CoherentPhotoAtomicScattering::CoherentPhotoAtomicScattering(), and MCGIDI::Distributions::IncoherentPhotoAtomicScattering::IncoherentPhotoAtomicScattering().
| Ancestry const * GUPI::Ancestry::findInAncestry | ( | std::string const & | a_href | ) | const |
Returns a pointer to the node whose xlink (i.e., a_href) is a_href.
| a_href | [in] The xlink whose node is to be returned. |
Definition at line 107 of file GUPI_ancestry.cc.
|
pure virtual |
|
pure virtual |
Used to tranverse GNDS nodes. This method returns a pointer to a derived class' a_item member or nullptr if none exists.
| a_item | [in] The name of the class member whose pointer is to be return. |
Implemented in GIDI::DelayedNeutron, GIDI::FissionFragmentData, GIDI::GRIN::GRIN_continuumGammas, GIDI::OutputChannel, GIDI::Product, GIDI::Protare, GIDI::ProtareSingle, GIDI::Reaction, GIDI::Suite, GIDI::Sums::CrossSectionSum, GIDI::Sums::Sums, and GUPI::Suite.
|
inline |
|
inline |
|
inline |
|
inline |
Returns the value of the m_moniker member.
Definition at line 102 of file GUPI.hpp.
Referenced by GIDI::Form::actualMoniker(), GIDI::Array::Array::Array(), GIDI::calculate1dMultiGroupFissionEnergyRelease(), GIDI::Form::Form(), GIDI::Styles::Base::getDerivedStyle(), GIDI::Functions::Function1dForm::mapToXsAndAdd(), GIDI::ProtareSingle::muCutoffForCoulombPlusNuclearElastic(), GIDI::Reaction::multiGroupDepositionEnergy(), GIDI::Reaction::multiGroupDepositionMomentum(), operator=(), GIDI::Sums::Sums::parse(), MCGIDI::Probabilities::parseProbability1d(), GIDI::Reaction::recalculateMultiGroupData(), GIDI::ProtareSingle::temperatures(), GIDI::ACE_URR::IncidentEnergy::toXMLList(), GIDI::ACE_URR::ProbabilityTable::toXMLList(), GIDI::Axes::toXMLList(), GIDI::Axis::toXMLList(), GIDI::AxisDomain::toXMLList(), GIDI::DelayedNeutron::toXMLList(), GIDI::Distributions::AngularEnergy::toXMLList(), GIDI::Distributions::AngularEnergyMC::toXMLList(), GIDI::Distributions::AngularTwoBody::toXMLList(), GIDI::Distributions::CoulombPlusNuclearElastic::toXMLList(), GIDI::Distributions::EnergyAngular::toXMLList(), GIDI::Distributions::EnergyAngularMC::toXMLList(), GIDI::Distributions::KalbachMann::toXMLList(), GIDI::Distributions::LLNLAngularEnergy::toXMLList(), GIDI::Distributions::LLNLLegendre::toXMLList(), GIDI::Distributions::MultiGroup3d::toXMLList(), GIDI::Distributions::Reference3d::toXMLList(), GIDI::Distributions::Uncorrelated::toXMLList(), GIDI::Distributions::Unspecified::toXMLList(), GIDI::ExternalFile::toXMLList(), GIDI::FissionFragmentData::toXMLList(), GIDI::FlattenedArrayData::toXMLList(), GIDI::Flux::toXMLList(), GIDI::Functions::FissionEnergyRelease::toXMLList(), GIDI::Functions::Gridded2d::toXMLList(), GIDI::Functions::Gridded3d::toXMLList(), GIDI::Functions::Reference1d::toXMLList(), GIDI::Grid::toXMLList(), GIDI::Group::toXMLList(), GIDI::Map::Import::toXMLList(), GIDI::Map::Map::toXMLList(), GIDI::Map::Protare::toXMLList(), GIDI::Map::TNSL::toXMLList(), GIDI::OutputChannel::toXMLList(), GIDI::PhysicalQuantity::toXMLList(), GIDI::Product::toXMLList(), GIDI::ProtareSingle::toXMLList(), GIDI::Reaction::toXMLList(), GIDI::Styles::AngularDistributionReconstructed::toXMLList(), GIDI::Styles::AverageProductData::toXMLList(), GIDI::Styles::CoulombPlusNuclearElasticMuCutoff::toXMLList(), GIDI::Styles::CrossSectionReconstructed::toXMLList(), GIDI::Styles::Evaluated::toXMLList(), GIDI::Styles::GriddedCrossSection::toXMLList(), GIDI::Styles::Heated::toXMLList(), GIDI::Styles::HeatedMultiGroup::toXMLList(), GIDI::Styles::MonteCarlo_cdf::toXMLList(), GIDI::Styles::MultiGroup::toXMLList(), GIDI::Styles::Realization::toXMLList(), GIDI::Styles::SnElasticUpScatter::toXMLList(), GIDI::Styles::URR_probabilityTables::toXMLList(), GIDI::Suite::toXMLList(), GIDI::Sums::CrossSectionSum::toXMLList(), GIDI::Sums::MultiplicitySum::toXMLList(), GIDI::Sums::Summand::Base::toXMLList(), GIDI::Sums::Summands::toXMLList(), GIDI::Sums::Sums::toXMLList(), GIDI::Table::Column::toXMLList(), GIDI::Table::Data::toXMLList(), GIDI::Table::Table::toXMLList(), GIDI::TargetInfo::ChemicalElement::toXMLList(), GIDI::TargetInfo::IsotopicAbundances::toXMLList(), GIDI::TargetInfo::Nuclide::toXMLList(), GIDI::TargetInfo::TargetInfo::toXMLList(), GIDI::Transportable::toXMLList(), toXMLList(), GUPI::Suite::toXMLList(), GIDI::Functions::Constant1d::toXMLList_func(), GIDI::Functions::DiscreteGamma2d::toXMLList_func(), GIDI::Functions::Evaporation2d::toXMLList_func(), GIDI::Functions::FunctionForm::toXMLList_func(), GIDI::Functions::GeneralEvaporation2d::toXMLList_func(), GIDI::Functions::Gridded1d::toXMLList_func(), GIDI::Functions::Isotropic2d::toXMLList_func(), GIDI::Functions::Legendre1d::toXMLList_func(), GIDI::Functions::MadlandNix2d::toXMLList_func(), GIDI::Functions::Polynomial1d::toXMLList_func(), GIDI::Functions::PrimaryGamma2d::toXMLList_func(), GIDI::Functions::Recoil2d::toXMLList_func(), GIDI::Functions::Regions1d::toXMLList_func(), GIDI::Functions::Regions2d::toXMLList_func(), GIDI::Functions::ResonanceBackground1d::toXMLList_func(), GIDI::Functions::ResonanceBackgroundRegion1d::toXMLList_func(), GIDI::Functions::ResonancesWithBackground1d::toXMLList_func(), GIDI::Functions::SimpleMaxwellianFission2d::toXMLList_func(), GIDI::Functions::Unspecified1d::toXMLList_func(), GIDI::Functions::URR_probabilityTables1d::toXMLList_func(), GIDI::Functions::Watt2d::toXMLList_func(), GIDI::Functions::Xs_pdf_cdf1d::toXMLList_func(), GIDI::Functions::XYs1d::toXMLList_func(), GIDI::Functions::XYs2d::toXMLList_func(), GIDI::Functions::XYs3d::toXMLList_func(), GIDI::Functions::Ys1d::toXMLList_func(), GIDI::Distributions::Distribution::toXMLNodeStarter(), GIDI::Styles::Suite::updateChainEnds(), and GIDI::Functions::Function1dForm::write().
The assignment operator. This method sets the member's of this to those of a_ancestry except for the member m_ancestor which is set to nullptr.
| a_ancestry | [in] Instance whose member are used to set the members of this. |
Definition at line 47 of file GUPI_ancestry.cc.
Referenced by GIDI::Form::operator=().
| void GUPI::Ancestry::printXML | ( | ) | const |
Calls toXMLList and then writes the XML lines to the file "test.xml".
Definition at line 229 of file GUPI_ancestry.cc.
| Ancestry * GUPI::Ancestry::root | ( | ) |
Returns the root node, ascending all parent nodes until one is found without an ancester. That node is returned.
Definition at line 64 of file GUPI_ancestry.cc.
Referenced by GIDI::Transporting::MG::form(), GIDI::Reaction::modifyCrossSection(), GIDI::parseReactionType(), and GIDI::Reaction::recalculateMultiGroupData().
| Ancestry const * GUPI::Ancestry::root | ( | ) | const |
Returns the root node, ascending all parent nodes until one is found without an ancester. That node is returned.
Definition at line 78 of file GUPI_ancestry.cc.
|
virtual |
This method serializes this for broadcasting as needed for MPI and GPUs. The method can count the number of required bytes, pack this or unpack this depending on a_mode.
| a_buffer | [in] The buffer to read or write data to depending on a_mode. |
| a_mode | [in] Specifies the action of this method. |
Reimplemented in GUPI::Entry.
Definition at line 192 of file GUPI_ancestry.cc.
Referenced by GUPI::Entry::serialize().
|
inline |
Sets the m_ancestor member to a_ancestor.
Definition at line 106 of file GUPI.hpp.
Referenced by GIDI::Suite::add(), GUPI::Suite::add(), GIDI::Distributions::AngularTwoBody::AngularTwoBody(), GIDI::Functions::XYs2d::append(), GIDI::Functions::XYs3d::append(), GIDI::Suite::checkLazyParsingHelperForm(), GIDI::Suite::checkLazyParsingHelperForm(), and GIDI::Reaction::setOutputChannel().
|
inline |
Set the value of the m_moniker member to a_moniker.
Definition at line 103 of file GUPI.hpp.
Referenced by GIDI::Axes::Axes(), GIDI::Functions::FunctionForm::FunctionForm(), GIDI::Protare::initialize(), GIDI::Product::Product(), GIDI::ProtareSingle::ProtareSingle(), and GIDI::Reaction::Reaction().
| std::string GUPI::Ancestry::toXLink | ( | ) | const |
Constructs and returns the xlink for this.
Definition at line 205 of file GUPI_ancestry.cc.
Referenced by GIDI::calculate1dMultiGroupDataInComponent(), GIDI::calculate1dMultiGroupFissionEnergyRelease(), GIDI::Product::continuousEnergyProductData(), GIDI::Transporting::MG::form(), GIDI::Product::mapContinuousEnergyProductData(), GIDI::Suite::operator[](), and MCGIDI::Probabilities::parseProbability1d().
|
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 in GIDI::ACE_URR::IncidentEnergy, GIDI::ACE_URR::ProbabilityTable, GIDI::Array3d, GIDI::Array::Array, GIDI::Axes, GIDI::Axis, GIDI::AxisDomain, GIDI::DelayedNeutron, GIDI::Distributions::AngularEnergy, GIDI::Distributions::AngularEnergyMC, GIDI::Distributions::AngularTwoBody, GIDI::Distributions::CoulombPlusNuclearElastic, GIDI::Distributions::EnergyAngular, GIDI::Distributions::EnergyAngularMC, GIDI::Distributions::KalbachMann, GIDI::Distributions::LLNLAngularEnergy, GIDI::Distributions::LLNLLegendre, GIDI::Distributions::MultiGroup3d, GIDI::Distributions::Reference3d, GIDI::Distributions::Uncorrelated, GIDI::Distributions::Unspecified, GIDI::ExternalFile, GIDI::FissionFragmentData, GIDI::FlattenedArrayData, GIDI::Flux, GIDI::Functions::FissionEnergyRelease, GIDI::Functions::FunctionForm, GIDI::Functions::Gridded2d, GIDI::Functions::Gridded3d, GIDI::Functions::Reference1d, GIDI::Grid, GIDI::Group, GIDI::Map::BaseEntry, GIDI::Map::Import, GIDI::Map::Map, GIDI::Map::Protare, GIDI::Map::TNSL, GIDI::OutputChannel, GIDI::PhysicalQuantity, GIDI::Product, GIDI::ProtareSingle, GIDI::Reaction, GIDI::Styles::AngularDistributionReconstructed, GIDI::Styles::AverageProductData, GIDI::Styles::CoulombPlusNuclearElasticMuCutoff, GIDI::Styles::CrossSectionReconstructed, GIDI::Styles::Evaluated, GIDI::Styles::GriddedCrossSection, GIDI::Styles::Heated, GIDI::Styles::HeatedMultiGroup, GIDI::Styles::MonteCarlo_cdf, GIDI::Styles::MultiGroup, GIDI::Styles::Realization, GIDI::Styles::SnElasticUpScatter, GIDI::Styles::URR_probabilityTables, GIDI::Suite, GIDI::Sums::CrossSectionSum, GIDI::Sums::MultiplicitySum, GIDI::Sums::Summand::Base, GIDI::Sums::Summands, GIDI::Sums::Sums, GIDI::Table::Column, GIDI::Table::Data, GIDI::Table::Table, GIDI::TargetInfo::ChemicalElement, GIDI::TargetInfo::IsotopicAbundances, GIDI::TargetInfo::Nuclide, GIDI::TargetInfo::TargetInfo, GIDI::Transportable, and GUPI::Suite.
Definition at line 220 of file GUPI_ancestry.cc.
Referenced by printXML().
|
inlinevirtual |
Returns the value of this's key.
Reimplemented in GIDI::Form, GIDI::Reaction, and GUPI::Entry.
Definition at line 128 of file GUPI.hpp.
Referenced by toXLink().