|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <GIDI.hpp>
Public Types | |
| typedef std::vector< Form * > | Forms |
| typedef Forms::iterator | iterator |
| typedef Forms::const_iterator | const_iterator |
Public Member Functions | |
| Suite (std::string const &a_keyName=GIDI_labelChars) | |
| Suite (std::string const &a_moniker, std::string const &a_keyName) | |
| Suite (Construction::Settings const &a_construction, std::string const &a_moniker, std::string const &a_keyName, HAPI::Node const &a_node, SetupInfo &a_setupInfo, PoPI::Database const &a_pops, PoPI::Database const &a_internalPoPs, parseSuite a_parseSuite, Styles::Suite const *a_styles, bool a_allowsLazyParsing=false) | |
| ~Suite () | |
| std::string const & | keyName () const |
| std::size_t | size () const |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| std::size_t | operator[] (std::string const &a_label) const |
| template<typename T> | |
| T * | get (std::size_t a_Index) |
| template<typename T> | |
| T const * | get (std::size_t a_Index) const |
| template<typename T> | |
| T * | get (std::string const &a_label) |
| template<typename T> | |
| T const * | get (std::string const &a_label) const |
| template<typename T> | |
| T * | getViaLineage (std::string const &a_label) |
| template<typename T> | |
| T * | getViaLineage (std::string const &a_label) const |
| template<typename T> | |
| T * | pop (std::size_t a_Index) |
| template<typename T> | |
| T * | pop (std::string const &a_label) |
| Styles::Suite const * | styles () |
| std::string const & | href () const |
| void | parse (Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, PoPI::Database const &a_pops, PoPI::Database const &a_internalPoPs, parseSuite a_parseSuite, Styles::Suite const *a_styles) |
| void | add (Form *a_form) |
| iterator | find (std::string const &a_label, bool a_convertLazyParsingHelperForm=false) |
| const_iterator | find (std::string const &a_label, bool a_convertLazyParsingHelperForm=false) const |
| bool | has (std::string const &a_label) const |
| Form * | checkLazyParsingHelperForm (std::size_t a_index) |
| Form * | checkLazyParsingHelperForm (std::size_t a_index) const |
| iterator | checkLazyParsingHelperFormIterator (iterator a_iter) |
| const_iterator | checkLazyParsingHelperFormIterator (const_iterator a_iter) const |
| void | modifiedMultiGroupElasticForTNSL (std::map< std::string, std::size_t > const &a_maximumTNSL_MultiGroupIndex) |
| GUPI::Ancestry * | findInAncestry3 (std::string const &a_item) |
| GUPI::Ancestry const * | findInAncestry3 (std::string const &a_item) const |
| std::vector< iterator > | findAllOfMoniker (std::string const &a_moniker) |
| std::vector< const_iterator > | findAllOfMoniker (std::string const &a_moniker) const |
| Form const * | findInstanceOfTypeInLineage (std::string const &_label, std::string const &a_moniker) const |
| Form * | findInstanceOfTypeInLineage (Styles::Suite const &a_styles, std::string const &_label, std::string const &a_moniker) |
| void | toXMLList (GUPI::WriteInfo &a_writeInfo, std::string const &a_indent="") const |
| void | printFormLabels (std::string const &a_header) const |
| template<typename T> | |
| T const * | get (std::size_t a_index) const |
| template<typename T> | |
| T const * | get (std::string const &a_label) const |
| template<typename T> | |
| T const * | get (std::size_t a_index) const |
| template<typename T> | |
| T const * | get (std::string const &a_label) 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 LUPI_HOST void | serialize (LUPI::DataBuffer &a_buffer, LUPI::DataBuffer::Mode a_mode) |
| virtual std::string | xlinkItemKey () const |
| std::string | toXLink () const |
| void | printXML () const |
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) |
This class is used to store a list (i.e., suite) of similar type GNDS nodes.
| typedef Forms::const_iterator GIDI::Suite::const_iterator |
| typedef std::vector<Form *> GIDI::Suite::Forms |
| typedef Forms::iterator GIDI::Suite::iterator |
| GIDI::Suite::Suite | ( | std::string const & | a_keyName = GIDI_labelChars | ) |
Definition at line 22 of file GIDI_suite.cc.
Referenced by checkLazyParsingHelperForm(), GIDI::Component::Component(), GIDI::Component::Component(), GIDI::Fluxes::Fluxes(), GIDI::Fluxes::Fluxes(), GIDI::Groups::Groups(), and GIDI::Groups::Groups().
| GIDI::Suite::Suite | ( | std::string const & | a_moniker, |
| std::string const & | a_keyName ) |
| a_moniker | [in] The GNDS moniker for the Suite instance. |
| a_keyName | [in] The name of the key for elements of this. |
Definition at line 35 of file GIDI_suite.cc.
| GIDI::Suite::Suite | ( | Construction::Settings const & | a_construction, |
| std::string const & | a_moniker, | ||
| std::string const & | a_keyName, | ||
| HAPI::Node const & | a_node, | ||
| SetupInfo & | a_setupInfo, | ||
| PoPI::Database const & | a_pops, | ||
| PoPI::Database const & | a_internalPoPs, | ||
| parseSuite | a_parseSuite, | ||
| Styles::Suite const * | a_styles, | ||
| bool | a_allowsLazyParsing = false ) |
| a_construction | [in] Used to pass user options to the constructor. |
| a_moniker | [in] The GNDS moniker for the Suite instance. |
| a_node | [in] The HAPI::Node to be parsed and used to construct the Suite. |
| a_keyName | [in] The name of the key for referencing up child nodes. |
| a_setupInfo | [in] Information create my the Protare constructor to help in parsing. |
| a_pops | [in] The external PoPI::Database instance used to get particle indices and possibly other particle information. |
| a_internalPoPs | [in] The internal PoPI::Database instance used to get particle indices and possibly other particle information. This is the <PoPs> node under the <reactionSuite> node. |
| a_parseSuite | [in] This function to call to parse each sub-node. |
| a_styles | [in] The <styles> node under the <reactionSuite> node. |
| a_allowsLazyParsing | [in] Boolean stating if the suite allows lazy parsing. |
Definition at line 57 of file GIDI_suite.cc.
| GIDI::Suite::~Suite | ( | ) |
Definition at line 75 of file GIDI_suite.cc.
| void GIDI::Suite::add | ( | Form * | a_form | ) |
Adds the node a_form to this.
| a_form | [in] The form to add. |
Definition at line 132 of file GIDI_suite.cc.
Referenced by GIDI::Fluxes::addFile(), GIDI::Groups::addFile(), GIDI::Documentation_1_10::Suite::parse(), and parse().
|
inline |
The C++ begin iterator for this.
Definition at line 2594 of file GIDI.hpp.
Referenced by GIDI::Styles::Suite::chains(), and MCGIDI::convertACE_URR_probabilityTablesFromGIDI().
|
inline |
| Form * GIDI::Suite::checkLazyParsingHelperForm | ( | std::size_t | a_index | ) |
Check to see if the form is a LazyParsingHelperForm, it so, parses the form, loads it before returning the requested form.
| a_index | [in] The index of the child to return. |
Definition at line 156 of file GIDI_suite.cc.
Referenced by checkLazyParsingHelperFormIterator(), checkLazyParsingHelperFormIterator(), get(), get(), get(), get(), pop(), and pop().
| Form * GIDI::Suite::checkLazyParsingHelperForm | ( | std::size_t | a_index | ) | const |
Check to see if the form is a LazyParsingHelperForm, it so, parses the form, loads it before returning the requested form.
| a_index | [in] The index of the child to return. |
Definition at line 183 of file GIDI_suite.cc.
| Suite::const_iterator GIDI::Suite::checkLazyParsingHelperFormIterator | ( | Suite::const_iterator | a_iter | ) | const |
Check to see if the form is a LazyParsingHelperForm, it so, parses the form, loads it before returning the requested form.
| a_iter | [in] Iterator to the Form to check. |
Definition at line 226 of file GIDI_suite.cc.
| Suite::iterator GIDI::Suite::checkLazyParsingHelperFormIterator | ( | Suite::iterator | a_iter | ) |
Check to see if the form is a LazyParsingHelperForm, it so, parses the form, loads it before returning the requested form.
| a_iter | [in] Iterator to the Form to check. |
Definition at line 207 of file GIDI_suite.cc.
Referenced by find(), find(), findInstanceOfTypeInLineage(), and findInstanceOfTypeInLineage().
|
inline |
The C++ end iterator for this.
Definition at line 2596 of file GIDI.hpp.
Referenced by GIDI::Styles::Suite::chains(), checkLazyParsingHelperFormIterator(), checkLazyParsingHelperFormIterator(), MCGIDI::convertACE_URR_probabilityTablesFromGIDI(), findInstanceOfTypeInLineage(), GIDI::Styles::Suite::findLabelInLineage(), GIDI::Transporting::MG::form(), and GIDI::Reaction::recalculateMultiGroupData().
|
inline |
| Suite::iterator GIDI::Suite::find | ( | std::string const & | a_keyValue, |
| bool | a_convertLazyParsingHelperForm = false ) |
Returns the iterator to the node with keyValue a_keyValue.
| a_keyValue | [in] The keyValue of the node to find. |
| a_convertLazyParsingHelperForm | [in] If true and requested form is a LazyParsingHelperForm instance, that instance is replaced with the parsed form. |
Definition at line 246 of file GIDI_suite.cc.
Referenced by findInstanceOfTypeInLineage(), GIDI::Styles::Suite::findLabelInLineage(), GIDI::Transporting::MG::form(), has(), modifiedMultiGroupElasticForTNSL(), and GIDI::Reaction::recalculateMultiGroupData().
| Suite::const_iterator GIDI::Suite::find | ( | std::string const & | a_keyValue, |
| bool | a_convertLazyParsingHelperForm = false ) const |
Returns the iterator to the node with keyValue a_keyValue.
| a_keyValue | [in] The keyValue of the node to find. |
| a_convertLazyParsingHelperForm | [in] If true and requested form is a LazyParsingHelperForm instance, that instance is replaced with the parsed form. |
Definition at line 266 of file GIDI_suite.cc.
| std::vector< Suite::iterator > GIDI::Suite::findAllOfMoniker | ( | std::string const & | a_moniker | ) |
Returns a list of iterators to the nodes in this that have GNDS moniker a_moniker.
| a_moniker | [in] The moniker to search for. |
Definition at line 285 of file GIDI_suite.cc.
Referenced by GIDI::Reaction::Reaction().
| std::vector< Suite::const_iterator > GIDI::Suite::findAllOfMoniker | ( | std::string const & | a_moniker | ) | const |
Returns a list of iterators to the nodes in this that have GNDS moniker a_moniker.
| a_moniker | [in] The moniker to search for. |
Definition at line 304 of file GIDI_suite.cc.
|
virtual |
Used by GUPI::Ancestry 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. |
Implements GUPI::Ancestry.
Definition at line 396 of file GIDI_suite.cc.
|
virtual |
Used by GUPI::Ancestry 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. |
Implements GUPI::Ancestry.
Definition at line 419 of file GIDI_suite.cc.
| Form const * GIDI::Suite::findInstanceOfTypeInLineage | ( | std::string const & | a_label, |
| std::string const & | a_moniker ) const |
This method finds the nearest form of instance Functions::XYs1d in this that is prior to the form with label a_label.
| a_label | [in] The label of the form to start from when looking backwards. |
| a_formType | [in] The type of form to return. |
Definition at line 324 of file GIDI_suite.cc.
Referenced by GIDI::calculate1dMultiGroupDataInComponent(), and findInstanceOfTypeInLineage().
| Form * GIDI::Suite::findInstanceOfTypeInLineage | ( | Styles::Suite const & | a_styles, |
| std::string const & | a_label, | ||
| std::string const & | a_moniker ) |
This method finds the nearest form of instance Functions::XYs1d in this that is prior to the form with label a_label.
| a_styles | [in] The styles suite for the protare. |
| a_label | [in] The label of the form to start from when looking backwards. |
| a_formType | [in] The type of form to return. |
Definition at line 351 of file GIDI_suite.cc.
| T * GIDI::Suite::get | ( | std::size_t | a_index | ) |
Returns the node at index a_index.
| a_index | [in] The index of the node to return. |
Definition at line 2642 of file GIDI.hpp.
Referenced by GIDI::calculate1dMultiGroupDataInComponent(), GIDI::Product::continuousEnergyProductData(), findInAncestry3(), findInAncestry3(), GIDI::Styles::Suite::findLabelInLineage(), get(), getViaLineage(), getViaLineage(), MCGIDI::HeatedCrossSectionContinuousEnergy::HeatedCrossSectionContinuousEnergy(), GIDI::Product::mapContinuousEnergyProductData(), GIDI::Reaction::modifyCrossSection(), MCGIDI::OutputChannel::OutputChannel(), MCGIDI::Distributions::parseGIDI(), MCGIDI::Functions::parseMultiplicityFunction1d(), GIDI::Transporting::Particles::process(), GIDI::Reaction::recalculateMultiGroupData(), and GIDI::ExternalFiles::Suite::registerBinaryFiles().
| T const * GIDI::Suite::get | ( | std::size_t | a_Index | ) | const |
| T const * GIDI::Suite::get | ( | std::size_t | a_index | ) | const |
Returns the node at index a_index.
| a_index | [in] The index of the node to return. |
Definition at line 2660 of file GIDI.hpp.
| T const * GIDI::Suite::get | ( | std::size_t | a_index | ) | const |
Returns the node at index a_index.
| a_index | [in] The index of the node to return. |
Definition at line 319 of file GUPI.hpp.
| T * GIDI::Suite::get | ( | std::string const & | a_label | ) |
Returns the node with label a_label.
| a_label | [in] The label of the node to return. |
Definition at line 2678 of file GIDI.hpp.
| T const * GIDI::Suite::get | ( | std::string const & | a_label | ) | const |
Returns the node with label a_label.
| a_label | [in] The label of the node to return. |
Definition at line 2697 of file GIDI.hpp.
| T const * GIDI::Suite::get | ( | std::string const & | a_label | ) | const |
| T const * GIDI::Suite::get | ( | std::string const & | a_label | ) | const |
Returns the node with label a_label.
| a_label | [in] The label of the node to return. |
Definition at line 356 of file GUPI.hpp.
| T * GIDI::Suite::getViaLineage | ( | std::string const & | a_label | ) |
Definition at line 3447 of file GIDI.hpp.
Referenced by get(), and MCGIDI::Functions::parseMultiplicityFunction1d().
| T * GIDI::Suite::getViaLineage | ( | std::string const & | a_label | ) | const |
|
inline |
Definition at line 2616 of file GIDI.hpp.
Referenced by MCGIDI::HeatedCrossSectionContinuousEnergy::HeatedCrossSectionContinuousEnergy(), MCGIDI::Functions::parseMultiplicityFunction1d(), and GIDI::ExternalFiles::Suite::registerBinaryFiles().
|
inline |
|
inline |
| void GIDI::Suite::modifiedMultiGroupElasticForTNSL | ( | std::map< std::string, std::size_t > const & | a_maximumTNSL_MultiGroupIndex | ) |
Only for internal use. Called by ProtareTNSL instance to zero the lower energy multi-group data covered by the ProtareSingle that contains the TNSL data covers the lower energy multi-group data.
| a_maximumTNSL_MultiGroupIndex | [in] A map that contains labels for heated multi-group data and the last valid group boundary for the TNSL data for that boundary. |
Definition at line 374 of file GIDI_suite.cc.
Referenced by modifiedMultiGroupElasticForTNSL().
| std::size_t GIDI::Suite::operator[] | ( | std::string const & | a_keyValue | ) | const |
Returns the index of the node in this that has keyValue a_keyValue.
Definition at line 116 of file GIDI_suite.cc.
| void GIDI::Suite::parse | ( | Construction::Settings const & | a_construction, |
| HAPI::Node const & | a_node, | ||
| SetupInfo & | a_setupInfo, | ||
| PoPI::Database const & | a_pops, | ||
| PoPI::Database const & | a_internalPoPs, | ||
| parseSuite | a_parseSuite, | ||
| Styles::Suite const * | a_styles ) |
This methods parses all the child nodes of a_node.
| a_construction | [in] Used to pass user options to the constructor. |
| a_node | [in] The HAPI::Node to be parsed and used to construct the Product. |
| a_setupInfo | [in] Information create my the Protare constructor to help in parsing. |
| a_pops | [in] The external PoPI::Database instance used to get particle indices and possibly other particle information. |
| a_internalPoPs | [in] The internal PoPI::Database instance used to get particle indices and possibly other particle information. This is the <PoPs> node under the <reactionSuite> node. |
| a_parseSuite | [in] This function to call to parse each sub-node. |
| a_styles | [in] The <styles> node under the <reactionSuite> node. |
Definition at line 93 of file GIDI_suite.cc.
Referenced by Suite().
| T * GIDI::Suite::pop | ( | std::size_t | a_index | ) |
Removes the form at index a_index and returns it. It is up to the calling function to delete the form, otherwise there will be memory leak.
| a_index | [in] The index of the node to return. |
Definition at line 2717 of file GIDI.hpp.
Referenced by get().
| T * GIDI::Suite::pop | ( | std::string const & | a_label | ) |
Removes the form with label a_label and returns it. It is up to the calling function to delete the form, otherwise there will be memory leak.
| a_label | [in] The label of the node to return. |
Definition at line 2742 of file GIDI.hpp.
| void GIDI::Suite::printFormLabels | ( | std::string const & | a_header | ) | const |
Prints the list of node keyValues to std::cout.
| a_header | [in] A string printed before the list of keyValues is printed. |
Definition at line 462 of file GIDI_suite.cc.
|
inline |
Returns the number of node contained by this.
Definition at line 2591 of file GIDI.hpp.
Referenced by MCGIDI::GRIN_capture::GRIN_capture(), MCGIDI::GRIN_inelastic::GRIN_inelastic(), MCGIDI::OutputChannel::OutputChannel(), MCGIDI::Distributions::parseGIDI(), printFormLabels(), and toXMLList().
|
inline |
Returns the value of the m_styles member.
Definition at line 2608 of file GIDI.hpp.
Referenced by GIDI::Reaction::modifyCrossSection().
|
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 442 of file GIDI_suite.cc.