Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
GIDI::LazyParsingHelperForm Class Reference

#include <GIDI.hpp>

Inheritance diagram for GIDI::LazyParsingHelperForm:

Public Member Functions

 LazyParsingHelperForm (Construction::Settings const &a_construction, Suite *a_parent, HAPI::Node const &a_node, SetupInfo &a_setupInfo, PoPI::Database const &a_pops, PoPI::Database const &a_internalPoPs, std::string const &a_name, Styles::Suite const *a_styles, parseSuite a_parser)
 ~LazyParsingHelperForm ()
std::string actualMoniker () const
Formparse ()
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 ()
Formoperator= (Form const &a_rhs)
Suiteparent () const
std::string const & label () const
void setLabel (std::string const &a_label)
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::AncestryfindInAncestry3 (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 ()
Ancestryoperator= (Ancestry const &a_ancestry)
std::string const & moniker () const
void setMoniker (std::string const &a_moniker)
Ancestryancestor ()
Ancestry const * ancestor () const
void setAncestor (Ancestry *a_ancestor)
std::string attribute () const
Ancestryroot ()
Ancestry const * root () const
bool isChild (Ancestry *a_instance)
bool isParent (Ancestry *a_parent)
bool isRoot () const
AncestryfindInAncestry (std::string const &a_href)
Ancestry const * findInAncestry (std::string const &a_href) const
virtual AncestryfindInAncestry3 (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
virtual void toXMLList (WriteInfo &a_writeInfo, std::string const &a_indent="") 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)

Detailed Description

This class stores information about a GNDS node so that it can be parsed at a later time if needed.

Definition at line 684 of file GIDI.hpp.

Constructor & Destructor Documentation

◆ LazyParsingHelperForm()

GIDI::LazyParsingHelperForm::LazyParsingHelperForm ( Construction::Settings const & a_construction,
Suite * a_parent,
HAPI::Node const & a_node,
SetupInfo & a_setupInfo,
PoPI::Database const & a_pops,
PoPI::Database const & a_internalPoPs,
std::string const & a_name,
Styles::Suite const * a_styles,
parseSuite a_parser )

Constructor that stores information so the a_node can be parsed at a later time.

Parameters
a_construction[in] Used to pass user options for parsing.
a_parent[in] The parent GIDI::Suite that the returned Form will be added to.
a_node[in] The HAPI::Node to be parsed.
a_setupInfo[in] Information create my the Protare constructor to help in parsing.
a_pops[in] A PoPs 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_name[in] The moniker for the node to be parsed.
a_styles[in] A pointer to the <styles> node.
a_parser[in] The parser function for the suite the actual form will be inserted into.

Definition at line 523 of file GIDI_suite.cc.

525 :
526 Form( a_node, a_setupInfo, FormType::lazyParsingHelperForm, a_parent ),
527 m_construction( a_construction ),
528 m_node( a_node ),
529 m_setupInfo( a_setupInfo ),
530 m_pops( &a_pops ),
531 m_internalPoPs( &a_internalPoPs ),
532 m_name( a_name ),
533 m_styles( a_styles ),
534 m_parser( a_parser ) {
535
536 m_construction.setLazyParsing( false );
537 m_setupInfo.m_protare->incrementNumberOfLazyParsingHelperForms( );
538}
Form(FormType a_type)
Definition GIDI_form.cc:25
@ lazyParsingHelperForm
Definition GIDI.hpp:118

◆ ~LazyParsingHelperForm()

GIDI::LazyParsingHelperForm::~LazyParsingHelperForm ( )

Definition at line 555 of file GIDI_suite.cc.

555 {
556
557}

Member Function Documentation

◆ actualMoniker()

std::string GIDI::LazyParsingHelperForm::actualMoniker ( ) const
inlinevirtual

Returns the value of the m_name member which is the moniker of the actual form.

Reimplemented from GIDI::Form.

Definition at line 702 of file GIDI.hpp.

◆ parse()

Form * GIDI::LazyParsingHelperForm::parse ( )

Constructor that stores information so the a_node can be parsed at a later time.

Definition at line 544 of file GIDI_suite.cc.

544 {
545
546 Form *form = m_parser( m_construction, parent( ), m_node, m_setupInfo, *m_pops, *m_internalPoPs, m_name, m_styles );
547 m_setupInfo.m_protare->incrementNumberOfLazyParsingHelperFormsReplaced( );
548
549 return( form );
550}
Suite * parent() const
Definition GIDI.hpp:656

The documentation for this class was generated from the following files: